changeset 79917:65bec4800891

Sven Joachim <svenjoac at gmx.de> (kill-buffer-if-not-modified): Don't pass t to buffer-modified-p.
author Glenn Morris <rgm@gnu.org>
date Fri, 25 Jan 2008 04:39:51 +0000
parents a959314f358f
children 865d98b52dd5
files lisp/view.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/view.el	Fri Jan 25 02:18:05 2008 +0000
+++ b/lisp/view.el	Fri Jan 25 04:39:51 2008 +0000
@@ -244,7 +244,7 @@
 ;; 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))))