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
abd5b7f2
Commit
abd5b7f2
authored
May 22, 2004
by
Richard M. Stallman
Browse files
(Fread_file_name): Expand DIR if not absolute.
parent
017e09ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/fileio.c
src/fileio.c
+6
-3
No files found.
src/fileio.c
View file @
abd5b7f2
...
...
@@ -6198,10 +6198,13 @@ provides a file dialog box. */)
if
(
NILP
(
dir
))
dir
=
current_buffer
->
directory
;
if
(
NILP
(
Ffile_name_absolute_p
(
dir
)))
dir
=
Fexpand_file_name
(
dir
,
Qnil
);
if
(
NILP
(
default_filename
))
default_filename = !NILP (initial)
? Fexpand_file_name (initial, dir)
: current_buffer->filename;
default_filename
=
(
!
NILP
(
initial
)
?
Fexpand_file_name
(
initial
,
dir
)
:
current_buffer
->
filename
);
/* If dir starts with user's homedir, change that to ~. */
homedir
=
(
char
*
)
egetenv
(
"HOME"
);
...
...
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