+2003-06-03 Lute Kamstra <Lute.Kamstra@cwi.nl>
+
+ * cus-edit.el (custom-get-fresh-buffer): Test for nonexistence
+ buffer.
+
2003-06-03 Richard M. Stallman <rms@gnu.org>
* emacs-lisp/lisp-mode.el (eval-last-sexp-1):
;; 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))