Make crm-default-separator obsolete as per FIXME

* lisp/emacs-lisp/crm.el (crm-default-separator): Make into
obsolete variable alias for crm-separator.
(crm-separator): Update docstring for above change.
This commit is contained in:
Stefan Kangas 2021-12-26 21:59:16 +01:00
parent d8225e9fa1
commit 693929bf48

View file

@ -77,15 +77,9 @@
;;; Code:
;; FIXME I don't see that this needs to exist as a separate variable.
;; crm-separator should suffice.
(defconst crm-default-separator "[ \t]*,[ \t]*"
"Default value of `crm-separator'.")
(defvar crm-separator crm-default-separator
(defvar crm-separator "[ \t]*,[ \t]*"
"Separator regexp used for separating strings in `completing-read-multiple'.
It should be a regexp that does not match the list of completion candidates.
The default value is `crm-default-separator'.")
It should be a regexp that does not match the list of completion candidates.")
(defvar-keymap crm-local-completion-map
:doc "Local keymap for minibuffer multiple input with completion.
@ -300,6 +294,8 @@ with empty strings removed."
;(completing-read my-prompt my-table nil t)
;(completing-read my-prompt my-table nil "match")
(define-obsolete-variable-alias 'crm-default-separator 'crm-separator "29.1")
(provide 'crm)
;;; crm.el ends here