mirror of
https://github.com/protesilaos/dotfiles.git
synced 2026-09-10 07:16:20 -04:00
emacs: ensure prot/crm-p does not error out when crm has not been loaded yet
This commit is contained in:
parent
8f7b2a1b76
commit
3753e9e3f5
|
|
@ -194,7 +194,8 @@ Also see `prot/choose-completion-no-exit' and `prot/choose-completion-dwim'."
|
|||
|
||||
(defun prot/crm-p ()
|
||||
"Return non-nil if `completing-read-multiple' is in use."
|
||||
(when-let* ((window (active-minibuffer-window))
|
||||
(when-let* ((_ (bound-and-true-p crm-completion-table))
|
||||
(window (active-minibuffer-window))
|
||||
(buffer (window-buffer window)))
|
||||
(buffer-local-value 'crm-completion-table buffer)))
|
||||
|
||||
|
|
|
|||
|
|
@ -4501,7 +4501,8 @@ Also see `prot/choose-completion-no-exit' and `prot/choose-completion-dwim'."
|
|||
|
||||
(defun prot/crm-p ()
|
||||
"Return non-nil if `completing-read-multiple' is in use."
|
||||
(when-let* ((window (active-minibuffer-window))
|
||||
(when-let* ((_ (bound-and-true-p crm-completion-table))
|
||||
(window (active-minibuffer-window))
|
||||
(buffer (window-buffer window)))
|
||||
(buffer-local-value 'crm-completion-table buffer)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue