Mercurial > emacs
changeset 51429:b107764e9a67
(custom-get-fresh-buffer): Test for nonexistence buffer.
author | Lute Kamstra <lute@gnu.org> |
---|---|
date | Tue, 03 Jun 2003 11:24:06 +0000 |
parents | 08fab8d59966 |
children | 0e37a5f5cbdb |
files | lisp/cus-edit.el |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/cus-edit.el Tue Jun 03 11:13:08 2003 +0000 +++ b/lisp/cus-edit.el Tue Jun 03 11:24:06 2003 +0000 @@ -1214,7 +1214,7 @@ ;; 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))