Commit ce173b30 authored by Glenn Morris's avatar Glenn Morris
Browse files

Sven Joachim <svenjoac at>

(kill-buffer-if-not-modified): Don't pass t to buffer-modified-p.
parent c8467c40
2008-01-25 Sven Joachim <>
* view.el (kill-buffer-if-not-modified): Don't pass t to
2008-01-24 Michael Albinus <>
* net/tramp.el (tramp-do-copy-or-rename-file): Flush the cache of
......@@ -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))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment