From: Glenn Morris Date: Fri, 25 Jan 2008 04:42:30 +0000 (+0000) Subject: Sven Joachim X-Git-Tag: emacs-pretest-22.1.90~40 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a981bee972f9c0382aaeff9f6c7c0a55433bda88;p=emacs.git Sven Joachim (kill-buffer-if-not-modified): Don't pass t to buffer-modified-p. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 28b1f7dc905..b620ff1e667 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2008-01-25 Sven Joachim + + * view.el (kill-buffer-if-not-modified): Don't pass t to + buffer-modified-p. + 2008-01-25 Juanma Barranquero * allout.el (allout-prefix-data): Doc fix. diff --git a/lisp/view.el b/lisp/view.el index c89fd692152..7a56f983218 100644 --- a/lisp/view.el +++ b/lisp/view.el @@ -244,7 +244,7 @@ This is local in each buffer, once it is used.") ;; types C-x C-q again to return to view mode. (defun kill-buffer-if-not-modified (buf) "Like `kill-buffer', but does nothing if the buffer is modified." - (let ((buf (or (bufferp buf) (get-buffer buf)))) + (let ((buf (get-buffer buf))) (and buf (not (buffer-modified-p buf)) (kill-buffer buf))))