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
18b9dced
Commit
18b9dced
authored
May 30, 1997
by
Richard M. Stallman
Browse files
(file-name-non-special): Special handling for
substitute-in-file-name operation.
parent
8615e792
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
lisp/files.el
lisp/files.el
+7
-2
No files found.
lisp/files.el
View file @
18b9dced
...
...
@@ -2956,6 +2956,9 @@ With prefix arg, silently save all file-visiting buffers, then kill."
;; in the return value.
;; So just avoid stripping it in the first place.
'((expand-file-name . nil)
;; `identity' means just return the first arg
;; as stripped of its quoting.
(substitute-in-file-name . identity)
(file-name-directory . nil)
(file-name-as-directory . nil)
(directory-file-name . nil)
...
...
@@ -2970,13 +2973,15 @@ With prefix arg, silently save all file-visiting buffers, then kill."
(arguments (copy-sequence arguments)))
;; Strip off the /: from the file names that have this handler.
(save-match-data
(while file-arg-indices
(while
(consp
file-arg-indices
)
(and (nth (car file-arg-indices) arguments)
(string-match "\\`/:" (nth (car file-arg-indices) arguments))
(setcar (nthcdr (car file-arg-indices) arguments)
(substring (nth (car file-arg-indices) arguments) 2)))
(setq file-arg-indices (cdr file-arg-indices))))
(apply operation arguments)))
(if (eq file-arg-indices 'identity)
(car arguments)
(apply operation arguments))))
(define-key ctl-x-map "\C-f" 'find-file)
(define-key ctl-x-map "\C-q" 'toggle-read-only)
...
...
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