











| author | Arash Esbati <arash@gnu.org> | 2026-08-30 20:36:18 +0200 |
|---|---|---|
| committer | Arash Esbati <arash@gnu.org> | 2026-08-30 20:36:18 +0200 |
| commit | acf2e1c724dd3bbcf337b1d5efe9c510793e9e3a (patch) | |
| tree | f58f64e55b3c82c48f98c0164ed057da706e2289 | |
| parent | eeafe67a8865efa80505fd6ee4268007b41c4be1 (diff) | |
* tex.el (TeX-auto-list-information): Use `ensure-list' instead of now obsolete `TeX-listify'. (TeX-listify): Declare obsolete and alias to `ensure-list'.
| -rw-r--r-- | tex.el | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tex.el b/tex.el
index 9bbfefe3078..4e04b8cbf81 100644
--- a/tex.el
+++ b/tex.el
@@ -4036,7 +4036,7 @@ when MODE is one of the AUCTeX new mode names."
;; Sort it
(message "Sorting %s..." name)
(set local
- (sort (mapcar #'TeX-listify (apply #'append (symbol-value local)))
+ (sort (mapcar #'ensure-list (apply #'append (symbol-value local)))
#'TeX-car-string-lessp))
(message "Sorting %s...done" name)
;; Make it unique
@@ -4889,10 +4889,8 @@ The optional argument EXTRA-DIRS is passed to `TeX-search-files-kpathsea'."
;; Some of these functions has little to do with TeX, but nonetheless we
;; should use the "TeX-" prefix to avoid name clashes.
-(defun TeX-listify (elt)
- "Return a newly created list with element ELT.
-If ELT already is a list, return ELT."
- (if (listp elt) elt (list elt)))
+;; We can use `ensure-list' available with Emacs 28.1:
+(define-obsolete-function-alias 'TeX-listify #'ensure-list "AUCTeX 14.2.0")
(defun TeX-member (elt list how)
"Return the member ELT in LIST. Comparison done with HOW.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。