From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#12638: 24.2.50; FR: Some suggestions for icomplete-mode Date: Wed, 12 Dec 2012 08:15:10 -0800 Message-ID: <261336ABFC7C48809CEC5009034ACA27@us.oracle.com> 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><2579AEF694394F0CA29003AE58A52270@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1355328995 26044 80.91.229.3 (12 Dec 2012 16:16:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2012 16:16:35 +0000 (UTC) To: "'Kevin Rodgers'" , <12638@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 12 17:16:49 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 1TiozF-0002oE-Ip for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Dec 2012 17:16:45 +0100 Original-Received: from localhost ([::1]:56641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tioz2-00036t-Pk for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Dec 2012 11:16:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tioyr-00031c-9N for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2012 11:16:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tioyl-0001Pw-EQ for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2012 11:16:21 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tioyl-0001Pq-BL for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2012 11:16:15 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TiozW-0005tE-AL for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2012 11:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Dec 2012 16:17: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.135532897422573 (code B ref 12638); Wed, 12 Dec 2012 16:17:02 +0000 Original-Received: (at 12638) by debbugs.gnu.org; 12 Dec 2012 16:16:14 +0000 Original-Received: from localhost ([127.0.0.1]:39213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tioyi-0005s0-9J for submit@debbugs.gnu.org; Wed, 12 Dec 2012 11:16:14 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:35321) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tioyf-0005rr-Kw for 12638@debbugs.gnu.org; Wed, 12 Dec 2012 11:16:10 -0500 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qBCGFK11023943 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 12 Dec 2012 16:15:21 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qBCGFJlj000661 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 12 Dec 2012 16:15:20 GMT Original-Received: from abhmt102.oracle.com (abhmt102.oracle.com [141.146.116.54]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qBCGFJuJ032574; Wed, 12 Dec 2012 10:15:19 -0600 Original-Received: from dradamslap1 (/10.159.143.154) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 12 Dec 2012 08:15:18 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac3YMuJISH5RKDpDSOWY5/eySjvQ6gAUF9wQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] 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:68395 Archived-At: > > (and most-is-exact > > (substring icomplete-separator > > (string-match "[^ ]" icomplete-separator))) > > > > The default value of the option is (string ?\u2605 ?\ ), > > i.e., a star. See attached. (The number 5 shown is the total > > number of completions. In this particular case all are shown.) > > Just curious: Why isn't the exact match (represented by the > star) separated from the other matches with a vertical bar? If you are asking me about my code and not the vanilla version, the answer is: (a) I didn't think it would be clearer (but yes, someone could interpret it as belonging only to the first alternative), (b) a user can easily include the bar in the option value (string), and (c) the bar is not hard-coded, but is from the other separator used between the other alternatives. If you want an initial bar, you can add it easily. If you want no bars at all, you can easily have that. If you want `spaghetti' for the first separator and `lasagne' for the others, you can easily have that. But I'm open to other suggestions. I'm not in favor (for my code) of hard-coding a connection between the two separators.