summaryrefslogtreecommitdiff
path: root/lisp/simple.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/simple.el')
-rw-r--r--lisp/simple.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 0c5bcb66724..9057355a7ab 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1950,6 +1950,11 @@ to get different commands to edit and resubmit."
(complete-with-action action obarray string pred)))
#'commandp t nil 'extended-command-history)))
+(defun completion-with-modes-p (modes buffer)
+ (apply #'provided-mode-derived-p
+ (buffer-local-value 'major-mode buffer)
+ modes))
+
(defun read-extended-command--affixation (command-names)
(with-selected-window (or (minibuffer-selected-window) (selected-window))
(mapcar