From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: Bug with icomplete-mode Date: Sun, 17 May 2015 07:36:09 -0500 Message-ID: <85h9rbidom.fsf@stephe-leake.org> References: <20150516134912.B8B3.32A02D17@hh.se> <55574E21.7070301@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1431866212 22136 80.91.229.3 (17 May 2015 12:36:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 May 2015 12:36:52 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 17 14:36:41 2015 Return-path: Envelope-to: ged-emacs-devel@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 1Ytxo9-0000p8-Ch for ged-emacs-devel@m.gmane.org; Sun, 17 May 2015 14:36:41 +0200 Original-Received: from localhost ([::1]:37374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ytxo8-0003Jn-H7 for ged-emacs-devel@m.gmane.org; Sun, 17 May 2015 08:36:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ytxo4-0003J9-H0 for emacs-devel@gnu.org; Sun, 17 May 2015 08:36:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ytxo1-00012L-BT for emacs-devel@gnu.org; Sun, 17 May 2015 08:36:36 -0400 Original-Received: from gproxy6-pub.mail.unifiedlayer.com ([67.222.39.168]:44000) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Ytxo1-0000xA-2d for emacs-devel@gnu.org; Sun, 17 May 2015 08:36:33 -0400 Original-Received: (qmail 7580 invoked by uid 0); 17 May 2015 12:36:28 -0000 Original-Received: from unknown (HELO cmgw4) (10.0.90.85) by gproxy6.mail.unifiedlayer.com with SMTP; 17 May 2015 12:36:28 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw4 with id V6V71q0062UdiVW016VA4L; Sun, 17 May 2015 12:29:17 -0600 X-Authority-Analysis: v=2.1 cv=D8zUdJhj c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=2wGvvwaKUHMA:10 a=9i_RQKNPAAAA:8 a=hEr_IkYJT6EA:10 a=x_XPkuGwIRMA:10 a=h1PgugrvaO0A:10 a=vaJtXVxTAAAA:8 a=ATaA7d8-692qeDSU9dkA:9 Original-Received: from [76.218.37.33] (port=49491 helo=TAKVER) by host114.hostmonster.com with esmtpa (Exim 4.84) (envelope-from ) id 1Ytxnl-0002ZP-QR for emacs-devel@gnu.org; Sun, 17 May 2015 06:36:18 -0600 In-Reply-To: <55574E21.7070301@yandex.ru> (Dmitry Gutov's message of "Sat, 16 May 2015 17:03:13 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 76.218.37.33 authed with stephen_leake@stephe-leake.org} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 67.222.39.168 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:186550 Archived-At: Dmitry Gutov writes: > On 05/16/2015 02:49 PM, Slawomir Nowaczyk wrote: > >> Emacs switches to "*Messages*", not the "aaa" buffer I have selected. > > Yep, looks like a problem. But next time please do M-x report-emacs-bug. > >> As far as I can tell, it's because of this part in the minibuffer-force-complete-and-exit >> (if (and (eq (minibuffer-prompt-end) (point-max)) >> minibuffer-default) >> ;; Use the provided default if there's one (bug#17545). > > And this part is due to the bug that is referenced in the comment. > > Looking at it, it seems that a better way to resolve it would be to > always make the default value the first item, even when it's not in > the collection passed to completing-read. +1 -- -- Stephe