Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
6462af0d
Commit
6462af0d
authored
Mar 09, 2009
by
Jason Rumney
Browse files
(read-file-name): Only split dir name when
default filename is missing. (Bug#2585)
parent
18a10a21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/minibuffer.el
lisp/minibuffer.el
+4
-2
No files found.
lisp/ChangeLog
View file @
6462af0d
2009-03-09 Jason Rumney <jasonr@gnu.org>
* minibuffer.el (read-file-name): Only split dir name when
default filename is missing. (Bug#2585)
2009-03-08 Chong Yidong <cyd@stupidchicken.com>
* finder.el (finder-commentary): Don't delete other
...
...
lisp/minibuffer.el
View file @
6462af0d
...
...
@@ -1159,9 +1159,11 @@ and `read-file-name-function'."
(
completing-read
prompt
'read-file-name-internal
nil
mustmatch
insdef
'file-name-history
default-filename
)))
;; If DIR contains a file name, split it.
;; If DEFAULT-FILENAME not supplied and DIR contains
;; a file name, split it.
(
let
((
file
(
file-name-nondirectory
dir
)))
(
when
(
and
default-filename
(
not
(
zerop
(
length
file
))))
(
when
(
and
(
not
default-filename
)
(
not
(
zerop
(
length
file
))))
(
setq
default-filename
file
)
(
setq
dir
(
file-name-directory
dir
)))
(
if
default-filename
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment