<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>19236</bug_id>
          
          <creation_ts>2009-03-18 23:30:36 +0300</creation_ts>
          <short_desc>PDF viewer should be an installed program</short_desc>
          <delta_ts>2014-11-05 20:17:05 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch 4.0</product>
          <component>emacs-mode-auctex</component>
          <version>4.0</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>19558</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Nobody&apos;s working on this, feel free to take it">nobody</assigned_to>
          <cc>evg</cc>
    
    <cc>kirill</cc>
          
          <qa_contact name="Q.A. 4.0">qa-4.0</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87494</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2009-03-18 23:30:36 +0300</bug_when>
    <thetext>emacs-mode-auctex-11.84-alt1
emacs22-common-22.1-alt2
evince-gtk-2.20.1-alt0.M40.5
пакет xpdf не установлен

I opened a LaTeX file, toggled the menu option &quot;Command &gt; TeXing options &gt; PDF mode&quot;, C-c C-c (LaTeX), C-c C-c (View), and it wanted to run:

xpdf -remote a -raise a.pdf 

although xpdf is not installed on this system (ALT Lite 4.0.3). But evince-gtk is.

Expected: AUCTeX detects the installed program to view PDF, and uses it. (A trivial thing in modern times; something like that is expected from an OS nowadays, not manual setup of viewers for different types of files.)

Comments on implementation of the feature: AFAIR, similar features for DVI (whether xdvi is available), dvips, dvilj etc. were implemented by making tetex-{xdvi,dvips,dvilj} put a scriptlet into /etc/emacs/site-start.d/ , which sets thevalues of the relevant Emacs variables. Perhaps, all the PDF viewers should put such a scriptlet to /etc/emacs/site-start.d/ , to inform Emacs how it can be used to view PDF.

Another way would be to use the more common &quot;database&quot; of filetype-program associations (I don&apos;t know how it is called), so that Emacs just gives a command like &quot;open a.pdf&quot;, and the system decides which program that is available to use.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89092</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2009-04-09 21:50:34 +0400</bug_when>
    <thetext>A similar report about using the *installed* evince for viewing DVI (instead of
the not available xdvi): https://bugzilla.altlinux.org/show_bug.cgi?id=19557 .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90657</commentid>
    <comment_count>2</comment_count>
    <who name="partizan">partizan</who>
    <bug_when>2009-05-04 12:20:33 +0400</bug_when>
    <thetext>In 11.85-alt3 xdg-open is used instead xpdf.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90727</commentid>
    <comment_count>3</comment_count>
    <who name="kirill">kirill</who>
    <bug_when>2009-05-05 09:16:34 +0400</bug_when>
    <thetext>In this case emacs-mode-auctex should have a dependency on
either xdg-utils or /usr/bin/xdg-open:
$ rpmquery emacs-mode-auctex
emacs-mode-auctex-11.85-alt3
$ rpmquery --requires emacs-mode-auctex | fgrep xdg
$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126746</commentid>
    <comment_count>4</comment_count>
    <who name="kirill">kirill</who>
    <bug_when>2011-11-02 15:12:28 +0400</bug_when>
    <thetext>We should better drop auctex-11.85-use-system-pdf-viewer.patch as it is:
 1. contains a typo, leading to bug https://bugzilla.altlinux.org/show_bug.cgi?id=22278
 2. patches in a wrong place, default system viewer should be changed 
    by means of TeX-view-program-selection
 3. xdg-open is not good replacement for evince, because it could not open
a specified page of the document which is crucial when working 
in TeX-correlate-source (source specials) mode in auctex.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>148498</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2014-11-05 20:17:05 +0300</bug_when>
    <thetext>В 4.0/branch исправления не будут вноситься уже технически (заглушена очередь на сборку), поэтому прошу ошибки, актуальные для sisyphus/p7/t7, перевесить на текущие ветки или сизиф.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>