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
4a02b552
Commit
4a02b552
authored
Jun 23, 1994
by
Richard M. Stallman
Browse files
(shell-prefixed-directory-name): Do nothing if
comint-file-name-prefix is empty. Do not inline.
parent
dc0825db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
lisp/shell.el
lisp/shell.el
+8
-6
No files found.
lisp/shell.el
View file @
4a02b552
...
...
@@ -480,12 +480,14 @@ Environment variables are expanded, see function `substitute-in-file-name'."
(
error
"Couldn't popd"
)))))
;; Return DIR prefixed with comint-file-name-prefix as appropriate.
(
defsubst
shell-prefixed-directory-name
(
dir
)
(
if
(
file-name-absolute-p
dir
)
;; The name is absolute, so prepend the prefix.
(
concat
comint-file-name-prefix
dir
)
;; For a relative name we assume default-directory already has the prefix.
(
expand-file-name
dir
)))
(
defun
shell-prefixed-directory-name
(
dir
)
(
if
(
=
(
length
comint-file-name-prefix
)
0
)
dir
(
if
(
file-name-absolute-p
dir
)
;; The name is absolute, so prepend the prefix.
(
concat
comint-file-name-prefix
dir
)
;; For a relative name we assume default-directory already has the prefix.
(
expand-file-name
dir
))))
;;; cd [dir]
(
defun
shell-process-cd
(
arg
)
...
...
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