Commit 53fa8652 authored by Juri Linkov's avatar Juri Linkov
Browse files

* lisp/files.el (basic-save-buffer): Use `buffer-name' as the default

of `read-file-name' when buffer is not visiting a file.

Fixes: debbugs:12128
parent 242c0a95
2012-08-08 Juri Linkov <juri@jurta.org>
* files.el (basic-save-buffer): Use `buffer-name' as the default
of `read-file-name' when buffer is not visiting a file (bug#12128).
2012-08-08 Juri Linkov <juri@jurta.org>
 
* info.el (Info-isearch-search): Doc fix.
......
......@@ -4488,7 +4488,8 @@ Before and after saving the buffer, this function runs
(or buffer-file-name
(let ((filename
(expand-file-name
(read-file-name "File to save in: ") nil)))
(read-file-name "File to save in: "
nil (expand-file-name (buffer-name))))))
(if (file-exists-p filename)
(if (file-directory-p filename)
;; Signal an error if the user specified the name of an
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment