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
a22f0735
Commit
a22f0735
authored
Jul 02, 1998
by
Richard M. Stallman
Browse files
(ffap-read-file-or-url): Bind minibuffer-completing-file-name to t.
parent
a79485af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
lisp/ffap.el
lisp/ffap.el
+9
-9
No files found.
lisp/ffap.el
View file @
a22f0735
...
...
@@ -1183,15 +1183,15 @@ which may actually result in an url rather than a filename."
(
abbreviate-file-name
(
expand-file-name
guess
))
))
(
setq
dir
(
file-name-directory
guess
))))
(
s
et
q
guess
(
completing-read
prompt
'ffap-read-file-or-url-internal
dir
nil
(
if
dir
(
cons
guess
(
length
dir
))
guess
)
(
list
'file-name-history
)
))
(
l
et
((
minibuffer-completing-file-name
t
))
(
setq
guess
(
completing-read
prompt
'ffap-read-file-or-url-internal
dir
nil
(
if
dir
(
cons
guess
(
length
dir
))
guess
)
(
list
'file-name-history
))
))
;; Do file substitution like (interactive "F"), suggested by MCOOK.
(
or
(
ffap-url-p
guess
)
(
setq
guess
(
substitute-in-file-name
guess
)))
;; Should not do it on url's, where $ is a common (VMS?) character.
...
...
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