[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 8f70cd5211 14/48: Simplify implementation of sty
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 8f70cd5211 14/48: Simplify implementation of style/ulem.el |
Date: |
Fri, 18 Nov 2022 14:27:43 -0500 (EST) |
branch: externals/auctex
commit 8f70cd521184481b7256d1dd1a1d86c814b76a33
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Simplify implementation of style/ulem.el
* style/ulem.el (LaTeX-ulem-fontdecl, LaTeX-ulem-fontcmd)
(TeX-arg-ulem-fontdecl, TeX-arg-ulem-fontcmd)
(TeX-arg-ulem-useunder): Remove variables and functions.
("ulem"): Move the functionality into the style hook.
---
style/ulem.el | 56 ++++++++++++--------------------------------------------
1 file changed, 12 insertions(+), 44 deletions(-)
diff --git a/style/ulem.el b/style/ulem.el
index fa9cefb066..f2383e2024 100644
--- a/style/ulem.el
+++ b/style/ulem.el
@@ -57,8 +57,18 @@
;; \useunder {underline_command}{font_declaration}{font_command}
;; replaces occurences of font_declaration and font_command with the
;; underline_command
- '("useunder" TeX-arg-ulem-useunder
- TeX-arg-ulem-fontdecl TeX-arg-ulem-fontcmd))
+ '("useunder"
+ (TeX-arg-completing-read ("\\uline" "\\uuline" "\\uwave" "\\sout"
+ "\\xout" "\\dashuline" "\\dotuline")
+ "Underline command")
+ (TeX-arg-completing-read ("\\itshape" "\\bfseries" "\\scshape"
+ "\\ttfamily" "\\upshape" "\\mdseries"
+ "\\rmfamily" "\\sffamily" "\\slshape")
+ "Font declaration")
+ (TeX-arg-completing-read ("\\textit" "\\textbf" "\\textsc"
+ "\\texttt" "\\textup" "\\textmd"
+ "\\textrm" "\\textsf" "\\textsl")
+ "Font command")))
;; \ULdepth can be changed with \setlength
(LaTeX-add-lengths "ULdepth")
@@ -80,48 +90,6 @@
'underline-command)))
TeX-dialect)
-(defvar LaTeX-ulem-fontdecl
- (mapcar (lambda (str) (concat "\\" str))
- '("itshape" "bfseries" "scshape"
- "ttfamily" "upshape" "mdseries"
- "rmfamily" "sffamily" "slshape"))
- "List of font declaration commands in LaTeX.")
-
-(defvar LaTeX-ulem-fontcmd
- (mapcar (lambda (str) (concat "\\" str))
- '("textit" "textbf" "textsc"
- "texttt" "textup" "textmd"
- "textrm" "textsf" "textsl"))
- "List of font commands in LaTeX")
-
-(defun TeX-arg-ulem-fontdecl (optional &optional prompt)
- "Prompt for the font-declaration un \\useunder."
- (TeX-argument-insert
- (completing-read (TeX-argument-prompt
- optional prompt "Font declaration")
- LaTeX-ulem-fontdecl nil t)
- optional))
-
-(defun TeX-arg-ulem-fontcmd (optional &optional prompt)
- "Prompt for the font-declaration un \\useunder."
- (TeX-argument-insert
- (completing-read (TeX-argument-prompt
- optional prompt "Font command")
- LaTeX-ulem-fontcmd nil t)
- optional))
-
-;; adapted from url.el: TeX-arg-urlstyle
-(defun TeX-arg-ulem-useunder (optional &optional prompt)
- "Prompt for underline command used in \\useunder."
- (TeX-argument-insert
- (completing-read (TeX-argument-prompt optional prompt "Underline command")
- (mapcar (lambda (str) (concat "\\" str))
- '("uline" "uuline"
- "uwave" "sout" "xout"
- "dashuline" "dotuline"))
- nil t)
- optional))
-
(defvar LaTeX-ulem-package-options
'("UWforbf" "ULforem" "normalbf" "normalem")
"Package options for the ulem package.")
- [elpa] externals/auctex 9b365b7419 18/48: Simplify implementation of style/textpos.el, (continued)
- [elpa] externals/auctex 9b365b7419 18/48: Simplify implementation of style/textpos.el, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 1f6e9e7e58 10/48: Update style/XCharter.el to package version 1.24, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 05cd0440c5 02/48: Use `TeX-arg-completing-read-multiple', Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 0c482642cc 32/48: Simplify implementation of style/currvita.el, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 615e12f650 42/48: Simplify implementation of style/tcolorbox.el, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex b9548da54a 38/48: Simplify implementation of style/tcolorboxlib-theorems.el, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 8e3137f641 15/48: Simplify implementation of style/titlesec.el, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 20cabef81f 20/48: ; Delete unnecessary `TeX-arg-string', Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 49987f08dd 19/48: Provide completion candidates for `TeX-arg-length', Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 52738d11b2 39/48: Remove entry in `LaTeX-completion-function-map-alist-keyval', Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 8f70cd5211 14/48: Simplify implementation of style/ulem.el,
Tassilo Horn <=
- [elpa] externals/auctex d5ff42e0bd 34/48: Simplify implementation of style/enumitem.el, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex ff5a83f345 17/48: Simplify implementation of style/thm-restate.el, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 0ee39626e4 01/48: Use `TeX-arg-completing-read', Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 5949388ca2 12/48: Simplify argument queries in style/wrapfig.el, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 47f9ead1c6 44/48: Respect `TeX-exit-mark' when inserting enviroments, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex c6c7c3f024 22/48: ; Use #' to quote function, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex c0c9556338 30/48: Don't insert empty node name, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex 978ebea1e8 16/48: Simplify implementation of style/thmtools.el, Tassilo Horn, 2022/11/18
- [elpa] externals/auctex d3970b77da 09/48: ; * latex.el (LaTeX-common-initialization): Remove dupe textcircled., Tassilo Horn, 2022/11/18
- [elpa] externals/auctex a0ba387b2c 23/48: ; Trivial cleanups, Tassilo Horn, 2022/11/18