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
4cddca30
Commit
4cddca30
authored
Dec 31, 2012
by
Glenn Morris
Browse files
* files.el (parse-colon-path): Return nil for empty path elements.
Fixes: debbugs:13296
parent
6861432e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/files.el
lisp/files.el
+6
-3
No files found.
lisp/ChangeLog
View file @
4cddca30
2012-12-31 Glenn Morris <rgm@gnu.org>
* files.el (parse-colon-path): Doc fix. (Bug#12351)
Return nil for empty path elements. (Bug#13296)
2012-12-31 Fabián Ezequiel Gallina <fgallina@cuca>
* progmodes/python.el (python-nav-end-of-statement): Rewrite in
...
...
lisp/files.el
View file @
4cddca30
...
...
@@ -660,11 +660,14 @@ Not actually set up until the first time you use it.")
"Explode a search path into a list of directory names.
Directories are separated by `path-separator' (which is colon in
GNU and Unix systems). Substitute environment variables into the
resulting list of directory names."
resulting list of directory names. For an empty path element (i.e.,
a leading or trailing separator, or two adjacent separators), return
nil (meaning `default-directory') as the associated list element."
(
when
(
stringp
search-path
)
(
mapcar
(
lambda
(
f
)
(
substitute-in-file-name
(
file-name-as-directory
f
)))
(
split-string
search-path
path-separator
t
))))
(
if
(
equal
""
f
)
nil
(
substitute-in-file-name
(
file-name-as-directory
f
))))
(
split-string
search-path
path-separator
))))
(
defun
cd-absolute
(
dir
)
"Change current directory to given absolute file name DIR."
...
...
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