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/comint.el | |
parent | 12a3c28c787e23801f40ea557a5c00b538968a52 (diff) | |
download | emacs-32226619c5e563c384372b566000e5d37d783a61.tar.gz |
Use `called-interactively-p' instead of `interactive-p'.
Diffstat (limited to 'lisp/comint.el')
-rw-r--r-- | lisp/comint.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index cc04bd90209..4f3f1c6d207 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -1899,7 +1899,8 @@ This function could be on `comint-output-filter-functions' or bound to a key." (save-excursion (condition-case nil (goto-char - (if (interactive-p) comint-last-input-end comint-last-output-start)) + (if (called-interactively-p 'interactive) + comint-last-input-end comint-last-output-start)) (error nil)) (while (re-search-forward "\r+$" pmark t) (replace-match "" t t))))) @@ -3068,7 +3069,7 @@ from input that has not yet been sent." (let ((proc (or (get-buffer-process (current-buffer)) (error "Current buffer has no process")))) (goto-char (process-mark proc)) - (when (interactive-p) + (when (called-interactively-p 'interactive) (message "Point is now at the process mark")))) (defun comint-bol-or-process-mark () |