(kill-buffer-if-not-modified): Don't pass t to buffer-modified-p.
+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-25 Juanma Barranquero <lekktu@gmail.com>
* allout.el (allout-prefix-data): Doc fix.
;; 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))))