Mercurial > emacs
diff lisp/view.el @ 91465:3e380c491c96
(kill-buffer-if-not-modified): Add an autoload cookie.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 02 Feb 2008 16:07:12 +0000 |
parents | e75f63aebb2b |
children | 1e3a407766b9 |
line wrap: on
line diff
--- a/lisp/view.el Sat Feb 02 15:49:46 2008 +0000 +++ b/lisp/view.el Sat Feb 02 16:07:12 2008 +0000 @@ -247,6 +247,7 @@ ;; kill a buffer modified by the user. A buffer in view mode can ;; become modified if the user types C-x C-q, edits the buffer, then ;; types C-x C-q again to return to view mode. +;;;###autoload (defun kill-buffer-if-not-modified (buf) "Like `kill-buffer', but does nothing if the buffer is modified." (let ((buf (get-buffer buf)))