diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-02-14 13:56:53 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-02-14 13:56:53 +0100 |
commit | c1ef7adeb649aa99a10c4bd3b6ce988b309da3cc (patch) | |
tree | b03eb0219885c5c43f5ee45d77cb0fa24588e8fb /lisp/emacs-lisp/seq.el | |
parent | 2bfcd93e83d264e6b801e43bfd1a78e345b8221d (diff) | |
download | emacs-c1ef7adeb649aa99a10c4bd3b6ce988b309da3cc.tar.gz emacs-c1ef7adeb649aa99a10c4bd3b6ce988b309da3cc.tar.bz2 emacs-c1ef7adeb649aa99a10c4bd3b6ce988b309da3cc.zip |
Add 'read-extended-command-predicate'
* doc/emacs/m-x.texi (M-x): Document it.
* doc/lispref/commands.texi (Interactive Call): Document it further.
* lisp/simple.el (read-extended-command-predicate): New user option.
(read-extended-command-predicate): Use it.
(completion-in-mode-p): New function (the default predicate).
Diffstat (limited to 'lisp/emacs-lisp/seq.el')
-rw-r--r-- | lisp/emacs-lisp/seq.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/seq.el b/lisp/emacs-lisp/seq.el index 31c15fea90d..55ce6d9426d 100644 --- a/lisp/emacs-lisp/seq.el +++ b/lisp/emacs-lisp/seq.el @@ -455,6 +455,7 @@ negative integer or 0, nil is returned." (setq sequence (seq-drop sequence n))) (nreverse result)))) +;;;###autoload (cl-defgeneric seq-intersection (sequence1 sequence2 &optional testfn) "Return a list of the elements that appear in both SEQUENCE1 and SEQUENCE2. Equality is defined by TESTFN if non-nil or by `equal' if nil." |