From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: completing-read does not accept spaces (was: Command timeclock-out) Date: Thu, 16 Jan 2014 18:07:47 +0100 Message-ID: <8761pj3lek.fsf@wanadoo.es> References: <52d7f748$0$29470$862e30e2@ngroups.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1389892104 23204 80.91.229.3 (16 Jan 2014 17:08:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Jan 2014 17:08:24 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Miguel Guedes Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 16 18:08:30 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W3qQW-0007t3-V9 for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Jan 2014 18:08:21 +0100 Original-Received: from localhost ([::1]:33962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3qQW-000414-Gb for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Jan 2014 12:08:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3qQE-00040q-Dy for help-gnu-emacs@gnu.org; Thu, 16 Jan 2014 12:08:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3qQ4-0005lN-KE for help-gnu-emacs@gnu.org; Thu, 16 Jan 2014 12:08:02 -0500 Original-Received: from relaycp03.dominioabsoluto.net ([217.116.26.84]:47107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3qQ4-0005kv-DU for help-gnu-emacs@gnu.org; Thu, 16 Jan 2014 12:07:52 -0500 Original-Received: from smtp.movistar.es (smtp21.acens.net [86.109.99.145]) by relaycp03.dominioabsoluto.net (Postfix) with ESMTP id 68E99BFA629; Thu, 16 Jan 2014 18:07:49 +0100 (CET) X-CTCH-RefID: str=0001.0A0B0207.52D811E5.0091, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-Spam: Unknown Original-Received: from qcore (83.41.58.222) by smtp.movistar.es (8.6.117.05) (authenticated as 981711563$telefonica.net) id 52D4564900265DA8; Thu, 16 Jan 2014 17:07:49 +0000 In-Reply-To: <52d7f748$0$29470$862e30e2@ngroups.net> (Miguel Guedes's message of "Thu, 16 Jan 2014 15:14:16 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 217.116.26.84 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95443 Archived-At: Miguel Guedes 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.