unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Óscar Fuentes" <ofv@wanadoo.es>
To: Miguel Guedes <miguel.a.guedes@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: completing-read does not accept spaces (was: Command timeclock-out)
Date: Thu, 16 Jan 2014 18:07:47 +0100	[thread overview]
Message-ID: <8761pj3lek.fsf@wanadoo.es> (raw)
In-Reply-To: <52d7f748$0$29470$862e30e2@ngroups.net> (Miguel Guedes's message of "Thu, 16 Jan 2014 15:14:16 +0000")

Miguel Guedes <miguel.a.guedes@gmail.com> writes:

> I've just noticed that when executing `timeclock-out' and inputting a
> reason it does not accept spaces.  This command makes use of the
> function `completing-read'.
>
> Is not accepting spaces when entering a reason for clocking out the
> intended behaviour?

Reading the docstring of completing-read I see no reason why it should
not accept spaces. So either the docstring is at fault or there is a bug
on completing-read. Curiously, the function will complete the user's
input to a string containing spaces if there is one on the collection of
candidates:

(completing-read "say: " (list "hello there"))

Please submit a bug report (M-x report-emacs-bug) against completing-read.



  reply	other threads:[~2014-01-16 17:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-16 15:14 Command timeclock-out Miguel Guedes
2014-01-16 17:07 ` Óscar Fuentes [this message]
2014-01-16 18:13   ` completing-read does not accept spaces (was: Command timeclock-out) Drew Adams
2014-01-16 18:36     ` completing-read does not accept spaces Óscar Fuentes
2014-01-16 18:50       ` Drew Adams
2014-01-16 19:01     ` Stefan Monnier
2014-01-23 12:29     ` Miguel Guedes
2014-01-23 14:20       ` Óscar Fuentes
2014-01-23 17:20       ` Drew Adams

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=8761pj3lek.fsf@wanadoo.es \
    --to=ofv@wanadoo.es \
    --cc=help-gnu-emacs@gnu.org \
    --cc=miguel.a.guedes@gmail.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).