mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 19:31:02 -08:00
Make the M-x obsoletion check more robust
* lisp/simple.el (read-extended-command): Make the obsoletion check more robust.
This commit is contained in:
parent
780b1db126
commit
efc24f1e0b
1 changed files with 7 additions and 2 deletions
|
|
@ -2020,8 +2020,13 @@ This function uses the `read-extended-command-predicate' user option."
|
|||
;; Has a current-name.
|
||||
(functionp (car obsolete))
|
||||
;; when >= emacs-major-version
|
||||
(>= (car (version-to-list (caddr obsolete)))
|
||||
emacs-major-version))))))
|
||||
(condition-case nil
|
||||
(>= (car (version-to-list
|
||||
(caddr obsolete)))
|
||||
emacs-major-version)
|
||||
;; If the obsoletion version isn't
|
||||
;; valid, include the command.
|
||||
(error t)))))))
|
||||
pred)))
|
||||
(complete-with-action action obarray string pred))))
|
||||
(lambda (sym)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue