From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#12638: 24.2.50; FR: Some suggestions for icomplete-mode Date: Tue, 11 Dec 2012 22:18:19 -0500 Message-ID: References: <87391ieck9.fsf@gmail.com> <87624nsjes.fsf@gmail.com> <87d2yq9dvi.fsf@gmail.com> <877goxn8bw.fsf@gmail.com> <87624hu77x.fsf@gmail.com> <874nk1iuyi.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1355282388 18710 80.91.229.3 (12 Dec 2012 03:19:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2012 03:19:48 +0000 (UTC) Cc: 12638@debbugs.gnu.org To: Jambunathan K Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 12 04:20:01 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1TicrS-0005yy-Eb for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Dec 2012 04:19:54 +0100 Original-Received: from localhost ([::1]:60680 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TicrF-0007xZ-Mz for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Dec 2012 22:19:41 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ticqx-0007ER-4o for bug-gnu-emacs@gnu.org; Tue, 11 Dec 2012 22:19:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ticqs-0003EH-LB for bug-gnu-emacs@gnu.org; Tue, 11 Dec 2012 22:19:23 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ticqs-0003ED-IE for bug-gnu-emacs@gnu.org; Tue, 11 Dec 2012 22:19:18 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Ticra-0002To-IC for bug-gnu-emacs@gnu.org; Tue, 11 Dec 2012 22:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Dec 2012 03:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12638 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12638-submit@debbugs.gnu.org id=B12638.13552823469459 (code B ref 12638); Wed, 12 Dec 2012 03:20:02 +0000 Original-Received: (at 12638) by debbugs.gnu.org; 12 Dec 2012 03:19:06 +0000 Original-Received: from localhost ([127.0.0.1]:37910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ticqg-0002SV-Aq for submit@debbugs.gnu.org; Tue, 11 Dec 2012 22:19:06 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:49187) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ticqe-0002SO-S3 for 12638@debbugs.gnu.org; Tue, 11 Dec 2012 22:19:05 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09soXOY/2dsb2JhbABEsEiDSYEIghUBAQQBVhYKAwULCzQSFBgNJIgcBboJkEQDiEKacYFYgwc X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="209662527" Original-Received: from 108-161-115-152.dsl.teksavvy.com (HELO pastel.home) ([108.161.115.152]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 11 Dec 2012 22:18:20 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id A9D385941F; Tue, 11 Dec 2012 22:18:19 -0500 (EST) In-Reply-To: <874nk1iuyi.fsf@gmail.com> (Jambunathan K.'s message of "Tue, 04 Dec 2012 23:02:53 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:68362 Archived-At: >>> The problem is in the displayed string. Why not push "" to prospects >>> when most-is-exact. I think completions are cycling but the displayed >>> string is not. >> The problem is that we want the display to indicate that the current >> field is an exact match. Currently this is visible thanks to the "{| ...}". >> So if we want to let the empty string move elsewhere (and hence >> potentially off-screen), we need another way to indicate that we have an >> exact match. > RET pushes the minibuffer contents. > C-j pushes the head of the list. Right, so I was suggesting to make C-j skip to the second element if the first is equal to the minibuffer contents, so that by choosing between RET and C-j the user can choose which one she wants. > I think appending, "[Complete, but not unique]????" should serve as a > cue that one can simply RET. You mean we'd display "foo[Complete but not unique]{bar | | baz}"? > I never could come up with a sensible explanation for magic number 5 > down below. Good question ... oh yes, it's because of the "..." on the line below: we refrain from truncating the common prefix if the truncation would gain us less than 2 columns. Basically, it's a tradeoff between losing information via truncation and losing screen real-estate if we don't truncate. Stefan