From c8fe6aae0ac352e48fff2bdec966a0605be63bac Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Tue, 25 Oct 2022 16:42:58 +0200 Subject: [PATCH] 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. --- lisp/progmodes/eglot.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 201fafb6712..1b983e94d79 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -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 -- 2.39.5