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

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

    <bug>
          <bug_id>19557</bug_id>
          
          <creation_ts>2009-04-09 21:48:58 +0400</creation_ts>
          <short_desc>an installed program should be used for viewing DVI</short_desc>
          <delta_ts>2014-11-05 20:42:36 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch 4.1</product>
          <component>emacs-mode-auctex</component>
          <version>unspecified</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>enhancement</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>
          
          
          <qa_contact name="qa-4.1@altlinux.org">qa-4.1</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>89090</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2009-04-09 21:48:58 +0400</bug_when>
    <thetext>evince-2.22.2-alt0.M41.1
emacs22-common-22.2-alt5
emacs-mode-auctex-11.85-alt1
xdvi is not installed

I opened a LaTeX file in Emacs, C-c C-c (LaTeX), C-c C-c (View), and it wanted to run:

xdvi  a.dvi

although xdvi is not installed on this system. But evince is!

Expected: AUCTeX detects the installed program to view DVI, 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, this feature has been partially implemented for xdvi (Emacs gets told whether xdvi is available), dvips, dvilj etc. by making tetex-{xdvi,dvips,dvilj} put a scriptlet into /etc/emacs/site-start.d/ , which sets the values of the relevant Emacs variables. To complete this, probably, *all* the DVI viewers (incl. evince) should put such a scriptlet to /etc/emacs/site-start.d/ , to inform Emacs how it can be used to view DVI.

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.dvi&quot;, and the system decides which program that is available to use.


A similar report about PDF: #19236</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89091</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2009-04-09 21:50:18 +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>148657</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2014-11-05 20:42:36 +0300</bug_when>
    <thetext>В 4.1/branch исправления не будут вноситься уже технически (заглушена очередь на сборку), поэтому прошу ошибки, актуальные для sisyphus/p7/t7, перевесить на текущие ветки или сизиф.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>