From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#6076: 23.1.96; [PATCH] rcirc-complete for nicks and commands Date: Mon, 10 May 2010 22:14:28 +0300 Organization: JURTA Message-ID: <87ljbu36ed.fsf@mail.jurta.org> References: <87vdb3y7bv.fsf@mail.jurta.org> <87zl0fctpt.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273519598 15652 80.91.229.12 (10 May 2010 19:26:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 10 May 2010 19:26:38 +0000 (UTC) Cc: 6076@debbugs.gnu.org, Leo To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 10 21:26:36 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OBYcb-0004uM-FS for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 May 2010 21:26:33 +0200 Original-Received: from localhost ([127.0.0.1]:32984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBYca-0002LV-PQ for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 May 2010 15:26:32 -0400 Original-Received: from [140.186.70.92] (port=55099 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBYcU-0002Kn-PX for bug-gnu-emacs@gnu.org; Mon, 10 May 2010 15:26:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBYcS-0001EY-QT for bug-gnu-emacs@gnu.org; Mon, 10 May 2010 15:26:26 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51080) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBYcS-0001EU-Na for bug-gnu-emacs@gnu.org; Mon, 10 May 2010 15:26:24 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OBYUM-0001eo-H1; Mon, 10 May 2010 15:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 May 2010 19:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6076 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 6076-submit@debbugs.gnu.org id=B6076.12735190496359 (code B ref 6076); Mon, 10 May 2010 19:18:02 +0000 Original-Received: (at 6076) by debbugs.gnu.org; 10 May 2010 19:17:29 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBYTo-0001eW-HQ for submit@debbugs.gnu.org; Mon, 10 May 2010 15:17:28 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3] helo=mx1.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBYTl-0001eR-OT for 6076@debbugs.gnu.org; Mon, 10 May 2010 15:17:26 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.69.38.cable.starman.ee [82.131.69.38]) by mx1.starman.ee (Postfix) with ESMTP id CA2973F413E; Mon, 10 May 2010 22:17:17 +0300 (EEST) In-Reply-To: (Stefan Monnier's message of "Tue, 04 May 2010 17:18:55 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 10 May 2010 15:18:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36842 Archived-At: >> Isearch-like mode would be a good thing. Typing a key not bound >> in its mode map will leave this mode and hide the *Completions* buffer. > > Right. But choosing which keys/events make it leave because we want it > to be very lightweight (i.e. we want to leave as soon as possible), but > we'd rather not leave when the user is still editing the completion. > > So self-insert-command should not leave, but then SPC (and several > others likewise) probably should (even tho it's also > self-insert-command) and maybe DEL shouldn't either, but what about > C-f/C-b? I was thinking maybe we should decide it based on the position > of point (whether it's still inside the completion text or not). This is something that in other programs is called "in-place editing". Usually a field for editing is highlighted with a different background. In terms of Emacs this could be called "in-place completion". For its implementation the most suitable feature is the `field' property. When completion is activated, a field could be created in the buffer and removed when completion is finished. I suggest using the same key to finish completion as in the minibuffer, i.e. RET. -- Juri Linkov http://www.jurta.org/emacs/