Commit c7510f6e authored by Glenn Morris's avatar Glenn Morris
Browse files

* lisp/simple.el (command-execute): Respect nil disabled-command-function.

parent 6116a727
2014-04-02 Glenn Morris <>
* simple.el (command-execute): Respect nil disabled-command-function.
2014-04-01 Nicolas Richard <>
* simple.el (command-execute): Do not execute the command when it
......@@ -1629,7 +1629,8 @@ a special event, so ignore the prefix argument and don't clear it."
(setq current-prefix-arg prefix-arg)
(setq prefix-arg nil)))))
(if (and (symbolp cmd)
(get cmd 'disabled))
(get cmd 'disabled)
;; FIXME: Weird calling convention!
(run-hooks 'disabled-command-function)
(let ((final cmd))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment