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/elide-head.el | |
parent | 12a3c28c787e23801f40ea557a5c00b538968a52 (diff) | |
download | emacs-32226619c5e563c384372b566000e5d37d783a61.tar.gz |
Use `called-interactively-p' instead of `interactive-p'.
Diffstat (limited to 'lisp/elide-head.el')
-rw-r--r-- | lisp/elide-head.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/elide-head.el b/lisp/elide-head.el index 7c26204d793..99dcd7804d6 100644 --- a/lisp/elide-head.el +++ b/lisp/elide-head.el @@ -97,7 +97,7 @@ This is suitable as an entry on `find-file-hook' or appropriate mode hooks." rest nil)))) (if rest (setq rest (cdr rest)))) (if (not (and beg end)) - (if (interactive-p) + (if (called-interactively-p 'interactive) (message "No header found")) (goto-char beg) (end-of-line) @@ -114,7 +114,7 @@ This is suitable as an entry on `find-file-hook' or appropriate mode hooks." (if (and (overlayp elide-head-overlay) (overlay-buffer elide-head-overlay)) (delete-overlay elide-head-overlay) - (if (interactive-p) + (if (called-interactively-p 'interactive) (message "No header hidden")))) (provide 'elide-head) |