From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Completions in Semantic Date: Tue, 27 Oct 2009 23:23:44 -0400 Message-ID: References: <1255969613.6961.1056.camel@projectile.siege-engine.com> <1255980824.6961.1075.camel@projectile.siege-engine.com> <1255990628.6961.1084.camel@projectile.siege-engine.com> <1256070021.6961.1107.camel@projectile.siege-engine.com> <20091021105840.GD2964@ginnungagap.pc.ac.upc.edu> <20091027212118.GA25239@ginnungagap.pc.ac.upc.edu> <1256696707.5333.214.camel@projectile.siege-engine.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1256700251 5314 80.91.229.12 (28 Oct 2009 03:24:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Oct 2009 03:24:11 +0000 (UTC) Cc: Lluis , emacs-devel@gnu.org To: eric@siege-engine.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 28 04:24:04 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N2z8m-0000KN-DO for ged-emacs-devel@m.gmane.org; Wed, 28 Oct 2009 04:24:04 +0100 Original-Received: from localhost ([127.0.0.1]:48681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2z8l-00037p-TG for ged-emacs-devel@m.gmane.org; Tue, 27 Oct 2009 23:24:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2z8a-00032G-BK for emacs-devel@gnu.org; Tue, 27 Oct 2009 23:23:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2z8U-0002x8-TS for emacs-devel@gnu.org; Tue, 27 Oct 2009 23:23:51 -0400 Original-Received: from [199.232.76.173] (port=35169 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2z8U-0002wz-NQ for emacs-devel@gnu.org; Tue, 27 Oct 2009 23:23:46 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:2466 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N2z8U-0006wS-Fa for emacs-devel@gnu.org; Tue, 27 Oct 2009 23:23:46 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArwEAPNV50pLd/xb/2dsb2JhbACBT9hHhD8EiDw X-IronPort-AV: E=Sophos;i="4.44,636,1249272000"; d="scan'208";a="48279142" Original-Received: from 75-119-252-91.dsl.teksavvy.com (HELO ceviche.home) ([75.119.252.91]) by ironport2-out.pppoe.ca with ESMTP; 27 Oct 2009 23:23:45 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id C4BD870019; Tue, 27 Oct 2009 23:23:44 -0400 (EDT) In-Reply-To: <1256696707.5333.214.camel@projectile.siege-engine.com> (Eric M. Ludlam's message of "Tue, 27 Oct 2009 22:25:07 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116433 Archived-At: > Are you looking for examples of hooks that would be needed, or examples > of behaviors that need hooks to be designed? Examples of hooks that could make such things possible. > * Annotate completions buffer output (as you describe) > - I used to add () to a fcn, or other little things but clicking on a > completion name would then insert too much, so I removed the feature > from my version. completion-annotate-function should cover these needs > * Focus concept > - Once a completions list is short enough, TABs that don't complete can > instead 'focus' on a completion. Each new TAB moves the focus. That sounds like the "cycling" behavior of some completion packages (or like minibuffer-force-complete). `pcomplete' for example has such a feature, where if there are less than N completion candidates, TAB cycles among them rather than completing the common prefix. > The focus could do almost anything depending on what is being > completed. For tags, it will flash the location of the tag in a buffer. > It could show doc, or any other differentiating data that might be > available. ie - in Info nodes it could show the first paragraph. For > files it could show the first 500 bytes or some file status, for a > buffer it could flip to it temporarily. I expect most completable > things could do something special. I guess that could be done by adding a hook called when inserting a "complete" completion. Stefan