diff options
author | Robert Cochran <robert-git@cochranmail.com> | 2016-08-19 18:03:24 -0700 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2016-09-03 12:02:04 -0400 |
commit | 2ad16e4bf9b43c169bcfa1e6240584488fbc3d78 (patch) | |
tree | b4865b834918ad5ad738539ef3add718d96529c5 /lisp/image.el | |
parent | 5fbba6cceaf843cfca449eb000a0a65243b61808 (diff) | |
download | emacs-2ad16e4bf9b43c169bcfa1e6240584488fbc3d78.tar.gz |
Fix uses of (call-interactively) in lisp/emacs-lisp/checkdoc.el
Passing the prefix argument as the 3rd argument to 'call-interactively'
causes the prefix argument to be interpreted as events, which is not
only wrong, but also causes a type error, as 'current-prefix-arg' can
never be a vector as 'call-interactively' expects. 'call-interactively'
automatically passes its prefix argument to the called function, so just
do that, eliminating faulty behavior.
* lisp/emacs-lisp/checkdoc.el (checkdoc-ispell):
(checkdoc-ispell-current-buffer):
(checkdoc-ispell-interactive):
(checkdoc-ispell-message-text):
(checkdoc-ispell-start):
(checkdoc-ispell-continue):
(checkdoc-ispell-comments):
(checkdoc-ispell-defun):
Do not pass 'current-prefix-arg' to 'call-interactively' as an event
vector; merely allow it to propagate forward to the interactive call.
Diffstat (limited to 'lisp/image.el')
0 files changed, 0 insertions, 0 deletions