bug-auctex
[Top][All Lists]
Advanced

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

[Bug-AUCTeX] bug#19121: bug#19121: AUCTeX should report an error if sele


From: Mosè Giordano
Subject: [Bug-AUCTeX] bug#19121: bug#19121: AUCTeX should report an error if selected viewer fails
Date: Sun, 23 Nov 2014 12:22:47 +0100

Hi Davide,

2014-11-20 16:07 GMT+01:00 Davide G. M. Salvetti <address@hidden>:
> Package: auctex
> Version: 11.83
> Severity: normal
> Usertags: bugs.debian.org/409795
>
> Neither `C-c C-c', nor `C-c C-v', nor `tool-bar view' appear to report
> any error if the viewer selected by `TeX-view-program-selection' isn't
> installed.
>
> It would be useful if AUCTeX would check if the selected viewer is
> installed on the system, falling back to some other viewer if available;
> at a minimum, however, AUCTeX should give some clue to the user about
> the failure to start a viewer.
>
> This bug has been originally reported by a Debian user: see
> <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=409795>, in
> particular items marked `0' and `2' by the original submitter.

The attached patch addresses this problem: it adds a third, optional,
element to `TeX-view-program-list' and
`TeX-view-program-list-builtin', with the name of the executable
associated to that viewer and checks inside `TeX-view-command-raw' if
that executable exists.  I'm not very fond of this solution because it
needs to add another element to a widely customized variable (although
the element is optional, so it won't break backward compatibility),
but I have no other idea to fix it.

Does someone have other suggestions?

Bye,
Mosè

Attachment: fix-non-existent-viewer.patch
Description: Text Data


reply via email to

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