X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/ae940284fa77a6928f5162b7de859e67bdc7506c..5deebc3c914c86e84d11661a7877c00b2d7fddd1:/lisp/elide-head.el diff --git a/lisp/elide-head.el b/lisp/elide-head.el index 7c26204d79..917e813d65 100644 --- a/lisp/elide-head.el +++ b/lisp/elide-head.el @@ -1,7 +1,6 @@ ;;; elide-head.el --- hide headers in files -;; Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007, -;; 2008, 2009 Free Software Foundation, Inc. +;; Copyright (C) 1999, 2001-2016 Free Software Foundation, Inc. ;; Author: Dave Love ;; Keywords: outlines tools @@ -97,7 +96,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,10 +113,9 @@ 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) -;; arch-tag: a00e6b5b-6aeb-45b1-b734-63e23df80928 ;;; elide-head.el ends here