+2014-04-02 Glenn Morris <rgm@gnu.org>
+
+ * simple.el (command-execute): Respect nil disabled-command-function.
+
2014-04-01 Nicolas Richard <theonewiththeevillook@yahoo.fr>
* simple.el (command-execute): Do not execute the command when it
(setq current-prefix-arg prefix-arg)
(setq prefix-arg nil)))))
(if (and (symbolp cmd)
- (get cmd 'disabled))
+ (get cmd 'disabled)
+ disabled-command-function)
;; FIXME: Weird calling convention!
(run-hooks 'disabled-command-function)
(let ((final cmd))