[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex da4cb3d 14/67: Improve behavior of `TeX-arg-beam
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex da4cb3d 14/67: Improve behavior of `TeX-arg-beamer-overlay-spec' |
Date: |
Fri, 8 Feb 2019 11:40:30 -0500 (EST) |
branch: externals/auctex
commit da4cb3dcb8b122f81b387b533cdb8bfb6121ba0a
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>
Improve behavior of `TeX-arg-beamer-overlay-spec'
* style/beamer.el (TeX-arg-beamer-overlay-spec): Use
`TeX-argument-insert' in the body of the function and respect the
OPTIONAL argument.
("beamer"): Enclose all occurrences of
`TeX-arg-beamer-overlay-spec' in brackets in order to mark them as
optional.
---
style/beamer.el | 64 +++++++++++++++++++++++++++++++--------------------------
1 file changed, 35 insertions(+), 29 deletions(-)
diff --git a/style/beamer.el b/style/beamer.el
index 6cd8327..284aa31 100644
--- a/style/beamer.el
+++ b/style/beamer.el
@@ -79,8 +79,8 @@
(LaTeX-paragraph-commands-add-locally "frametitle")
(TeX-add-symbols
- '("alert" 1)
- '("alt" TeX-arg-beamer-overlay-spec 2)
+ '("alert" [ TeX-arg-beamer-overlay-spec ] 1)
+ '("alt" [ TeX-arg-beamer-overlay-spec ] 2)
'("beamerbutton" 1)
'("beamergotobutton" 1)
'("beamerreturnbutton" 1)
@@ -88,41 +88,41 @@
'("frame" TeX-arg-beamer-frametitle)
'("frametitle"
(TeX-arg-eval TeX-read-string "Title: " nil
'LaTeX-beamer-frametitle-history))
- '("hyperlink" TeX-arg-beamer-overlay-spec 2)
- '("hyperlinkslideprev" TeX-arg-beamer-overlay-spec 1)
- '("hyperlinkslidenext" TeX-arg-beamer-overlay-spec 1)
- '("hyperlinkframestart" TeX-arg-beamer-overlay-spec 1)
- '("hyperlinkframeend" TeX-arg-beamer-overlay-spec 1)
- '("hyperlinkframestartnext" TeX-arg-beamer-overlay-spec 1)
- '("hyperlinkframeendprev" TeX-arg-beamer-overlay-spec 1)
- '("hyperlinkpresentationstart" TeX-arg-beamer-overlay-spec 1)
- '("hyperlinkpresentationend" TeX-arg-beamer-overlay-spec 1)
- '("hyperlinkappendixstart" TeX-arg-beamer-overlay-spec 1)
- '("hyperlinkappendixend" TeX-arg-beamer-overlay-spec 1)
- '("hyperlinkdocumentstart" TeX-arg-beamer-overlay-spec 1)
- '("hyperlinkdocumentend" TeX-arg-beamer-overlay-spec 1)
- '("hypertarget" TeX-arg-beamer-overlay-spec 2)
+ '("hyperlink" [ TeX-arg-beamer-overlay-spec ] 2)
+ '("hyperlinkslideprev" [ TeX-arg-beamer-overlay-spec ] 1)
+ '("hyperlinkslidenext" [ TeX-arg-beamer-overlay-spec ] 1)
+ '("hyperlinkframestart" [ TeX-arg-beamer-overlay-spec ] 1)
+ '("hyperlinkframeend" [ TeX-arg-beamer-overlay-spec ] 1)
+ '("hyperlinkframestartnext" [ TeX-arg-beamer-overlay-spec ] 1)
+ '("hyperlinkframeendprev" [ TeX-arg-beamer-overlay-spec ] 1)
+ '("hyperlinkpresentationstart" [ TeX-arg-beamer-overlay-spec ] 1)
+ '("hyperlinkpresentationend" [ TeX-arg-beamer-overlay-spec ] 1)
+ '("hyperlinkappendixstart" [ TeX-arg-beamer-overlay-spec ] 1)
+ '("hyperlinkappendixend" [ TeX-arg-beamer-overlay-spec ] 1)
+ '("hyperlinkdocumentstart" [ TeX-arg-beamer-overlay-spec ] 1)
+ '("hyperlinkdocumentend" [ TeX-arg-beamer-overlay-spec ] 1)
+ '("hypertarget" [ TeX-arg-beamer-overlay-spec ] 2)
'("institute" 1)
- '("invisible" TeX-arg-beamer-overlay-spec 1)
- '("label" TeX-arg-beamer-overlay-spec 1)
+ '("invisible" [ TeX-arg-beamer-overlay-spec ] 1)
+ '("label" [ TeX-arg-beamer-overlay-spec ] 1)
'("logo" 1)
'("note" TeX-arg-beamer-note 1)
- '("only" TeX-arg-beamer-overlay-spec 1)
- '("onslide" TeX-arg-beamer-overlay-spec)
+ '("only" [ TeX-arg-beamer-overlay-spec ] 1)
+ '("onslide" [ TeX-arg-beamer-overlay-spec ])
'("partpage")
'("pause" ["Slide number"])
- '("structure" TeX-arg-beamer-overlay-spec 1)
- '("temporal" TeX-arg-beamer-overlay-spec 3)
+ '("structure" [ TeX-arg-beamer-overlay-spec ] 1)
+ '("temporal" [ TeX-arg-beamer-overlay-spec ] 3)
'("titlepage")
'("titlegraphic" 1)
- '("uncover" TeX-arg-beamer-overlay-spec 1)
+ '("uncover" [ TeX-arg-beamer-overlay-spec ] 1)
'("usetheme" LaTeX-arg-beamer-theme)
'("useinnertheme" LaTeX-arg-beamer-inner-theme)
'("useoutertheme" LaTeX-arg-beamer-outer-theme)
'("usecolortheme" LaTeX-arg-beamer-color-theme)
'("usefonttheme" LaTeX-arg-beamer-font-theme)
'("usetheme" LaTeX-arg-beamer-theme)
- '("visible" TeX-arg-beamer-overlay-spec 1))
+ '("visible" [ TeX-arg-beamer-overlay-spec ] 1))
(LaTeX-add-environments
'("actionenv")
@@ -184,11 +184,17 @@
(font-latex-update-font-lock t)))
LaTeX-dialect)
-(defun TeX-arg-beamer-overlay-spec (_optional &optional _prompt)
- "Prompt for overlay specification."
- (let ((overlay (TeX-read-string "(Optional) Overlay: ")))
- (unless (zerop (length overlay))
- (insert "<" overlay ">"))
+(defun TeX-arg-beamer-overlay-spec (optional &optional prompt)
+ "Prompt for overlay specification.
+If OPTIONAL is non-nil, insert the specification only if
+non-empty and enclosed in \"<>\". PROMPT replaces the standard
+one."
+ (let ((TeX-arg-opening-brace "<")
+ (TeX-arg-closing-brace ">"))
+ (TeX-argument-insert
+ (TeX-read-string
+ (TeX-argument-prompt optional prompt "Overlay"))
+ optional)
(indent-according-to-mode)))
(defun TeX-arg-beamer-frametitle (_optional &optional _prompt)
- [elpa] externals/auctex 0970844 02/67: Deal with partial ^^-quoting in preview-latex, (continued)
- [elpa] externals/auctex 0970844 02/67: Deal with partial ^^-quoting in preview-latex, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 3694373 05/67: Deal with space in path of MikTeX gs executable (Bug#32251), Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 10047fb 07/67: * style/fancyvrb.el (LaTeX-fancyvrb-key-val-options): Add vspace key., Tassilo Horn, 2019/02/08
- [elpa] externals/auctex c8a8d47 08/67: Don't block emacs during viewing document, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex f213b1b 10/67: Set `TeX-command-buffer' always (bug#33377), Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 06226ea 09/67: Adjust preview-latex in case sub file isn't in master directory, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex d8c6f94 06/67: Improve style/fancyvrb.el, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 7ede3be 03/67: Make style hooks associated with class options valid again, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex dad0c60 11/67: Surround both \langle and \rangle with math delimiter, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 8d0e9cd 13/67: style/enumitem.el ("enumitem"): Use `TeX-argument-prompt' for query., Tassilo Horn, 2019/02/08
- [elpa] externals/auctex da4cb3d 14/67: Improve behavior of `TeX-arg-beamer-overlay-spec',
Tassilo Horn <=
- [elpa] externals/auctex fd53670 19/67: Clean up remnants of previous removal of compatibility codes, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 866eae1 20/67: Remove references to XEmacs from the manual, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 32bc548 12/67: ; Fix typos and doc string, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 70a31c5 23/67: Remove compatibility codes for older emacsen, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 12f7a21 18/67: Add suggestions for non-privileged installation, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 8b5e53d 24/67: Remove unnecessary parentheses, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 667f4e9 17/67: Defer running style hook until options are given actually, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 48d5874 32/67: Use `write-file-functions', Tassilo Horn, 2019/02/08
- [elpa] externals/auctex a20430d 15/67: Add new style/dashundergaps.el, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex ff75757 21/67: Remove references to older emacsens in comments and doc strings, Tassilo Horn, 2019/02/08