GNU bug report logs - #20953
25.0.50; with icomplete, completion says "Matched" and then returns something else.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Nicolas Richard <youngfrog@HIDDEN>; dated Wed, 1 Jul 2015 21:47:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 20953 <at> debbugs.gnu.org:


Received: (at 20953) by debbugs.gnu.org; 2 Jul 2015 01:40:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 01 21:40:56 2015
Received: from localhost ([127.0.0.1]:36587 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZATUl-0000PZ-Er
	for submit <at> debbugs.gnu.org; Wed, 01 Jul 2015 21:40:55 -0400
Received: from mail-wg0-f54.google.com ([74.125.82.54]:36136)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <raaahh@HIDDEN>) id 1ZATUh-0000PH-R3
 for 20953 <at> debbugs.gnu.org; Wed, 01 Jul 2015 21:40:52 -0400
Received: by wguu7 with SMTP id u7so50505838wgu.3
 for <20953 <at> debbugs.gnu.org>; Wed, 01 Jul 2015 18:40:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:subject:to:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-type:content-transfer-encoding;
 bh=yP2Fzlob9ITzir75meLdhz673dZIXuuc3VniX32P9X0=;
 b=pw85CxwlcmxOulkHInDURDsM3w228s0b1Zg5O6U2KpI6QDd05COnNpqRsCipKGlmse
 xrFECIPZfLi9GiHO4hmduPerhVHbkCCLZNXL+sOYrq0HtMt2LGpsH4DOFJg/Z3mYgteR
 7/c+ZLEGg+4avJY4pCw6JSFXnWcGYKfQJ46GqsqJdgm2trp7mv9DppOrRYThhNO2KrSq
 EpP7vOkG6KxUu8uojx8njmvk7onlMFKFzhKnchETzinjmhLmMDmNdFIP5geTU/3ND6AK
 3ODFgmbnWo6VURTBex6+J0qKKqIunBWn+HI/FzP/DYogyaRDxNNto86uj5G93d3Crf4i
 TxfQ==
X-Received: by 10.180.198.52 with SMTP id iz20mr21292373wic.77.1435801245945; 
 Wed, 01 Jul 2015 18:40:45 -0700 (PDT)
Received: from [192.168.1.2] ([82.102.93.54])
 by mx.google.com with ESMTPSA id i6sm5409483wjf.29.2015.07.01.18.40.44
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 01 Jul 2015 18:40:44 -0700 (PDT)
Subject: Re: bug#20953: 25.0.50; with icomplete, completion says "Matched" and
 then returns something else.
To: Nicolas Richard <youngfrog@HIDDEN>, 20953 <at> debbugs.gnu.org
References: <86h9pn1rh8.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <5594969A.5050200@HIDDEN>
Date: Thu, 2 Jul 2015 04:40:42 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.0
MIME-Version: 1.0
In-Reply-To: <86h9pn1rh8.fsf@HIDDEN>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 20953
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

On 07/02/2015 12:46 AM, Nicolas Richard wrote:

> I run
> emacs -Q -l ~/tmp/testcompletion.el
>
> then hit the following keys: C-h f m i n i b u f TAB RET
>
> After "TAB" I get :
> minibufferp [Matched]
> in the minibuffer.

I'm assuming that's because of (setq completion-cycle-threshold t).

> After "RET" I get a description of `minibuffer-depth' which is totally
> unexpected to me. I expected a description of the function `minibufferp'.

Apparently, that's because minibuffer-force-complete, called from 
minibuffer-force-complete-and-exit, somehow interprets it as a repeated 
invocation.

