eglot: Prefer ensure-list on Emacs 28 or later
* lisp/progmodes/eglot.el (eglot--ensure-list): Make into alias for 'ensure-list' on Emacs 28 or later.
This commit is contained in:
parent
fe816fc679
commit
c8fe6aae0a
1 changed files with 2 additions and 0 deletions
|
@ -1632,6 +1632,8 @@ and just return it. PROMPT shouldn't end with a question mark."
|
|||
(cl-loop for (k _v) on plist by #'cddr collect k))
|
||||
|
||||
(defun eglot--ensure-list (x) (if (listp x) x (list x)))
|
||||
(when (fboundp 'ensure-list) ; Emacs 28 or later
|
||||
(define-obsolete-function-alias 'eglot--ensure-list #'ensure-list "29.1"))
|
||||
|
||||
|
||||
;;; Minor modes
|
||||
|
|
Loading…
Add table
Reference in a new issue