From 38cc36a375344d2518eb8f9d3e0e6943199da529 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 2 Mar 2025 04:11:55 +0100 Subject: ; Improve docstring of cl-check-type * lisp/emacs-lisp/cl-macs.el (cl-check-type): Improve docstring. --- lisp/emacs-lisp/cl-macs.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lisp/emacs-lisp') diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el index 555b4f018ad..99c105c7559 100644 --- a/lisp/emacs-lisp/cl-macs.el +++ b/lisp/emacs-lisp/cl-macs.el @@ -3548,7 +3548,10 @@ Of course, we really can't know that for sure, so it's just a heuristic." ;;;###autoload (defmacro cl-check-type (form type &optional string) "Verify that FORM is of type TYPE; signal an error if not. -STRING is an optional description of the desired type." +STRING is an optional description of the desired type. + +Hint: To check the type of an object, use `cl-type-of'. +To define new types, see `cl-deftype'." (declare (debug (place cl-type-spec &optional stringp))) (and (or (not (macroexp-compiling-p)) (< cl--optimize-speed 3) (= cl--optimize-safety 3)) -- cgit v1.2.3 From 8091772767666f2c671a8ba481d50859388152db Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Sun, 2 Mar 2025 05:13:14 +0200 Subject: completing-read-multiple: Fix support for ":" as separator * lisp/emacs-lisp/crm.el (completing-read-multiple): Do not search for separators inside the prompt (bug#76461). --- lisp/emacs-lisp/crm.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lisp/emacs-lisp') diff --git a/lisp/emacs-lisp/crm.el b/lisp/emacs-lisp/crm.el index a371a8e14de..d442d74f030 100644 --- a/lisp/emacs-lisp/crm.el +++ b/lisp/emacs-lisp/crm.el @@ -253,7 +253,9 @@ with empty strings removed." (setq-local completion-list-insert-choice-function (lambda (_start _end choice) (let* ((beg (save-excursion - (if (search-backward-regexp crm-separator nil t) + (if (search-backward-regexp crm-separator + (field-beginning) + t) (1+ (point)) (minibuffer-prompt-end)))) (end (save-excursion -- cgit v1.2.3