From: Glenn Morris Date: Fri, 25 Jan 2008 04:41:09 +0000 (+0000) Subject: Sven Joachim X-Git-Tag: emacs-pretest-23.0.90~8420 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ce173b302f23074f3e8a086ba1ccfa7ad01ec8af;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 2cc13c1c664..b93a5f3a37b 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-24 Michael Albinus * net/tramp.el (tramp-do-copy-or-rename-file): Flush the cache of diff --git a/lisp/view.el b/lisp/view.el index c663b2a2431..410b8ecc6a6 100644 --- a/lisp/view.el +++ b/lisp/view.el @@ -249,7 +249,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))))