[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] [PATCH] Add support for SumatraPDF viewer

From: Fabrice Popineau
Subject: Re: [AUCTeX-devel] [PATCH] Add support for SumatraPDF viewer
Date: Tue, 9 Feb 2016 13:18:41 +0100

2016-02-09 11:57 GMT+01:00 Mosè Giordano <address@hidden>:
2016-02-09 11:37 GMT+01:00 Fabrice Popineau
> The actual problem is that emacs/auctex should ask Windows (look into the
> registry) where
> is the default viewer for pdf files and not assume that this exe is in the

AUCTeX simply runs `call-process' to start the viewer, then I think it
should be Emacs' duty to find the executable if it has been properly
installed (i.e., the installer changed the appropriate registry keys),
but I don't know if this happens on Windows.

The call-process function can run much more than opening a pdf file. 
You can use w32-shell-execute to open a file with the default Windows associations.

I'd like to provide a default value of `TeX-view-program-list-builtin'
that works for as many users as possible, hard-coding a path defeats
this goal, for example for you, if you have it C:\Local, and people
using the portable version that I guess can be placed anywhere.

I think there may have been some misunderstanding.
My only point was to say that people should be allowed to reference an absolute path,
not that you should propose one :-)
If it is explicitly about SumatraPDF, assume that it is on the path and use only "SumatraPDF.exe"
As a default value for a pdf viewer, you can rely either on w32-shell-execute or use call-process
with "start %s".


reply via email to

[Prev in Thread] Current Thread [Next in Thread]