Commit 636004b9 authored by Richard M. Stallman's avatar Richard M. Stallman

(elide-head): Change error to message.

(elide-head-show): Likewise.
parent b965722b
......@@ -98,7 +98,7 @@ This is suitable as an entry on `find-file-hook' or appropriate mode hooks."
(if rest (setq rest (cdr rest))))
(if (not (and beg end))
(if (interactive-p)
(error "No header found"))
(message "No header found"))
(goto-char beg)
(end-of-line)
(if (overlayp elide-head-overlay)
......@@ -115,7 +115,7 @@ This is suitable as an entry on `find-file-hook' or appropriate mode hooks."
(overlay-buffer elide-head-overlay))
(delete-overlay elide-head-overlay)
(if (interactive-p)
(error "No header hidden"))))
(message "No header hidden"))))
(provide 'elide-head)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment