mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-11 16:40:45 -08:00
* image-mode.el (image-toggle-display):
* emacs-lisp/elp.el (elp-instrument-function): * emacs-lisp/advice.el (ad-make-advised-definition): * emacs-lisp/easy-mmode.el (define-minor-mode): * net/browse-url.el (browse-url-maybe-new-window): * progmodes/sh-script.el (sh-learn-buffer-indent): Pass new argument 'any to `called-interactively-p'.
This commit is contained in:
parent
8d148b0dd1
commit
12a3c28c78
7 changed files with 17 additions and 7 deletions
|
|
@ -3087,7 +3087,7 @@ in any of these classes."
|
|||
(not advised-interactive-form))
|
||||
;; Check whether we were called interactively
|
||||
;; in order to do proper prompting:
|
||||
`(if (called-interactively-p)
|
||||
`(if (called-interactively-p 'any)
|
||||
(call-interactively ',origname)
|
||||
,(ad-make-mapped-call advised-arglist
|
||||
orig-arglist
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@ With zero or negative ARG turn mode off.
|
|||
,@body
|
||||
;; The on/off hooks are here for backward compatibility only.
|
||||
(run-hooks ',hook (if ,mode ',hook-on ',hook-off))
|
||||
(if (called-interactively-p)
|
||||
(if (called-interactively-p 'any)
|
||||
(progn
|
||||
,(if globalp `(customize-mark-as-set ',mode))
|
||||
;; Avoid overwriting a message shown by the body,
|
||||
|
|
|
|||
|
|
@ -269,7 +269,7 @@ FUNSYM must be a symbol of a defined function."
|
|||
(setq newguts (append newguts `((elp-wrapper
|
||||
(quote ,funsym)
|
||||
,(when (commandp funsym)
|
||||
'(called-interactively-p))
|
||||
'(called-interactively-p 'any))
|
||||
args))))
|
||||
;; to record profiling times, we set the symbol's function
|
||||
;; definition so that it runs the elp-wrapper function with the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue