From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Bug with icomplete-mode Date: Sat, 16 May 2015 17:03:13 +0300 Message-ID: <55574E21.7070301@yandex.ru> References: <20150516134912.B8B3.32A02D17@hh.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1431785021 6482 80.91.229.3 (16 May 2015 14:03:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 May 2015 14:03:41 +0000 (UTC) To: Slawomir Nowaczyk , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 16 16:03:40 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 1Ytcgm-0000Hg-C2 for ged-emacs-devel@m.gmane.org; Sat, 16 May 2015 16:03:40 +0200 Original-Received: from localhost ([::1]:34749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ytcgl-0008FP-KA for ged-emacs-devel@m.gmane.org; Sat, 16 May 2015 10:03:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ytcga-0008FE-8M for emacs-devel@gnu.org; Sat, 16 May 2015 10:03:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YtcgX-0006NE-0G for emacs-devel@gnu.org; Sat, 16 May 2015 10:03:28 -0400 Original-Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:38653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtcgW-0006Lp-Pm for emacs-devel@gnu.org; Sat, 16 May 2015 10:03:24 -0400 Original-Received: by wicnf17 with SMTP id nf17so22426097wic.1 for ; Sat, 16 May 2015 07:03:15 -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=pAx1q63QoQua03vu3bKb9I3x6OzPkU2CxcA44QsY5Vo=; b=C2ViUgR23vfeQUbPQi/DL9H9di6we9R6p8w7M17VmB++Pf7v0ywsZDM+pbsjKhHDv9 9J+T2GQW9J2AvDGb+9gBvYUZZbJsCLin7nCv6pfMJmzY652Yw4S5ArIlnD2rvG/n+q42 CR7AaAmgngWlPvh6L8n0EkQg2YW5OqWfM0zX8CqhfrAIwn/nu3lXfkGha7uaBhS+eIZd UsqTR3KR+5y+8Y656HEc2bTcuc6qE7XPvLHg7dIosZ0HW1jo34vtb4uJt33ZJtlj5fsv jry60s/ptyOgxgqO6CrHnFvGajxpcqxjNQRpwMcQixRV5IxgCaoqyY+9nbtjS8W32Rt0 PbLQ== X-Received: by 10.194.220.100 with SMTP id pv4mr28347141wjc.71.1431784995048; Sat, 16 May 2015 07:03:15 -0700 (PDT) Original-Received: from [192.168.0.185] (static-nbl2-118.cytanet.com.cy. [212.31.107.118]) by mx.google.com with ESMTPSA id m2sm3057220wiy.7.2015.05.16.07.03.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 May 2015 07:03:14 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: <20150516134912.B8B3.32A02D17@hh.se> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22b 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:186540 Archived-At: 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.