unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#36400: Few more words about ‘tex-print-file-extension’ (Emacs manual)
@ 2019-06-27  8:43 Sebastian Urban
  2019-07-08 23:28 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Urban @ 2019-06-27  8:43 UTC (permalink / raw)
  To: 36400

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#36400: Few more words about ‘tex-print-file-extension’ (Emacs manual)
  2019-06-27  8:43 bug#36400: Few more words about ‘tex-print-file-extension’ (Emacs manual) Sebastian Urban
@ 2019-07-08 23:28 ` Lars Ingebrigtsen
  2019-07-09  7:41   ` Sebastian Urban
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-08 23:28 UTC (permalink / raw)
  To: Sebastian Urban; +Cc: 36400

Sebastian Urban <mrsebastianurban@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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#36400: Few more words about ‘tex-print-file-extension’ (Emacs manual)
  2019-07-08 23:28 ` Lars Ingebrigtsen
@ 2019-07-09  7:41   ` Sebastian Urban
  0 siblings, 0 replies; 3+ messages in thread
From: Sebastian Urban @ 2019-07-09  7:41 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 36400

> (...) 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).





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-09  7:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-27  8:43 bug#36400: Few more words about ‘tex-print-file-extension’ (Emacs manual) Sebastian Urban
2019-07-08 23:28 ` Lars Ingebrigtsen
2019-07-09  7:41   ` Sebastian Urban

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).