[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex a30db7c 24/80: Allow the user to customize which
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex a30db7c 24/80: Allow the user to customize which TeX commands are available in each mode. |
Date: |
Wed, 16 Oct 2019 11:07:10 -0400 (EDT) |
branch: externals/auctex
commit a30db7c0409aa7d15e87633ff9d2b73430c4d40c
Author: Mohammad Hossein Bateni <address@hidden>
Commit: Mosè Giordano <address@hidden>
Allow the user to customize which TeX commands are available in each mode.
Commands such as Biber, DVI2PS, PS2PDF, Index, etc. are not useful in
ConTeXt. ConTeXt generates a PDF directly and has its own indexing
mechanism.
In Mark IV (which has been the preferred version for over a decade and
is actively developed), a new bibliography package is also available,
which can process old bibtex files as well. So there is no need for
BibTeX.
Having so many commands in context-mode clutters the menus. In the
definition of TeX-command-list, we either provide a list of relevant
modes, or set the value to `t' indicating that this command should
always be available. In the latter case, the user cannot customize
it. Here we provide sensible defaults as well as the ability for the
user to customize.
* tex.el (TeX-command-list): Hide by default some commands from
context-mode.
Signed-off-by: Mosè Giordano <address@hidden>
---
tex.el | 34 ++++++++++++++++++++++++----------
1 file changed, 24 insertions(+), 10 deletions(-)
diff --git a/tex.el b/tex.el
index d79e604..f5e8801 100644
--- a/tex.el
+++ b/tex.el
@@ -136,27 +136,41 @@ If nil, none is specified."
("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t"
TeX-run-TeX nil
(context-mode) :help "Run ConTeXt until completion")
- ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX")
- ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber")
+ ("BibTeX" "bibtex %s" TeX-run-BibTeX nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode
+ context-mode)
+ :help "Run BibTeX")
+ ("Biber" "biber %s" TeX-run-Biber nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
+ :help "Run Biber")
("View" "%V" TeX-run-discard-or-function 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-dvips t t
+ ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
:help "Generate PostScript file")
- ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t
+ ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
:help "Convert DVI file to PostScript")
- ("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t
+ ("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
:help "Convert DVI file to PDF with dvipdfmx")
- ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t
+ ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
:help "Convert PostScript file to PDF")
("Glossaries" "makeglossaries %s" TeX-run-command nil
- t :help "Run makeglossaries to create glossary file")
- ("Index" "makeindex %s" TeX-run-index nil t
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
+ :help "Run makeglossaries to create glossary
+ file")
+ ("Index" "makeindex %s" TeX-run-index nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
:help "Run makeindex to create index file")
- ("upMendex" "upmendex %s" TeX-run-index t t
+ ("upMendex" "upmendex %s" TeX-run-index t
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
:help "Run upmendex to create index file")
- ("Xindy" "texindy %s" TeX-run-command nil t
+ ("Xindy" "texindy %s" TeX-run-command nil
+ (plain-tex-mode latex-mode doctex-mode ams-tex-mode texinfo-mode)
:help "Run xindy to create index file")
("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
:help "Check LaTeX file for correctness")
- [elpa] externals/auctex 686a8ed 13/80: Elaborate LaTeX math insertion command, (continued)
- [elpa] externals/auctex 686a8ed 13/80: Elaborate LaTeX math insertion command, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 8a36595 12/80: Fix handling of function entries in `TeX-complete-list', Tassilo Horn, 2019/10/16
- [elpa] externals/auctex fcaef6b 11/80: Improve fontification of \href macro, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 23b3405 23/80: ; Fix typos, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 3b3c224 26/80: Remove compatibility code for xemacs, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 2a642a4 19/80: Add support for ChangeLog entries for LaTeX files, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex a8bbd1f 31/80: ; Fix document, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex ab57cb0 21/80: Add new function `LaTeX-extract-key-value-label', Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 4776fd0 25/80: ; Remove compatibility code for older emacsen, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 92c090d 30/80: Fix treatment of class and package options, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex a30db7c 24/80: Allow the user to customize which TeX commands are available in each mode.,
Tassilo Horn <=
- [elpa] externals/auctex 4d0cf0f 10/80: ; Silence the compiler, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 7872796 15/80: * tex-info.el (TeX-texinfo-mode): Set `add-log-current-defun-function' locally., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 18a09f0 03/80: * auctex.el: Add requireds, keywords, and trailer, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex b141ded 27/80: Remove compatibility code for xemacs, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 4611580 32/80: * tex-jp.el (AUCTeX-jp): Add keyword :link to info node., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex ca0437d 16/80: Update keywords to biblatex v3.12, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 1b6e513 22/80: ; Use `LaTeX-extract-key-value-label', Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 5592f7d 17/80: Reset `TeX-PDF-from-DVI' if xetex engine is in use, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex a9eb155 37/80: Fix regression, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex af15814 42/80: ; * style/babel.el: Fix typo, remove code remainder., Tassilo Horn, 2019/10/16