aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-01-25 04:41:09 +0000
committerGlenn Morris2008-01-25 04:41:09 +0000
commitce173b302f23074f3e8a086ba1ccfa7ad01ec8af (patch)
treed48092d43e19ecf8c72cdc625f312ff922476832
parentc8467c40b35566ca0515f3abe349642dcd26e017 (diff)
downloademacs-ce173b302f23074f3e8a086ba1ccfa7ad01ec8af.tar.gz
emacs-ce173b302f23074f3e8a086ba1ccfa7ad01ec8af.zip
Sven Joachim <svenjoac at gmx.de>
(kill-buffer-if-not-modified): Don't pass t to buffer-modified-p.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/view.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2cc13c1c664..b93a5f3a37b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-01-25 Sven Joachim <svenjoac@gmx.de>
2
3 * view.el (kill-buffer-if-not-modified): Don't pass t to
4 buffer-modified-p.
5
12008-01-24 Michael Albinus <michael.albinus@gmx.de> 62008-01-24 Michael Albinus <michael.albinus@gmx.de>
2 7
3 * net/tramp.el (tramp-do-copy-or-rename-file): Flush the cache of 8 * net/tramp.el (tramp-do-copy-or-rename-file): Flush the cache of
diff --git a/lisp/view.el b/lisp/view.el
index c663b2a2431..410b8ecc6a6 100644
--- a/lisp/view.el
+++ b/lisp/view.el
@@ -249,7 +249,7 @@ This is local in each buffer, once it is used.")
249;; types C-x C-q again to return to view mode. 249;; types C-x C-q again to return to view mode.
250(defun kill-buffer-if-not-modified (buf) 250(defun kill-buffer-if-not-modified (buf)
251 "Like `kill-buffer', but does nothing if the buffer is modified." 251 "Like `kill-buffer', but does nothing if the buffer is modified."
252 (let ((buf (or (bufferp buf) (get-buffer buf)))) 252 (let ((buf (get-buffer buf)))
253 (and buf (not (buffer-modified-p buf)) 253 (and buf (not (buffer-modified-p buf))
254 (kill-buffer buf)))) 254 (kill-buffer buf))))
255 255