Maybe it should examine last-command and do something with it, instead 
of performing the completion-in-region voodoo it's doing now. Or 
minibuffer-force-complete-and-exit should call a non-cycling version.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20953; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Jul 2015 21:46:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 01 17:46:29 2015
Received: from localhost ([127.0.0.1]:36504 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZAPps-0001Lc-UX
	for submit <at> debbugs.gnu.org; Wed, 01 Jul 2015 17:46:29 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39357)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <youngfrog@HIDDEN>) id 1ZAPpq-0001LN-Eb
 for submit <at> debbugs.gnu.org; Wed, 01 Jul 2015 17:46:26 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <youngfrog@HIDDEN>) id 1ZAPpk-00023n-3q
 for submit <at> debbugs.gnu.org; Wed, 01 Jul 2015 17:46:21 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:52245)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <youngfrog@HIDDEN>) id 1ZAPpk-00023c-1X
 for submit <at> debbugs.gnu.org; Wed, 01 Jul 2015 17:46:20 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52854)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <youngfrog@HIDDEN>) id 1ZAPpi-0007Hi-VG
 for bug-gnu-emacs@HIDDEN; Wed, 01 Jul 2015 17:46:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <youngfrog@HIDDEN>) id 1ZAPpc-00021P-SZ
 for bug-gnu-emacs@HIDDEN; Wed, 01 Jul 2015 17:46:18 -0400
Received: from mailrelay117.isp.belgacom.be ([195.238.20.144]:21947)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <youngfrog@HIDDEN>) id 1ZAPpc-00021C-M4
 for bug-gnu-emacs@HIDDEN; Wed, 01 Jul 2015 17:46:12 -0400
X-Belgacom-Dynamic: yes
X-Cloudmark-SP-Filtered: true
X-Cloudmark-SP-Result: v=1.1 cv=i+EX5EtM4g4P/CrLY+sx2nOWHsqv9AlVwqc0uudqMuE=
 c=1 sm=2
 a=QCT-KXIL8PvRfCBbLBoA:9 a=MINDWI6K-vYA:10 a=vKurYwmuIckA:10
 a=j3C3k39RrBUowzmGZ_kA:9 a=aEYgY0sQy6sA:10 a=-Yebtj9pFusA:10
 a=aR16PxjQAAAA:8 a=lvrcGqW01JDWFX6nJt8A:9 a=CiSHi91Bn78A:10
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A2AbCgC2XpRV/4YDyFBbgxEfNV+rAAsFAYEEkxGHVzwRAQEBAQEBAYEKhH87JDQBBCWIagGmM6cUhhyKUYQVAQSTXDSCJ6F+JoI9gT88MYJIAQEB
Received: from 134.3-200-80.adsl-dyn.isp.belgacom.be (HELO Aurora)
 ([80.200.3.134])
 by relay.skynet.be with ESMTP; 01 Jul 2015 23:46:11 +0200
From: Nicolas Richard <youngfrog@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 25.0.50;
 with icomplete, completion says "Matched" and then returns something
 else.
Date: Wed, 01 Jul 2015 23:46:11 +0200
Message-ID: <86h9pn1rh8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

--=-=-=
Content-Type: text/plain

Given the following file

--=-=-=
Content-Type: application/emacs-lisp
Content-Disposition: attachment; filename=testcompletion.el
Content-Transfer-Encoding: quoted-printable

(require 'icomplete)
(setq completion-cycle-threshold t)
(define-key icomplete-minibuffer-map (kbd "RET") #'minibuffer-force-complet=
e-and-exit)
(icomplete-mode 1)

--=-=-=
Content-Type: text/plain


I run
emacs -Q -l ~/tmp/testcompletion.el

then hit the following keys: C-h f m i n i b u f TAB RET 

After "TAB" I get :
minibufferp [Matched]
in the minibuffer.

After "RET" I get a description of `minibuffer-depth' which is totally
unexpected to me. I expected a description of the function `minibufferp'.

In GNU Emacs 25.0.50.2 (i686-pc-linux-gnu, X toolkit, Xaw scroll bars)
 of 2015-06-11 on Aurora
Windowing system distributor `The X.Org Foundation', version 11.0.11501000
System Description:	Ubuntu 14.04.2 LTS

Configured using:
 `configure --with-x-toolkit=lucid --enable-checkings 'CFLAGS= -O0 -g3''

Configured features:
XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE
LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS LUCID

Important settings:
  value of $LANG: fr_BE.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

--=-=-=--




Acknowledgement sent to Nicolas Richard <youngfrog@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#20953; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 2 Jul 2015 01:45:02 UTC

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