GNU bug report logs - #27807
25.2; ido-completing-read handles cons-style initial-input wrong

Previous Next

Package: emacs;

Reported by: Ryan <rct <at> thompsonclan.org>

Date: Mon, 24 Jul 2017 18:51:01 UTC

Severity: minor

Tags: fixed

Found in version 25.2

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Ryan <rct <at> thompsonclan.org>
Cc: 27807 <at> debbugs.gnu.org
Subject: Re: bug#27807: 25.2; ido-completing-read handles cons-style
 initial-input wrong
Date: Mon, 15 Jul 2019 20:54:03 +0200
Ryan <rct <at> thompsonclan.org> writes:

>> `completing-read' uses 0-based index while `read-from-minibuffer' uses
>> 1-based index.
>
> Looking at "ido-read-internal", it passes the inital-input argument
> directly to "read-from-minibuffer" without incrementing it as
> "completing-read-default" does. Therefore any initial input of the form
> "(STRING . POSITION)" is handled incorrectly by ido, but this can be
> fixed by copying over the logic from "completing-read-default", as in
> this patch:
> https://mneme.dedyn.io/zerobin/?7cd07d73217c68e5#Aynth3YcZDcE7bkq8cxQnBl+uJ0/+d0UGYmB+7PqLT4=

The link is dead now, but I think I've now fixed this for Emacs 27.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 6 years and 7 days ago.

Previous Next


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