]> git.eshelyaron.com Git - emacs.git/commitdiff
Sven Joachim <svenjoac at gmx.de>
authorGlenn Morris <rgm@gnu.org>
Fri, 25 Jan 2008 04:41:09 +0000 (04:41 +0000)
committerGlenn Morris <rgm@gnu.org>
Fri, 25 Jan 2008 04:41:09 +0000 (04:41 +0000)
(kill-buffer-if-not-modified): Don't pass t to buffer-modified-p.

lisp/ChangeLog
lisp/view.el

index 2cc13c1c6645e5e3f763d1538ae39238f76dcab5..b93a5f3a37b4e0f6c7702ca59d961cba27084feb 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-25  Sven Joachim  <svenjoac@gmx.de>
+
+       * view.el (kill-buffer-if-not-modified): Don't pass t to
+       buffer-modified-p.
+
 2008-01-24  Michael Albinus  <michael.albinus@gmx.de>
 
        * net/tramp.el (tramp-do-copy-or-rename-file): Flush the cache of
index c663b2a24310d8c5bb094f7eb294974555aa4d9a..410b8ecc6a609a046515709318b9e610d569189b 100644 (file)
@@ -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))))