diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2009-10-02 03:48:36 +0000 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2009-10-02 03:48:36 +0000 |
commit | 32226619c5e563c384372b566000e5d37d783a61 (patch) | |
tree | 216af4221d2ba868b45162679ce3a0462985c422 /lisp/emulation | |
parent | 12a3c28c787e23801f40ea557a5c00b538968a52 (diff) | |
download | emacs-32226619c5e563c384372b566000e5d37d783a61.tar.gz |
Use `called-interactively-p' instead of `interactive-p'.
Diffstat (limited to 'lisp/emulation')
-rw-r--r-- | lisp/emulation/cua-base.el | 2 | ||||
-rw-r--r-- | lisp/emulation/edt.el | 2 | ||||
-rw-r--r-- | lisp/emulation/tpu-edt.el | 12 | ||||
-rw-r--r-- | lisp/emulation/tpu-extras.el | 2 | ||||
-rw-r--r-- | lisp/emulation/viper-cmd.el | 6 | ||||
-rw-r--r-- | lisp/emulation/viper.el | 3 |
6 files changed, 14 insertions, 13 deletions
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el index a99a3f76250..df91d53db81 100644 --- a/lisp/emulation/cua-base.el +++ b/lisp/emulation/cua-base.el @@ -1599,7 +1599,7 @@ shifted movement key, set `cua-highlight-region-shift-only'." (if (nth 2 cua--saved-state) (pc-selection-mode 1)) (setq shift-select-mode (nth 3 cua--saved-state)) - (if (interactive-p) + (if (called-interactively-p 'interactive) (message "CUA mode disabled.%s%s%s%s" (if (nth 1 cua--saved-state) " Delete-Selection" "") (if (and (nth 1 cua--saved-state) (nth 2 cua--saved-state)) " and" "") diff --git a/lisp/emulation/edt.el b/lisp/emulation/edt.el index 68ffea55e80..a11e06130a5 100644 --- a/lisp/emulation/edt.el +++ b/lisp/emulation/edt.el @@ -1272,7 +1272,7 @@ Argument BOTTOM is the bottom margin in number of lines or percent of window." (/ (1- (+ (* (string-to-number bottom) 100) (window-height))) (window-height))))) ;; report scroll margin settings if running interactively - (and (interactive-p) + (and (called-interactively-p 'interactive) (message "Scroll margins set. Top = %s%%, Bottom = %s%%" edt-top-scroll-margin edt-bottom-scroll-margin))) diff --git a/lisp/emulation/tpu-edt.el b/lisp/emulation/tpu-edt.el index c0fca58a5a8..a069679108c 100644 --- a/lisp/emulation/tpu-edt.el +++ b/lisp/emulation/tpu-edt.el @@ -884,7 +884,7 @@ With argument, fill and justify." (setq tpu-newline-and-indent-p t) (tpu-local-set-key "\C-m" 'newline-and-indent))) (tpu-update-mode-line) - (and (interactive-p) + (and (called-interactively-p 'interactive) (message "Carriage return inserts a newline%s" (if tpu-newline-and-indent-p " and indents." ".")))) @@ -1305,7 +1305,7 @@ kill modified buffers without asking." (interactive) (setq tpu-regexp-p (not tpu-regexp-p)) (tpu-set-search) - (and (interactive-p) + (and (called-interactively-p 'interactive) (message "Regular expression search and substitute %sabled." (if tpu-regexp-p "en" "dis")))) @@ -1450,7 +1450,7 @@ Used for reversing a search in progress." (interactive) (setq tpu-searching-forward (not tpu-searching-forward)) (tpu-set-search t) - (and (interactive-p) + (and (called-interactively-p 'interactive) (message "Searching %sward." (if tpu-searching-forward "for" "back")))) @@ -1501,7 +1501,7 @@ Used for reversing a search in progress." (setq tpu-rectangular-p (not tpu-rectangular-p)) (setq tpu-rectangle-string (if tpu-rectangular-p " Rect" "")) (tpu-update-mode-line) - (and (interactive-p) + (and (called-interactively-p 'interactive) (message "Rectangular cut and paste %sabled." (if tpu-rectangular-p "en" "dis")))) @@ -2273,7 +2273,7 @@ Accepts a prefix argument for the number of tpu-pan-columns to scroll." "Toggle control key bindings between TPU-edt and Emacs." (interactive) (tpu-reset-control-keys (not tpu-control-keys)) - (and (interactive-p) + (and (called-interactively-p 'interactive) (message "Control keys function with %s bindings." (if tpu-control-keys "TPU-edt" "Emacs")))) @@ -2438,7 +2438,7 @@ If FILE is nil, try to load a default file. The default file names are ;;;### (autoloads (tpu-set-cursor-bound tpu-set-cursor-free tpu-set-scroll-margins -;;;;;; tpu-cursor-free-mode) "tpu-extras" "tpu-extras.el" "a7e10e36bed23a02f05ec5a69ae8569a") +;;;;;; tpu-cursor-free-mode) "tpu-extras" "tpu-extras.el" "54d496981b1b831be427cbe3521e01d1") ;;; Generated autoloads from tpu-extras.el (autoload 'tpu-cursor-free-mode "tpu-extras" "\ diff --git a/lisp/emulation/tpu-extras.el b/lisp/emulation/tpu-extras.el index e8b2fec3ad3..6d0823ceb75 100644 --- a/lisp/emulation/tpu-extras.el +++ b/lisp/emulation/tpu-extras.el @@ -436,7 +436,7 @@ A repeat count means scroll that many sections." (ad-enable-advice f 'around 'tpu-respect-bottom-scroll-margin) (ad-activate f)) ;; report scroll margin settings if running interactively - (and (interactive-p) + (and (called-interactively-p 'interactive) (message "Scroll margins set. Top = %s%%, Bottom = %s%%" tpu-top-scroll-margin tpu-bottom-scroll-margin))) diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el index 83f268aa7ed..53a4517b476 100644 --- a/lisp/emulation/viper-cmd.el +++ b/lisp/emulation/viper-cmd.el @@ -3773,7 +3773,7 @@ If MAJOR-MODE is set, set the macros only in that major mode." "///" 'vi-state [2 (meta x) v i p e r - t o g g l e - s e a r c h - s t y l e return] scope) - (if (interactive-p) + (if (called-interactively-p 'interactive) (message "// and /// now toggle case-sensitivity and regexp search"))) (viper-unrecord-kbd-macro "//" 'vi-state) @@ -3796,7 +3796,7 @@ With a prefix argument, unsets the macro." "%%%" 'vi-state [(meta x) v i p e r - t o g g l e - p a r s e - s e x p - i g n o r e - c o m m e n t s return] 't) - (if (interactive-p) + (if (called-interactively-p 'interactive) (message "%%%%%% now toggles whether comments should be parsed for matching parentheses"))) (viper-unrecord-kbd-macro "%%%" 'vi-state)))) @@ -3825,7 +3825,7 @@ the macros are set in the current major mode. "///" 'emacs-state [2 (meta x) v i p e r - t o g g l e - s e a r c h - s t y l e return] (or arg-majormode major-mode)) - (if (interactive-p) + (if (called-interactively-p 'interactive) (message "// and /// now toggle case-sensitivity and regexp search."))) (viper-unrecord-kbd-macro "//" 'emacs-state) diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el index 2d65f5c4a06..a179e163933 100644 --- a/lisp/emulation/viper.el +++ b/lisp/emulation/viper.el @@ -897,7 +897,8 @@ It also can't undo some Viper settings." (defadvice self-insert-command (around viper-self-insert-ad activate) "Ignore all self-inserting keys in the vi-state." - (if (and (eq viper-current-state 'vi-state) (interactive-p)) + (if (and (eq viper-current-state 'vi-state) + (called-interactively-p 'interactive)) (beep 1) ad-do-it )) |