Mercurial > emacs
changeset 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 | 54f9fee16e00 |
children | dfba9ade0989 |
files | lisp/view.el |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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)))