From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.bugs Subject: bug#14172: [gmane.emacs.devel] Re: read-from-minibuffer vs completing-read -- Cueing Users: Date: Wed, 10 Apr 2013 10:08:57 +0530 Message-ID: <87ppy39ezi.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1365568763 21418 80.91.229.3 (10 Apr 2013 04:39:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Apr 2013 04:39:23 +0000 (UTC) To: 14172@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 10 06:39:27 2013 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 1UPmog-0007UR-UW for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Apr 2013 06:39:27 +0200 Original-Received: from localhost ([::1]:38240 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPmog-0008WH-JI for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Apr 2013 00:39:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPmod-0008W0-4t for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2013 00:39:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPmob-00043d-RC for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2013 00:39:23 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38745) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPmob-00043Z-Mo for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2013 00:39:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UPmsA-0003ER-J3 for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2013 00:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jambunathan K Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Apr 2013 04:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14172 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.136556897812411 (code B ref -1); Wed, 10 Apr 2013 04:43:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Apr 2013 04:42:58 +0000 Original-Received: from localhost ([127.0.0.1]:42854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UPms6-0003E8-E4 for submit@debbugs.gnu.org; Wed, 10 Apr 2013 00:42:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42165) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UPms3-0003Dy-HT for submit@debbugs.gnu.org; Wed, 10 Apr 2013 00:42:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPmoS-00041P-Su for submit@debbugs.gnu.org; Wed, 10 Apr 2013 00:39:13 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:47813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPmoS-00041K-Pv for submit@debbugs.gnu.org; Wed, 10 Apr 2013 00:39:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPmoR-0008VT-MH for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2013 00:39:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPmoQ-00040y-Bb for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2013 00:39:11 -0400 Original-Received: from mail-da0-x236.google.com ([2607:f8b0:400e:c00::236]:61742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPmoQ-00040V-4u for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2013 00:39:10 -0400 Original-Received: by mail-da0-f54.google.com with SMTP id p1so35189dad.27 for ; Tue, 09 Apr 2013 21:39:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=0LnyBa7ipvkVqtwwLJtywisbW72ia2e+pB7MhiWYEG0=; b=lwod8XeQirvXjJZEHJi6KmOWnYHJXnph/qFQ1AMeW46gZKhIM/Jl61vnRrlrUb16ok yOF7f5FbJJNDkP5/Wvm/vLeluG1uUNtXOF9yHlZH9fsN0MlVhikopHtqOISIUINp+Hti IDzkzGFX75BmWgwzASeeqxZX2Y1LJs5YThlCTDYpFEVugrpF4vo8r7yyB30pXxggW2hi jihN7PR6Ej3fiRqMQLVCyzCvpzXaWBfbjpoIjvLuj+LZ0wZk0dr7QreXJi6qirHatJnS mGkRaSMrmrx9mvQktrqRBfFDxYXD4wz01kWY5YjirCik86Bt4UB244fP/Pti8Rje7QOr jHtw== X-Received: by 10.68.131.10 with SMTP id oi10mr595484pbb.147.1365568748883; Tue, 09 Apr 2013 21:39:08 -0700 (PDT) Original-Received: from debian-6.05 ([115.242.208.26]) by mx.google.com with ESMTPS id kd7sm4815191pbb.34.2013.04.09.21.39.06 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Tue, 09 Apr 2013 21:39:08 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:73295 Archived-At: Copy of http://thread.gmane.org/gmane.emacs.devel/157498 Jambunathan K writes: > "T. V. Raman" writes: > >> As a long-time emacs user, I always see if there are completions >> available in the minibuffer -- so the worst that happens is that >> I get disappointed if I am answering a read-from-minibuffer >> prompt -- thinking of this, I realized that there is a good >> chance that new-comers to Emacs do a lot worse in the other >> direction, i.e. never realize that completions are available. >> Should we be cueing this somehow in the prompt -- (are we >> already cueing the user visually?) >> vs a completing-read prompt > > I have been using icomplete-mode for a while. Bzr trunk has an enhanced > version. > > My only complain is that the icomplete-mode starts showing completions > only after you enter the first character. If the first character is > wrong, then you get a more useless "No match" or some such thing. > > There is a buglet in the queue, only that it is not filed. I am essentially saying this: Enhance icomplete-mode so that it shows completion even without any user input. The visual cue is right there hiding behind the curtains. Try installing this quick change, do M-x and wait for the visual cue to reveal itself to you. === modified file 'lisp/icomplete.el' --- lisp/icomplete.el 2013-02-15 19:19:29 +0000 +++ lisp/icomplete.el 2013-03-03 20:18:15 +0000 @@ -267,11 +267,11 @@ and `minibuffer-setup-hook'." (save-excursion (goto-char (point-max)) ; Insert the match-status information: - (if (and (> (point-max) (minibuffer-prompt-end)) - buffer-undo-list ; Wait for some user input. + (if (and ;; (> (point-max) (minibuffer-prompt-end)) + ;; buffer-undo-list ; Wait for some user input. (or ;; Don't bother with delay after certain number of chars: - (> (- (point) (field-beginning)) icomplete-max-delay-chars) + ;; (> (- (point) (field-beginning)) icomplete-max-delay-chars) ;; Don't delay if the completions are known. completion-all-sorted-completions ;; Don't delay if alternatives number is small enough: --