Arash Esbati <arash@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Arash Esbati <arash@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 57544) by debbugs.gnu.org; 3 Apr 2024 19:01:24 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 03 15:01:24 2024 Received: from localhost ([127.0.0.1]:59627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rs5rP-0000oa-4G for submit <at> debbugs.gnu.org; Wed, 03 Apr 2024 15:01:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <arash@HIDDEN>) id 1rs5rM-0000bJ-2i for 57544 <at> debbugs.gnu.org; Wed, 03 Apr 2024 15:01:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <arash@HIDDEN>) id 1rs5r8-0002KP-1w; Wed, 03 Apr 2024 15:01:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=ty+Y9TCo3655D8vsKOBLyNBY5w1Y9F8aqUOpF/dBIVs=; b=hMBaAyGmlhI97Zq6dRm4 aofyiy7d6ZPAYq2Ye/m4eocFr0+MnjlGHCkywhsu0f7oDNGpZRHdhlM2h8R8EJo0zxLk8kt0XsY80 ifyOvPqMyc25yRo3N2Wu63UYoTI8Zz2/dN24uBXvummTr0hyMN03/EafHyfnRcbD5wOp3XUXwqPoZ sPj4xq0YJpbTpB7cwJV/1aWJolEqbfGEB7GiMG4e5w9HfXurLhnC9BgadEHoeUqLkS/Jzt3VmyIE9 DA7wouKI5x528anREqiEOJbWUJnaROS+26ZTfIlsbiSqQPfh69JDRWDer40kg7w5wWqIO9W880BJA c9Bo4OuWv/dJxA==; From: Arash Esbati <arash@HIDDEN> To: Ikumi Keita <ikumi@HIDDEN> Subject: Re: bug#57544: 12.2; Viewer does not open correct file with `-jobname' specified In-Reply-To: <47055.1662793337@localhost> (Ikumi Keita's message of "Sat, 10 Sep 2022 16:02:17 +0900") References: <CABc4BCm7-XZ4oEktiwPeuPOe5YUhtt2xTe6uW96xziaPqUP37g@HIDDEN> <47055.1662793337@localhost> Date: Wed, 03 Apr 2024 21:00:58 +0200 Message-ID: <m2a5mafez9.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57544 Cc: Christian Holm Christensen <cholmcc@HIDDEN>, 57544 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Ikumi Keita <ikumi@HIDDEN> writes: > The latter is already implemented in the latest release. Update your > AUCTeX and see `TeX-output-dir' user option. > > The former isn't considered yet. It can be a difficult task since > I suppose there are many parts in AUCTeX that assume that the basename > of .tex file and .pdf (or .dvi) file are the same when their suffixes > are stripped off. > > Any takers out there? I'm afraid no one is picking up the second task. Therefore I'm closing this report. Best, Arash
bug-auctex@HIDDEN
:bug#57544
; Package auctex
.
Full text available.Received: (at 57544) by debbugs.gnu.org; 10 Sep 2022 07:02:26 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 10 03:02:26 2022 Received: from localhost ([127.0.0.1]:36477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oWuVW-0001ot-6Y for submit <at> debbugs.gnu.org; Sat, 10 Sep 2022 03:02:26 -0400 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:56104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ikumi@HIDDEN>) id 1oWuVU-0001oh-AG for 57544 <at> debbugs.gnu.org; Sat, 10 Sep 2022 03:02:25 -0400 Received: from localhost (110-133-211-201.rev.home.ne.jp [110.133.211.201]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 598BD2D7; Sat, 10 Sep 2022 16:02:18 +0900 (JST) From: Ikumi Keita <ikumi@HIDDEN> To: Christian Holm Christensen <cholmcc@HIDDEN> Subject: Re: bug#57544: 12.2; Viewer does not open correct file with `-jobname' specified In-reply-to: <CABc4BCm7-XZ4oEktiwPeuPOe5YUhtt2xTe6uW96xziaPqUP37g@HIDDEN> References: <CABc4BCm7-XZ4oEktiwPeuPOe5YUhtt2xTe6uW96xziaPqUP37g@HIDDEN> Comments: In-reply-to Christian Holm Christensen <cholmcc@HIDDEN> message dated "Fri, 02 Sep 2022 10:34:08 +0200." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <47054.1662793337.1@localhost> Date: Sat, 10 Sep 2022 16:02:17 +0900 Message-ID: <47055.1662793337@localhost> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 57544 Cc: 57544 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi Christian, sorry for late reply. >>>>> Christian Holm Christensen <cholmcc@HIDDEN> writes: > Another option would be to have buffer-local variables - say > - TeX-command-jobname (passed as argument to `-jobname`) > - TeX-command-output-directory (pass as argument to `-output-directory`) The latter is already implemented in the latest release. Update your AUCTeX and see `TeX-output-dir' user option. The former isn't considered yet. It can be a difficult task since I suppose there are many parts in AUCTeX that assume that the basename of .tex file and .pdf (or .dvi) file are the same when their suffixes are stripped off. Any takers out there? Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine
bug-auctex@HIDDEN
:bug#57544
; Package auctex
.
Full text available.Received: (at submit) by debbugs.gnu.org; 2 Sep 2022 15:23:05 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 02 11:23:05 2022 Received: from localhost ([127.0.0.1]:47457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oU8Vd-0007tr-4W for submit <at> debbugs.gnu.org; Fri, 02 Sep 2022 11:23:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:59308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <cholmcc@HIDDEN>) id 1oU28A-0001uW-9K for submit <at> debbugs.gnu.org; Fri, 02 Sep 2022 04:34:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <cholmcc@HIDDEN>) id 1oU289-00057o-AC for bug-auctex@HIDDEN; Fri, 02 Sep 2022 04:34:26 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:46622) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <cholmcc@HIDDEN>) id 1oU286-0000fX-Tr for bug-auctex@HIDDEN; Fri, 02 Sep 2022 04:34:24 -0400 Received: by mail-ej1-x62b.google.com with SMTP id bj12so2338865ejb.13 for <bug-auctex@HIDDEN>; Fri, 02 Sep 2022 01:34:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=4/TlwvHcdKQcph5CGaOlvswGsxQqTdddcHY9TUcC7bA=; b=Sh/DKaPXfTvOAgyX/56UXiXJN25U05YovHRQJcRNJ73F/s9/EyeZbohog+BXH1y2yp OfA3XnewdhzeMGFhuEOGALjKqGE9ZCzvLwjtdhEeqV3/SOA/xD+Yca34xJlakOGDkxqH mfSJokBWUj4rrHw5+haC3I2i+kbyy0+pBkfvUAjNiPeEvqdUCy1VDOcO3tmmjWk18DC4 Ivo6Rl4XobNewUMbdB/CfGjp9W2PwxtpOaThOt24ynJfEf4/VM+u+tdH9w9gl5ybpzis X/pvBvUH7/Ulsj0cdhjnIvLYnvvhuuxH6lQKvYLeafcFuqtWiKhQGnZ9fQWP+ehJj4sb D+bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=4/TlwvHcdKQcph5CGaOlvswGsxQqTdddcHY9TUcC7bA=; b=ZcIItgK5gE6ZME5qccoMtcT+TxNzNO7SH8vI84q/QjiSo4wF9hgyGilWTyeKntFBYW HmlsToNcWDyaw5mRV8cxgZ8VesfQNacHFCK+3jRE5OB8H7qX8jaJAhMv/F1vOROpuLUt cr5tdIMh4wFPGmGA/vxrREU32Frx1rVENy+VgTOCQZQuJV9v/7a0OeQ3KE3KA4Gki3Zr SiIsgDMu/Dm7vZ7tStFSt+a4EcS1z2KJQ6qjXAHXbNsquFEPRhtO2cSFJue+NdQa8RG6 C5UsLTJV08ygP8XUa8umzZHoyQ/fOg3Eyj5IlccZQjnHzAdBXGNldwbwJq3V+/CV0xsC bVnA== X-Gm-Message-State: ACgBeo375WdY+nGM0y6Sp3yYv/ILDnUcL6at9vrEcHAYrJWKdcEnM1QD H1PvQOfp6xJ/dud5sR75Qa2+vL0t4SclUU+YnOkQpBNzrLg= X-Google-Smtp-Source: AA6agR4DWhHpyjta608NhnlVGXjuKdQp8gGBuqhbVRMv30XPm3sHIOV4DCQxlEidBQ9OsU71nZPMcwIU1Hd22rAb7UM= X-Received: by 2002:a17:907:75c1:b0:730:aa62:7f65 with SMTP id jl1-20020a17090775c100b00730aa627f65mr25513383ejc.355.1662107659586; Fri, 02 Sep 2022 01:34:19 -0700 (PDT) MIME-Version: 1.0 From: Christian Holm Christensen <cholmcc@HIDDEN> Date: Fri, 2 Sep 2022 10:34:08 +0200 Message-ID: <CABc4BCm7-XZ4oEktiwPeuPOe5YUhtt2xTe6uW96xziaPqUP37g@HIDDEN> Subject: 12.2; Viewer does not open correct file with `-jobname' specified To: bug-auctex@HIDDEN Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=cholmcc@HIDDEN; helo=mail-ej1-x62b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 02 Sep 2022 11:23:03 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) Hi, First: Love AUCTeX The bug: If the user specifies a `-jobname' option, then the AUCTeX view command does not necessarily open the correct output file. A minimal example %% File `foo.tex' \documentclass{article} \begin{document} Hello, world \end{document} %% Local Variables: %% TeX-command-extra-options: "-jobname bar" %% End: Open this with Emacs, and compile with `C-c C-c' to make `bar.pdf` Then try to open the output with - `C-c C-c View RET', which in my case is `TeX-evince-sync-view', and the viewer complains that there is no `foo.pdf', or - `C-c C-v' which makes AUCTeX complain `Output file "foo.pdf" does not exist.' The culprit seems to be in `TeX-expand-list-builtin` where the `%o` expansion is defined as ("%o" (lambda nil (funcall file (TeX-output-extension) t))) This should probably be a bit more clever and parse `TeX-command-extra-options` to see if a job name was specified. I can't off the top of my head figure out which function `file` points to in the above, but it seems that function should do a bit more work: - Check for `-jobname` or the like - Check for `-output-directory` or the like Another option would be to have buffer-local variables - say - TeX-command-jobname (passed as argument to `-jobname`) - TeX-command-output-directory (pass as argument to `-output-directory`) which would default to `file-name-sans-extension` and `or (file-name-directory) "."`, or something like that. Thanks. Christian Emacs : GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.16.0) of 2022-08-21, modified by Debian Package: 12.2 current state: ============== (setq AUCTeX-date "2019-10-30" window-system 'x LaTeX-version "2e" TeX-style-path '("/var/lib/auctex/emacs/" "/usr/share/emacs/site-lisp/auctex/style" "/home/fubar/.emacs.d/auctex/auto" "/home/fubar/.emacs.d/auctex/style" "auto" "style") TeX-auto-save nil TeX-parse-self nil TeX-master t TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) %`%(extraopts) %S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX") ("LaTeX" "%`%l%(mode)%' %T" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX") ("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo %(extraopts) --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "amstex %(PDFout) %`%(extraopts) %S%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX") ("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once") ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion") ("BibTeX" "%(bibtex) %s" TeX-run-BibTeX nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode context-mode) :help "Run BibTeX") ("Biber" "biber %s" TeX-run-Biber nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run Biber") ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file") ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command) ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Generate PostScript file") ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Convert DVI file to PostScript") ("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Convert DVI file to PDF with dvipdfmx") ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Convert PostScript file to PDF") ("Glossaries" "makeglossaries %s" TeX-run-command nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run makeglossaries to create glossary\n file") ("Index" "%(makeindex) %s" TeX-run-index nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run makeindex to create index file") ("upMendex" "upmendex %s" TeX-run-index t (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run upmendex to create index file") ("Xindy" "texindy %s" TeX-run-command nil (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode) :help "Run xindy to create index file") ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness") ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for common mistakes") ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document") ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files") ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete generated intermediate and output files") ("Other" "" TeX-run-command t t :help "Run an arbitrary command") ) ) -- Christian Holm Christensen ------------------------------------------------- Sankt Hans Gade 23, 4, DK-2200 Copenhagen http://cern.ch/cholm, +4524618591
Christian Holm Christensen <cholmcc@HIDDEN>
:bug-auctex@HIDDEN
.
Full text available.bug-auctex@HIDDEN
:bug#57544
; Package auctex
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.