[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-AUCTeX] 11.86; AUCTeX does not follow customisation
From: |
Peter Dyballa |
Subject: |
[Bug-AUCTeX] 11.86; AUCTeX does not follow customisation |
Date: |
Thu, 16 Dec 2010 12:36:09 +0100 |
Hello!
In my customisation I have:
'(TeX-output-view-style (quote (("^dvi$" ("^landscape$" "^pstricks$\
\|^pst-\\|^psfrag$") "%(o?)dvips -t landscape %d -o && texdoc --just-
view %f") ("^dvi$" "^pstricks$\\|^pst-\\|^psfrag$" "%(o?)dvips %d -o
&& texdoc --just-view %f") ("^dvi$" ("^a4\\(?:dutch\\|paper\\|wide\\)\
\|sem-a4$" "^landscape$") "%(o?)xdvi %dS -paper a4r -s 0 %d") ("^dvi$"
"^a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4$" "%(o?)xdvi %dS -paper a4
%d") ("^dvi$" ("^a5\\(?:comb\\|paper\\)$" "^landscape$") "%(o?)xdvi
%dS -paper a5r -s 0 %d") ("^dvi$" "^a5\\(?:comb\\|paper\\)$" "%
(o?)xdvi %dS -paper a5 %d") ("^dvi$" "^b5paper$" "%(o?)xdvi %dS -paper
b5 %d") ("^dvi$" "^letterpaper$" "%(o?)xdvi %dS -paper us %d") ("^dvi
$" "^legalpaper$" "%(o?)xdvi %dS -paper legal %d") ("^dvi$"
"^executivepaper$" "%(o?)xdvi %dS -paper 7.25x10.5in %d") ("^dvi$" "."
"%(o?)xdvi %dS %d") ("^pdf$" "." "texdoc --just-view %o") ("^html?$"
"." "netscape %o"))))
but AUCTeX stopped using texdoc when I upgraded from 11.85 11.86. It
uses evince which does not exist in Mac OS X – and which is a really
bad choice because someone who has TeX installed would customise
texdoc instead of some auxiliary software. TeX-output-view-style is
documented as this:
TeX-output-view-style is a variable defined in `tex.el'.
Its value is shown below.
Documentation:
List of output file extensions and view options.
If the first element (a regular expression) matches the output
file extension, and the second element (a regular expression)
matches the name of one of the style options, any occurrence of
the string `%V' in a command in `TeX-command-list' will be
replaced with the third element. The first match is used; if no
match is found the `%V' is replaced with `%v'. The outcome of `%v'
is determined by the settings in `TeX-view-style' which therefore
serves as a fallback for `TeX-output-view-style'. The second
element may also be a list of regular expressions, in which case
all the regular expressions must match for the element to apply.
You can customize this variable.
Value:
(("^dvi$"
("^landscape$" "^pstricks$\\|^pst-\\|^psfrag$")
"%(o?)dvips -t landscape %d -o && texdoc --just-view %f")
("^dvi$" "^pstricks$\\|^pst-\\|^psfrag$" "%(o?)dvips %d -o && texdoc
--just-view %f")
("^dvi$"
("^a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4$" "^landscape$")
"%(o?)xdvi %dS -paper a4r -s 0 %d")
("^dvi$" "^a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4$" "%(o?)xdvi %dS -
paper a4 %d")
("^dvi$"
("^a5\\(?:comb\\|paper\\)$" "^landscape$")
"%(o?)xdvi %dS -paper a5r -s 0 %d")
("^dvi$" "^a5\\(?:comb\\|paper\\)$" "%(o?)xdvi %dS -paper a5 %d")
("^dvi$" "^b5paper$" "%(o?)xdvi %dS -paper b5 %d")
("^dvi$" "^letterpaper$" "%(o?)xdvi %dS -paper us %d")
("^dvi$" "^legalpaper$" "%(o?)xdvi %dS -paper legal %d")
("^dvi$" "^executivepaper$" "%(o?)xdvi %dS -paper 7.25x10.5in %d")
("^dvi$" "." "%(o?)xdvi %dS %d")
("^pdf$" "." "texdoc --just-view %o")
("^html?$" "." "netscape %o"))
Original value was
(("^dvi$"
("^landscape$" "^pstricks$\\|^pst-\\|^psfrag$")
"%(o?)dvips -t landscape %d -o && gv %f")
("^dvi$" "^pstricks$\\|^pst-\\|^psfrag$" "%(o?)dvips %d -o && gv %f")
("^dvi$"
("^\\(?:a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4\\)$" "^landscape$")
"%(o?)xdvi %dS -paper a4r -s 0 %d")
("^dvi$" "^\\(?:a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4\\)$" "%
(o?)xdvi %dS -paper a4 %d")
("^dvi$"
("^\\(?:a5\\(?:comb\\|paper\\)\\)$" "^landscape$")
"%(o?)xdvi %dS -paper a5r -s 0 %d")
("^dvi$" "^\\(?:a5\\(?:comb\\|paper\\)\\)$" "%(o?)xdvi %dS -paper a5
%d")
("^dvi$" "^b5paper$" "%(o?)xdvi %dS -paper b5 %d")
("^dvi$" "^letterpaper$" "%(o?)xdvi %dS -paper us %d")
("^dvi$" "^legalpaper$" "%(o?)xdvi %dS -paper legal %d")
("^dvi$" "^executivepaper$" "%(o?)xdvi %dS -paper 7.25x10.5in %d")
("^dvi$" "." "%(o?)xdvi %dS %d")
("^pdf$" "." "xpdf -remote %s -raise %o %(outpage)")
("^html?$" "." "netscape %o"))
[back]
'texdoc --files' shows:
texdoc 0.72
Configuration files are:
absent
/Users/pete/Library/texmf/texdoc/texdoc-universal-darwin.cnf
(*) active /Users/pete/Library/texmf/texdoc/texdoc.cnf
absent /Users/pete/Library/texmf/texdoc/texdoc-dist.cnf
absent /usr/local/texlive/2010/../texmf-local/texdoc/texdoc-
universal-darwin.cnf
absent /usr/local/texlive/2010/../texmf-local/texdoc/texdoc.cnf
active /usr/local/texlive/2010/texmf/texdoc/texdoc.cnf
(*) This is the recommended configuration file for your personal
preferences.
None of the existing configuration files contains the string "evince"
and neither does /usr/local/texlive/2010/bin/universal-darwin/texdoc
(they prefer xpdf, maybe because of pdffonts/pdfinfo). What I can
reproduce every time is this:
• C-c C-c shows the prompt "Command: (default View) " in mini-buffer
• when I press RET the prompt changes to "View command: " and then
the text "evince <file.pdf>" is displayed.
AUCTeX's tex.el has evince set in its TeX-view-program-list-builtin
variable.
Again: it's better to rely on the cleverness of the TeX users that
they configure texdoc. Since TeX Live 2009 the texdoc utility has the
option "--just-view" (then not documented and still today) to make
texdoc a splendid wrapper around all TeX related viewers.
Emacs : GNU Emacs 24.0.50.1 (powerpc-apple-darwin9.8.0, X toolkit,
Xaw3d scroll bars)
of 2010-12-06 on localhost
Package: 11.86
current state:
==============
(setq
AUCTeX-date "2010-02-21"
window-system 'x
LaTeX-version "2e"
TeX-style-path '("/usr/local/var/auctex" "/Library/Application
Support/Emacs/auctex/style"
"/Users/pete/.emacs.d/auctex/auto" "/Users/pete/.emacs.d/auctex/
style" "auto" "style")
TeX-auto-save nil
TeX-parse-self nil
TeX-master nil
TeX-command-list '(("XeTeX" "%`xetex%(mode)%' %t" TeX-run-TeX nil
(plain-tex-mode context-mode texinfo-mode ams-tex-mode)
:help
"Run XeTeX with xdvipdfmx driver")
("XeTeXx" "%`xetex -output-driver=xdv2pdf%(mode)%' %t" TeX-run-
TeX nil
(plain-tex-mode context-mode texinfo-mode ams-tex-mode)
:help
"Run XeTeX with xdv2pdf driver")
("XeLaTeX" "%`xelatex%(mode)%' %t" TeX-run-TeX nil
(latex-mode doctex-mode ams-tex-mode) :help "Run XeLaTeX with
xdvipdfmx driver")
("XeLaTeX5" "%`xelatex -output-driver=\"xdvipdfmx -V 5\"%(mode)
%' %t" TeX-run-TeX
nil (latex-mode doctex-mode ams-tex-mode) :help
"Run XeLaTeX with xdvipdfmx driver for compact PDF 1.5")
("XeLaTeXesc" "%`xelatex -shell-escape%(mode)%' %t" TeX-run-TeX
nil
(latex-mode doctex-mode ams-tex-mode) :help
"Run XeLaTeX with xdvipdfmx driver and with enabled \
\write18{SHELL COMMAND}")
("XeLaTeXx" "%`xelatex -output-driver=xdv2pdf%(mode)%' %t" TeX-
run-TeX nil
(latex-mode doctex-mode ams-tex-mode) :help "Run XeLaTeX with
xdv2pdf driver")
("XeLaTeXq" "%`xelatex -output-driver=\"xdvipdfmx -l\"%(mode)%'
%t" TeX-run-command
nil (latex-mode doctex-mode ams-tex-mode) :help
"Run XeLaTeX with xdvipdfmx driver in landscape mood")
("XeLaTeXqesc" "%`xelatex -shell-escape -output-driver=
\"xdvipdfmx -l\"%(mode)%' %t"
TeX-run-command nil (latex-mode doctex-mode ams-tex-mode)
:help
"Run XeLaTeX with xdvipdfmx driver in landscape SHELL
mood")
("TeX" "%(PDF)%(tex) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX
nil
(plain-tex-mode texinfo-mode ams-tex-mode) :help "Run plain
TeX")
("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-
mode) :help
"Run LaTeX")
("LaTeXesc" "%`%l-shell-escape%(mode)%' %t" TeX-run-TeX nil
(latex-mode doctex-mode)
:help "Run LaTeX with enabled \\write18{SHELL COMMAND}")
("Makeinfo" "makeinfo %t" TeX-run-compile nil
(texinfo-mode) :help
"Run Makeinfo with Info output")
("Makeinfo HTML" "makeinfo --html %t" TeX-run-compile nil
(texinfo-mode) :help
"Run Makeinfo with HTML output")
("AmSTeX" "%(PDF)amstex %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX
nil (ams-tex-mode)
:help "Run AMSTeX")
("ConTeXt" "texexec --once --texutil %(execopts)%t" TeX-run-TeX
nil (context-mode)
:help "Run ConTeXt once")
("ConTeXt Full" "texexec %(execopts)%t" TeX-run-TeX nil (context-
mode) :help
"Run ConTeXt until completion")
("ConTeXt Clean" "texutil --purgeall" TeX-run-interactive nil
(context-mode) :help
"Clean temporary ConTeXt files")
("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run
BibTeX")
("View" "%V" TeX-run-discard t t :help "Run Viewer")
("Print" "%p" TeX-run-command t t :help "Print the file")
("Queue" "%q" TeX-run-background nil t :help "View the printer
queue" :visible
TeX-queue-command)
("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help
"Generate PostScript file")
("Index" "makeindex %s" TeX-run-command nil t :help "Create
index file")
("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help
"Check LaTeX file for correctness")
("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil
t :help
"Spell-check the document")
("Clean" "TeX-clean" TeX-run-function nil t :help
"Delete generated intermediate files")
("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
"Delete generated intermediate and output files")
("Other" "" TeX-run-command t t :help "Run an arbitrary
command"))
)
--
Mit friedvollen Grüßen
Pete
Der größte Aberglaube der Gegenwart ist der Glaube an die Vorfahrt.
(Jacques Tati)
- [Bug-AUCTeX] 11.86; AUCTeX does not follow customisation,
Peter Dyballa <=