GNU bug report logs - #36400
Few more words about ‘tex-print-file-extension’ (Emacs manual)

Previous Next

Package: emacs;

Reported by: Sebastian Urban <mrsebastianurban <at> gmail.com>

Date: Thu, 27 Jun 2019 08:44:02 UTC

Severity: minor

Tags: fixed

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36400 in the body.
You can then email your comments to 36400 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#36400; Package emacs. (Thu, 27 Jun 2019 08:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sebastian Urban <mrsebastianurban <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 27 Jun 2019 08:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sebastian Urban <mrsebastianurban <at> gmail.com>
To: Bug GNU Emacs <bug-gnu-emacs <at> gnu.org>
Subject: Few more words about ‘tex-print-file-extension’ (Emacs manual)
Date: Thu, 27 Jun 2019 10:43:34 +0200
In INFO @ 25.11.3 TeX Printing Commands:
 For example, you can set it to ‘.pdf’, and update
-‘tex-dvi-view-command’ and ‘tex-dvi-print-command’ accordingly.
+‘tex-dvi-view-command’ and ‘tex-dvi-print-command’ accordingly, as
+well as ‘latex-run-command’ or ‘tex-run-command’.

Why?  Because without setting, for example, ‘latex-run-command’ to
‘pdflatex’ it (‘tex-region’, ‘tex-buffer’, ‘tex-file’) will still
compile files with ‘latex’ and ‘tex-dvi-view-command’ &
‘tex-dvi-print-command’ will show error, because they will be looking
for ‘.pdf’ and will only find ‘.dvi’.  So need for change also these
two variables should be noted.


Actually I wanted to go different road here, and change
‘latex-run-command’ (and maybe ‘tex-run...’) to have ‘cond’ and
choose: if ‘.pdf’ => ‘pdflatex’, if ‘.dvi’ =>‘latex’.  But because it
probably reads ‘tex-print-file-extension’ very early:
- OR it (tex-print-file-extension) would have to be rewritten as well
  to update (eval(?)) ‘latex-run-command’,
- OR user would have to save new value of ‘tex-print-file-extension’
  to init file and restart Emacs/eval ‘latex-run-command’ manually.
Of course this will require different change to the manual.


S. U.


In GNU Emacs 26.2 (build 1, i686-w64-mingw32)
 of 2019-04-13 built on CIRROCUMULUS
Repository revision: fd1b34bfba8f3f6298df47c8e10b61530426f749
Windowing system distributor 'Microsoft Corp.', version 6.1.7601




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36400; Package emacs. (Mon, 08 Jul 2019 23:29:02 GMT) Full text and rfc822 format available.

Message #8 received at 36400 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Sebastian Urban <mrsebastianurban <at> gmail.com>
Cc: 36400 <at> debbugs.gnu.org
Subject: Re: bug#36400: Few more words about ‘tex-print-file-extension’ (Emacs manual)
Date: Tue, 09 Jul 2019 01:28:09 +0200
Sebastian Urban <mrsebastianurban <at> gmail.com> writes:

> In INFO @ 25.11.3 TeX Printing Commands:
>  For example, you can set it to ‘.pdf’, and update
> -‘tex-dvi-view-command’ and ‘tex-dvi-print-command’ accordingly.
> +‘tex-dvi-view-command’ and ‘tex-dvi-print-command’ accordingly, as
> +well as ‘latex-run-command’ or ‘tex-run-command’.
>
> Why?  Because without setting, for example, ‘latex-run-command’ to
> ‘pdflatex’ it (‘tex-region’, ‘tex-buffer’, ‘tex-file’) will still
> compile files with ‘latex’ and ‘tex-dvi-view-command’ &
> ‘tex-dvi-print-command’ will show error, because they will be looking
> for ‘.pdf’ and will only find ‘.dvi’.  So need for change also these
> two variables should be noted.

I think that makes sense, even if it's been a few years since I used
this stuff in Emacs, so I've applied a version of this to the Emacs
trunk.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 08 Jul 2019 23:29:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 36400 <at> debbugs.gnu.org and Sebastian Urban <mrsebastianurban <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 08 Jul 2019 23:29:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36400; Package emacs. (Tue, 09 Jul 2019 07:42:01 GMT) Full text and rfc822 format available.

Message #15 received at 36400 <at> debbugs.gnu.org (full text, mbox):

From: Sebastian Urban <mrsebastianurban <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 36400 <at> debbugs.gnu.org
Subject: Re: bug#36400: Few more words about ‘tex-print-file-extension’ (Emacs manual)
Date: Tue, 9 Jul 2019 09:41:38 +0200
> (...) so I've applied a version of this to the Emacs trunk.

Alright, thanks.  Although I would prefer 2nd, more automatic, way of
setting variables... another time (if it's possible at all).




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 06 Aug 2019 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 315 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.