branch: externals/auctex commit 96c945a86349d900fe097a24f0cc2695dbfabeec Author: Arash Esbati <ar...@gnu.org> Commit: Tassilo Horn <t...@gnu.org>
Remove `TeX-arg-none' * style/alphanum.el (TeX-arg-none): Remove function and use `TeX-arg-literal' instead. --- style/alphanum.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/style/alphanum.el b/style/alphanum.el index 5a89422..0cac290 100644 --- a/style/alphanum.el +++ b/style/alphanum.el @@ -38,9 +38,6 @@ (declare-function reftex-match-string "reftex" (n)) (defvar reftex-section-regexp) -(defun TeX-arg-none (arg) - (insert " ")) - (defun reftex-get-section-level-alphanum () (save-excursion ; preserve position (save-match-data ; preserve matching data (important!) @@ -76,13 +73,15 @@ "alphanum" (lambda () (LaTeX-largest-level-set "chapter") - (TeX-add-symbols '("levelup" TeX-arg-none)) + (TeX-add-symbols + '("levelup" (TeX-arg-literal " "))) (make-local-variable 'LaTeX-section-list) (LaTeX-section-list-add-locally '(("part" 0) ;; the levels don't make sense with alphanum, I randomly chose 0... ("toc" 0) - ("sub" 0)) t) + ("sub" 0)) + t) (setq LaTeX-section-label '(("part" . "part:") ("toc" . "sec:")