diff options
| author | Glenn Morris | 2008-01-25 04:42:30 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-01-25 04:42:30 +0000 |
| commit | a981bee972f9c0382aaeff9f6c7c0a55433bda88 (patch) | |
| tree | 5185284d66813adcb67d9fa6659a438094778c1e | |
| parent | 75bcb912ca11e772c239f1bb9a35f41d2f2725c1 (diff) | |
| download | emacs-a981bee972f9c0382aaeff9f6c7c0a55433bda88.tar.gz emacs-a981bee972f9c0382aaeff9f6c7c0a55433bda88.zip | |
Sven Joachim <svenjoac at gmx.de>
(kill-buffer-if-not-modified): Don't pass t to buffer-modified-p.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/view.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 28b1f7dc905..b620ff1e667 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-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 | |||
| 1 | 2008-01-25 Juanma Barranquero <lekktu@gmail.com> | 6 | 2008-01-25 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * allout.el (allout-prefix-data): Doc fix. | 8 | * allout.el (allout-prefix-data): Doc fix. |
diff --git a/lisp/view.el b/lisp/view.el index c89fd692152..7a56f983218 100644 --- a/lisp/view.el +++ b/lisp/view.el | |||
| @@ -244,7 +244,7 @@ This is local in each buffer, once it is used.") | |||
| 244 | ;; types C-x C-q again to return to view mode. | 244 | ;; types C-x C-q again to return to view mode. |
| 245 | (defun kill-buffer-if-not-modified (buf) | 245 | (defun kill-buffer-if-not-modified (buf) |
| 246 | "Like `kill-buffer', but does nothing if the buffer is modified." | 246 | "Like `kill-buffer', but does nothing if the buffer is modified." |
| 247 | (let ((buf (or (bufferp buf) (get-buffer buf)))) | 247 | (let ((buf (get-buffer buf))) |
| 248 | (and buf (not (buffer-modified-p buf)) | 248 | (and buf (not (buffer-modified-p buf)) |
| 249 | (kill-buffer buf)))) | 249 | (kill-buffer buf)))) |
| 250 | 250 | ||