GNU bug report logs -
#12351
24.1; parse-colon-path turns empty paths into nil
Previous Next
Reported by: Dave Abrahams <dave <at> boostpro.com>
Date: Tue, 4 Sep 2012 19:06:01 UTC
Severity: normal
Found in version 24.1
Done: Chong Yidong <cyd <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
on Mon Dec 31 2012, Glenn Morris <rgm-AT-gnu.org> wrote:
> PS parse-colon-path is explicitly documented to return nils:
>
> -- Function: parse-colon-path path
> This function takes a search path string such as the value of the
> `PATH' environment variable, and splits it at the separators,
> returning a list of directory names. `nil' in this list means the
> current directory. Although the function's name says "colon", it
> actually uses the value of `path-separator'.
>
> (parse-colon-path ":/foo:/bar")
> => (nil "/foo/" "/bar/")
>
> The only use of parse-colon-path in "core" Emacs is in setting cd-path,
> which needs the nil, as we have seen.
OK, the docstring doesn't match the manual.
--
Dave Abrahams
BoostPro Computing Software Development Training
http://www.boostpro.com Clang/LLVM/EDG Compilers C++ Boost
This bug report was last modified 12 years and 200 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.