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
9172b88d
Commit
9172b88d
authored
Mar 12, 2000
by
Gerd Moellmann
Browse files
(Fread_file_name): Handle case that DIR contains a
file name.
parent
d21cf544
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
src/ChangeLog
src/ChangeLog
+3
-0
src/fileio.c
src/fileio.c
+9
-0
No files found.
src/ChangeLog
View file @
9172b88d
No preview for this file type
src/fileio.c
View file @
9172b88d
...
...
@@ -5596,6 +5596,15 @@ DIR defaults to current buffer's directory default.")
&&
use_dialog_box
&&
have_menus_p
())
{
/* If DIR contains a file name, split it. */
Lisp_Object
file
;
file
=
Ffile_name_nondirectory
(
dir
);
if
(
XSTRING
(
file
)
->
size
&&
NILP
(
default_filename
))
{
default_filename
=
file
;
dir
=
Ffile_name_directory
(
dir
);
}
default_filename
=
Fexpand_file_name
(
default_filename
,
dir
);
val
=
Fx_file_dialog
(
prompt
,
dir
,
default_filename
,
mustmatch
);
add_to_history
=
1
;
}
...
...
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