


























| author | Arash Esbati <arash@gnu.org> | 2026-06-19 16:22:13 +0200 |
|---|---|---|
| committer | Arash Esbati <arash@gnu.org> | 2026-06-19 16:22:13 +0200 |
| commit | 3c3d2117854074b1add2d997c28a90a037c7dfb3 (patch) | |
| tree | 7572587630c9e650c880b3e81853afe80fae9943 | |
| parent | 9316f5c71df63322eb54b0e536b63756dc7f8c76 (diff) | |
* latex.el (LaTeX-completion-parse-args): Use `always'. * tex.el (TeX-always): Delete compat code. AUCTeX requires Emacs 28.1 which provides the function `always' which is now used.
| -rw-r--r-- | latex.el | 2 | ||||
| -rw-r--r-- | tex.el | 10 |
2 files changed, 1 insertions, 11 deletions
diff --git a/latex.el b/latex.el
index ae13f2eb078..a8dd6adad44 100644
--- a/latex.el
+++ b/latex.el
@@ -7987,7 +7987,7 @@ or `LaTeX-environment-list' and returns it."
;; cases, but will also fail for example in hyperref.el. This
;; decision should revisited at a later stage:
(when (assq 'TeX-arg-conditional arg-list)
- (cl-letf (((symbol-function 'y-or-n-p) #'TeX-always))
+ (cl-letf (((symbol-function 'y-or-n-p) #'always))
(while (and arg-list
(setq arg (car arg-list)))
(if (and (listp arg) (eq (car arg) 'TeX-arg-conditional))
diff --git a/tex.el b/tex.el
index 93a1f2c66c2..c095e9c5063 100644
--- a/tex.el
+++ b/tex.el
@@ -4891,16 +4891,6 @@ Return nil if ELT is not a member of LIST."
(make-obsolete 'TeX-assoc
"use (assoc-string KEY LIST t) instead." "AUCTeX 13.0")
-(if (>= emacs-major-version 28)
- (defalias 'TeX-always #'always)
- (defun TeX-always (&rest _arguments)
- "Ignore ARGUMENTS, do nothing and return t.
-This function accepts any number of arguments in ARGUMENTS.
-Also see `ignore'.
-
-This is a compatibility function for Emacs versions prior to v.28."
- t))
-
;; COMPATIBILITY for Emacs<30
(if (fboundp 'derived-mode-add-parents)
(defalias 'TeX-derived-mode-add-parents #'derived-mode-add-parents)
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。