changeset 87957:eeb928a40b37

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:40:09 +0000
parents a848c1841fb4
children 7b78a7a848ef
files lisp/view.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/view.el	Fri Jan 25 04:35:17 2008 +0000
+++ b/lisp/view.el	Fri Jan 25 04:40:09 2008 +0000
@@ -249,7 +249,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))))