summaryrefslogtreecommitdiff
path: root/lisp/cus-edit.el
diff options
context:
space:
mode:
authorLute Kamstra <lute@gnu.org>2003-06-03 11:24:42 +0000
committerLute Kamstra <lute@gnu.org>2003-06-03 11:24:42 +0000
commitfd1c38f415123f2cbd031bbe033a1601d9a9a77a (patch)
treee2ef1fed7eb07f0be1d06bd8de12fd647cf73b0f /lisp/cus-edit.el
parentbe781fa751dd6f5016e79ae20b6ff4209f7fdf9a (diff)
downloademacs-fd1c38f415123f2cbd031bbe033a1601d9a9a77a.tar.gz
(custom-get-fresh-buffer): Test for nonexistence buffer.
Diffstat (limited to 'lisp/cus-edit.el')
-rw-r--r--lisp/cus-edit.el2
1 files changed, 1 insertions, 1 deletions
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."
;; To be more complete, we should also kill all permanent-local variables,
;; but it's not needed for custom.
(let ((buf (get-buffer name)))
- (when (buffer-local-value 'buffer-file-name buf)
+ (when (and buf (buffer-local-value 'buffer-file-name buf))
;; This will check if the file is not saved.
(kill-buffer buf)
(setq buf nil))