GNU bug report logs - #30072
27.0.50; completing-read-multiple chokes on list of default values

Previous Next

Package: emacs;

Reported by: "Basil L. Contovounesios" <contovob <at> tcd.ie>

Date: Wed, 10 Jan 2018 21:39:01 UTC

Severity: normal

Tags: patch

Found in version 27.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30072 in the body.
You can then email your comments to 30072 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#30072; Package emacs. (Wed, 10 Jan 2018 21:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Basil L. Contovounesios" <contovob <at> tcd.ie>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 10 Jan 2018 21:39:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; completing-read-multiple chokes on list of default values
Date: Wed, 10 Jan 2018 21:37:51 +0000
[0001-Support-list-of-default-values-in-completing-read-mu.patch (text/x-diff, attachment)]
[Message part 2 (text/plain, inline)]
Steps to reproduce:

1) emacs -Q
2) Evaluate the following form:

   (let ((l '("a" "b")))
     (completing-read-multiple "" l nil nil nil nil l))

3) C-m

I expect this to result in the string "a", as is the case when
completing-read-multiple is replaced with completing-read in step 2,
given the following excerpt from the docstring of c-r-m:

  The arguments are the same as those of `completing-read'.

Instead, the following error is signalled:

Debugger entered--Lisp error: (wrong-type-argument stringp ("a" "b"))
  string-match("[ \011]*,[ \011]*" ("a" "b") 0)
  split-string(("a" "b") "[ \011]*,[ \011]*" t)
  completing-read-multiple("" ("a" "b") nil nil nil nil ("a" "b"))

I attach a fix which follows the implementation of
completing-read-default.

Thanks,

-- 
Basil

In GNU Emacs 27.0.50 (build 14, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2018-01-10 built on thunk
Repository revision: b877e9aa0225ad186b544f127702e16c61b08444
Windowing system distributor 'The X.Org Foundation', version 11.0.11905000
System Description: Debian GNU/Linux testing (buster)

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30072; Package emacs. (Wed, 11 Apr 2018 11:37:02 GMT) Full text and rfc822 format available.

Message #8 received at 30072 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: 30072 <at> debbugs.gnu.org
Subject: Re: bug#30072: 27.0.50;
 completing-read-multiple chokes on list of default values
Date: Wed, 11 Apr 2018 12:36:07 +0100
[0001-Support-list-of-default-values-in-completing-read-mu.patch (text/x-diff, attachment)]
[Message part 2 (text/plain, inline)]
"Basil L. Contovounesios" <contovob <at> tcd.ie> writes:

> I attach a fix which follows the implementation of
> completing-read-default.

Updated to include bug ticket number.

Thanks,

-- 
Basil

Reply sent to Juri Linkov <juri <at> linkov.net>:
You have taken responsibility. (Thu, 12 Apr 2018 20:39:02 GMT) Full text and rfc822 format available.

Notification sent to "Basil L. Contovounesios" <contovob <at> tcd.ie>:
bug acknowledged by developer. (Thu, 12 Apr 2018 20:39:02 GMT) Full text and rfc822 format available.

Message #13 received at 30072-done <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: 30072-done <at> debbugs.gnu.org
Subject: Re: bug#30072: 27.0.50;
 completing-read-multiple chokes on list of default values
Date: Thu, 12 Apr 2018 23:37:17 +0300
>> I attach a fix which follows the implementation of
>> completing-read-default.
>
> Updated to include bug ticket number.

Thanks, pushed to master as 3d6fa0b.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 11 May 2018 11:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 345 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.