[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12351: 24.1; parse-colon-path turns empty paths into nil
From: |
Dave Abrahams |
Subject: |
bug#12351: 24.1; parse-colon-path turns empty paths into nil |
Date: |
Mon, 31 Dec 2012 07:58:27 -0500 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2 (darwin) |
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
- bug#12351: 24.1; parse-colon-path turns empty paths into nil, (continued)
- bug#12351: 24.1; parse-colon-path turns empty paths into nil, Dave Abrahams, 2012/12/30
- bug#12351: 24.1; parse-colon-path turns empty paths into nil, Andreas Schwab, 2012/12/30
- bug#12351: 24.1; parse-colon-path turns empty paths into nil, Dave Abrahams, 2012/12/30
- bug#12351: 24.1; parse-colon-path turns empty paths into nil, Glenn Morris, 2012/12/31
- bug#12351: 24.1; parse-colon-path turns empty paths into nil, Dave Abrahams, 2012/12/31
- bug#12351: 24.1; parse-colon-path turns empty paths into nil, Andreas Schwab, 2012/12/31
- bug#12351: 24.1; parse-colon-path turns empty paths into nil, Wolfgang Jenkner, 2012/12/30
- bug#12351: 24.1; parse-colon-path turns empty paths into nil, Dave Abrahams, 2012/12/30
- bug#12351: 24.1; parse-colon-path turns empty paths into nil, Glenn Morris, 2012/12/31
- bug#12351: 24.1; parse-colon-path turns empty paths into nil, Glenn Morris, 2012/12/31
- bug#12351: 24.1; parse-colon-path turns empty paths into nil,
Dave Abrahams <=
- bug#12351: 24.1; parse-colon-path turns empty paths into nil, Wolfgang Jenkner, 2012/12/31