all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dave Abrahams <dave@boostpro.com>
To: Glenn Morris <rgm@gnu.org>
Cc: 12351@debbugs.gnu.org, Wolfgang Jenkner <wjenkner@inode.at>
Subject: bug#12351: 24.1; parse-colon-path turns empty paths into nil
Date: Mon, 31 Dec 2012 07:58:27 -0500	[thread overview]
Message-ID: <m2k3ry8jkc.fsf@cube.luannocracy.com> (raw)
In-Reply-To: <gl623iitss.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 31 Dec 2012 02:07:15 -0500")


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





  reply	other threads:[~2012-12-31 12:58 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-04 18:58 bug#12351: 24.1; parse-colon-path turns empty paths into nil Dave Abrahams
2012-09-16 15:57 ` Chong Yidong
2012-12-30 18:52 ` Glenn Morris
2012-12-30 19:53   ` Dave Abrahams
2012-12-30 20:22     ` Eli Zaretskii
2012-12-30 20:37       ` Dave Abrahams
2012-12-30 22:08         ` Andreas Schwab
2012-12-31  3:08           ` Dave Abrahams
2012-12-31  7:14             ` Glenn Morris
2012-12-31 12:59               ` Dave Abrahams
2012-12-31 10:07             ` Andreas Schwab
2012-12-31  1:40         ` Wolfgang Jenkner
2012-12-31  3:11           ` Dave Abrahams
2012-12-31  6:56             ` Glenn Morris
2012-12-31  7:07               ` Glenn Morris
2012-12-31 12:58                 ` Dave Abrahams [this message]
2012-12-31 16:10             ` Wolfgang Jenkner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2k3ry8jkc.fsf@cube.luannocracy.com \
    --to=dave@boostpro.com \
    --cc=12351@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    --cc=wjenkner@inode.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.