From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thunk Out Newsgroups: gmane.emacs.devel Subject: Re: Emacs TODO List: Have a command suggestion help system that Date: Mon, 2 Aug 2010 04:48:44 -0500 Message-ID: References: <87k4o97tnp.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0cd594943bb08c048cd41b56 X-Trace: dough.gmane.org 1280768732 14432 80.91.229.12 (2 Aug 2010 17:05:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Aug 2010 17:05:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Wojciech Meyer , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 02 19:05:28 2010 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.69) (envelope-from ) id 1OfyS2-000745-PK for ged-emacs-devel@m.gmane.org; Mon, 02 Aug 2010 19:05:23 +0200 Original-Received: from localhost ([127.0.0.1]:50143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfyGB-0005BE-SO for ged-emacs-devel@m.gmane.org; Mon, 02 Aug 2010 12:53:08 -0400 Original-Received: from [140.186.70.92] (port=53614 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfrdY-0006wl-FO for emacs-devel@gnu.org; Mon, 02 Aug 2010 05:48:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OfrdW-0004tP-2I for emacs-devel@gnu.org; Mon, 02 Aug 2010 05:48:48 -0400 Original-Received: from mail-gw0-f41.google.com ([74.125.83.41]:37060) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfrdV-0004tG-V8 for emacs-devel@gnu.org; Mon, 02 Aug 2010 05:48:46 -0400 Original-Received: by gwj16 with SMTP id 16so1649615gwj.0 for ; Mon, 02 Aug 2010 02:48:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=7b38IC5R/Ayc+0TuJZqbOGtDtOe6nCDhL77HVM/3o00=; b=cfjn9C/D32WGstx+jeyrVYzQZ+wrcqnFRh/BGp8yQtz41xeoBDUyU5xII3WfPIxJSp B9c8Zy/n9oCX7bMi8gsVmfPD5wfa9Jcqk7djZ7PRMnvL1AN1cQrayFSmgdDB3+UlBeSc sP7eMOzKdmuPWStfIePZt0AzfOmdZ61hqjj+U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=tgFjrJWQ+229uE/yjA+cl6OyfTME094YNaozuKMW29IjYGGH0KgvXjqueoQqMTPhmd wxIWPTDJktS3C8Hv1z4+jti4HeDv1uanSJghRN4HeFmeQjlGjoPfRXA7i+B7Im9dYuY0 FpD+ixhGOwsD+VebINxtLbu7lruolyKtFOd6Y= Original-Received: by 10.150.135.20 with SMTP id i20mr4286699ybd.62.1280742524694; Mon, 02 Aug 2010 02:48:44 -0700 (PDT) Original-Received: by 10.151.48.6 with HTTP; Mon, 2 Aug 2010 02:48:44 -0700 (PDT) In-Reply-To: <87k4o97tnp.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Mon, 02 Aug 2010 12:50:09 -0400 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:128138 Archived-At: --000e0cd594943bb08c048cd41b56 Content-Type: text/plain; charset=ISO-8859-1 I've updated recs.el to match on full command names rather than mapped chars, and to return command name symbols per Wojciech's suggestion. You can view the changes here: http://github.com/tlh/re-suggest.el Thanks, --tlh On Sun, Aug 1, 2010 at 7:19 PM, Wojciech Meyer < wojciech.meyer@googlemail.com> wrote: > Stefan Monnier writes: > > >> I'm working on a command suggestion minor mode. I just realized that > this is > >> also an item on the Emacs TODO list (C-h C-t), and that I should contact > you > >> about it on off chance that you want it, or have some suggestions about > its > >> implementation. The code is located at > http://github.com/tlh/re-suggest.el > > > > I'm not sure why you bother turning the commands into single-letter > > chars, rather than just use their full name, but it looks interesting. > > I think the most interesting part is the recs-cmd-regexps. > > > > What do people think about this? > > We could definitely add it to elpa.gnu.org, but of course, this would > > require you signing some copyright paperwork for it. > > BTW, please try C-u M-x checkdoc-current-buffer a few times to fix some > > minor coding convention details. > > > > This reminds me a peephole optimisation in compilers. Indeed I see > a potential. Looks good. However the messages should be really symbol > names. Also, a good thing for further would be remember missed > combinations, and have access to a summary of missed commands. More > annoying this mode would be - better chances for somebody to get rid of > bad habits. Making rules programaticaly would be an advantage too, > keeping those in some configuration file. > And I agree, mapping to letters is not needed, and less readable. > > > > > Stefan > > Cheers; > Wojciech > --000e0cd594943bb08c048cd41b56 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I've updated recs.el to match on full command names rather than mapped = chars,
and to return command name symbols per Wojciech's suggestion= .
You can view the changes here:=A0http://github.com/tlh/re-suggest.el

Thanks,
--tlh

O= n Sun, Aug 1, 2010 at 7:19 PM, Wojciech Meyer <wojciech.meyer@googlemail.com= > wrote:
Stefan Mo= nnier <monnier@iro.umontreal= .ca> writes:

>> I'm working on a command suggestion minor mode. I just realize= d that this is
>> also an item on the Emacs TODO list (C-h C-t), and that I should c= ontact you
>> about it on off chance that you want it, or have some suggestions = about its
>> implementation. The code is located at http://github.com/tlh/re-suggest.el<= /a>
>
> I'm not sure why you bother turning the commands into single-lette= r
> chars, rather than just use their full name, but it looks interesting.=
> I think the most interesting part is the recs-cmd-regexps.
>
> What do people think about this?
> We could definitely add it to
elpa.gnu.org, but of course, this would
> require you signing some copyright paperwork for it.
> BTW, please try C-u M-x checkdoc-current-buffer a few times to fix som= e
> minor coding convention details.
>

This reminds me a peephole optimisation in compilers. Indeed I = see
a potential. Looks good. However the messages should be really symbol
names. Also, a good thing for further would be remember missed
combinations, and have access to a summary of missed commands. More
annoying this mode would be - better chances for somebody to get rid of
bad habits. =A0Making rules programaticaly would be an advantage too,
keeping those in some configuration file.
And I agree, mapping to letters is not needed, and less readable.

>
> =A0 =A0 =A0 =A0 Stefan

Cheers;
Wojciech

--000e0cd594943bb08c048cd41b56--