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
27d0420c
Commit
27d0420c
authored
May 26, 1993
by
Richard M. Stallman
Browse files
(find-file-noselect): Expand buffer-file-truename
before copying it to anything else.
parent
f8a80313
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lisp/files.el
lisp/files.el
+3
-1
No files found.
lisp/files.el
View file @
27d0420c
...
...
@@ -608,7 +608,9 @@ The buffer is not selected, just returned to the caller."
(
not
(
member
logical
find-file-not-true-dirname-list
)))
(
setq
buffer-file-name
buffer-file-truename
))
(
if
find-file-visit-truename
(
setq
buffer-file-name
(
setq
filename
buffer-file-truename
)))
(
setq
buffer-file-name
(
setq
filename
(
expand-file-name
buffer-file-truename
))))
;; Set buffer's default directory to that of the file.
(
setq
default-directory
(
file-name-directory
filename
))
;; Turn off backup files for certain file names. Since
...
...
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