From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: [Proposed Minor-mode] Speed of thought Lisp Date: Mon, 26 Jan 2015 17:37:23 -0200 Message-ID: References: Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1422301438 32716 80.91.229.3 (26 Jan 2015 19:43:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Jan 2015 19:43:58 +0000 (UTC) Cc: emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 26 20:43:56 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YFpZi-00062f-6Y for ged-emacs-devel@m.gmane.org; Mon, 26 Jan 2015 20:43:54 +0100 Original-Received: from localhost ([::1]:43783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFpZh-0006Wc-NF for ged-emacs-devel@m.gmane.org; Mon, 26 Jan 2015 14:43:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFpTR-0004xK-7e for emacs-devel@gnu.org; Mon, 26 Jan 2015 14:37:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFpTQ-0004oR-7E for emacs-devel@gnu.org; Mon, 26 Jan 2015 14:37:25 -0500 Original-Received: from mail-ob0-x234.google.com ([2607:f8b0:4003:c01::234]:57462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFpTQ-0004oJ-2F for emacs-devel@gnu.org; Mon, 26 Jan 2015 14:37:24 -0500 Original-Received: by mail-ob0-f180.google.com with SMTP id uz6so9565607obc.11 for ; Mon, 26 Jan 2015 11:37:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=TBqQXRosbLrkECI5LaYEYYCX7rMw4SoIoFpAP1rEC50=; b=rR8JTRgh/NcZ1vE76Wf7yfQk3Ctcqi0fiNaMl34koP1FWCSUOBZB/8j714hHONj1fw UzQ0wbTpVIzP41sTI1vdfqYTknVvJSYGRtD1i9xB37RHECDA+7XQi3P8Z6xAh6ilJ3Vd pMk2xeqTImI8liMS0MB2j5zJDStX20nWbtp3XdwrbCRKvEzXWzBWxc1HqPY89dK6ggpV 5IhGI+3Vz5R8JeGFZCAx/9AFuD5tIT9a0594TpRVgMvn4dhr+aE4+ds2XdB7gj6uNzR5 //t4z8JVTbgSbMW6WLo+NAxVe+pvgiUJLX6uiNisiCzOEom8BeDtbzF6nRV2Gq32tEmg iQLQ== X-Received: by 10.202.97.130 with SMTP id v124mr4364698oib.34.1422301043617; Mon, 26 Jan 2015 11:37:23 -0800 (PST) Original-Received: by 10.76.125.1 with HTTP; Mon, 26 Jan 2015 11:37:23 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: sEQq1jOHM3BoW_avcFU3iniAScE X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181802 Archived-At: 2015-01-25 12:49 GMT-02:00 Stefan Monnier >> - C-c f :: Find function under point. If it is not defined, create a >> definition for it below the current function and leave point inside. >> - C-c v :: Same, but for variable. > > For variables (and macros and defsubst), it's important that the > declaration be before rather than "below". For plain functions I also > like to define them before I use them, tho it's not indispensable. Good point, I'll change that. >> Cheers to all, and please let me hear your thoughts! > > Sounds neat. Even neater would be to make the list dynamic. > As suggested on g.e.h, it could do a "completion with `initials' style", > selecting the first completion, with sorting based on frequency hints. I'm happy to change and extend the abbrevs to something based on usage frequency of current Emacs core, but implementing a completion system would just feel like reinventing abbrevs. Also, these expansions work best as a complement to tab-completion, not as yet-another-tab-completion. While tab-completion handles user-defined symbols which are project-dependent and can change at any time, these abbrevs offer a fixed set of symbols that are always useful and easy to remember. Unless you meant to sort based on the user's current usage frequency (something dynamic), but that would be a whole other beast to tackle and I wouldn't even be sure where to start :-).