diff options
| author | Lute Kamstra | 2003-06-03 11:24:42 +0000 |
|---|---|---|
| committer | Lute Kamstra | 2003-06-03 11:24:42 +0000 |
| commit | fd1c38f415123f2cbd031bbe033a1601d9a9a77a (patch) | |
| tree | e2ef1fed7eb07f0be1d06bd8de12fd647cf73b0f | |
| parent | be781fa751dd6f5016e79ae20b6ff4209f7fdf9a (diff) | |
| download | emacs-fd1c38f415123f2cbd031bbe033a1601d9a9a77a.tar.gz emacs-fd1c38f415123f2cbd031bbe033a1601d9a9a77a.zip | |
(custom-get-fresh-buffer): Test for nonexistence buffer.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/cus-edit.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d700b6bda54..9838d002a29 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2003-06-03 Lute Kamstra <Lute.Kamstra@cwi.nl> | ||
| 2 | |||
| 3 | * cus-edit.el (custom-get-fresh-buffer): Test for nonexistence | ||
| 4 | buffer. | ||
| 5 | |||
| 1 | 2003-06-03 Richard M. Stallman <rms@gnu.org> | 6 | 2003-06-03 Richard M. Stallman <rms@gnu.org> |
| 2 | 7 | ||
| 3 | * emacs-lisp/lisp-mode.el (eval-last-sexp-1): | 8 | * emacs-lisp/lisp-mode.el (eval-last-sexp-1): |
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 51e4e5b1f3a..090503e67e7 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -1214,7 +1214,7 @@ not for everybody." | |||
| 1214 | ;; To be more complete, we should also kill all permanent-local variables, | 1214 | ;; To be more complete, we should also kill all permanent-local variables, |
| 1215 | ;; but it's not needed for custom. | 1215 | ;; but it's not needed for custom. |
| 1216 | (let ((buf (get-buffer name))) | 1216 | (let ((buf (get-buffer name))) |
| 1217 | (when (buffer-local-value 'buffer-file-name buf) | 1217 | (when (and buf (buffer-local-value 'buffer-file-name buf)) |
| 1218 | ;; This will check if the file is not saved. | 1218 | ;; This will check if the file is not saved. |
| 1219 | (kill-buffer buf) | 1219 | (kill-buffer buf) |
| 1220 | (setq buf nil)) | 1220 | (setq buf nil)) |