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 00:08:23 -0500 Message-ID: References: <87k4o97tnp.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001485e76ff6995cc5048cd030c9 X-Trace: dough.gmane.org 1280768726 14376 80.91.229.12 (2 Aug 2010 17:05:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Aug 2010 17:05:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Wojciech Meyer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 02 19:05:25 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 1OfyS4-00072v-5C for ged-emacs-devel@m.gmane.org; Mon, 02 Aug 2010 19:05:24 +0200 Original-Received: from localhost ([127.0.0.1]:47944 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfyDf-0002ys-Ct for ged-emacs-devel@m.gmane.org; Mon, 02 Aug 2010 12:50:31 -0400 Original-Received: from [140.186.70.92] (port=40340 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfnMv-0006y1-QO for emacs-devel@gnu.org; Mon, 02 Aug 2010 01:15:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OfnGC-0006VF-Kc for emacs-devel@gnu.org; Mon, 02 Aug 2010 01:08:25 -0400 Original-Received: from mail-gw0-f41.google.com ([74.125.83.41]:55556) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfnGC-0006V5-ES for emacs-devel@gnu.org; Mon, 02 Aug 2010 01:08:24 -0400 Original-Received: by gwj16 with SMTP id 16so1572951gwj.0 for ; Sun, 01 Aug 2010 22:08:24 -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=bt0LXjBEMk6bNEt0huz0w8SCh9IaKrAPR+CQLpphVco=; b=VlfGlBpadLM094wKa+Hy8B5RTnxXp9uDhj4J1knxka826Q+n020OyDCIJkSSZLL3cg zgsRuIMZnpGoKFA86tYUBGOrRf/RvcEZ0tV6zXRIJsg1I7WvLhfAJi85Hj9pQ1h101nA iIIQ+Ysuz7+T0N2/vW7zznyInTQro4AQ/qi4Y= 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=hUTT/Jdo+2oLwjXcC/nyMxx/tENDV0AOMDixg+F6guzD3wflvr2U24d+HCUY++fSe0 hk2UP7t8K2TVf5+kDvi8+fJDPNze3ezcKqPH0qNs8D5sO/Ezp1ueCaHib1EMZcmbvtZ4 pGzZwyT8DKcC2IXUpZ/1oeV61BbUX0jS74D1Q= Original-Received: by 10.151.133.3 with SMTP id k3mr6016756ybn.176.1280725703285; Sun, 01 Aug 2010 22:08:23 -0700 (PDT) Original-Received: by 10.151.48.6 with HTTP; Sun, 1 Aug 2010 22:08:23 -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:07 -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:128137 Archived-At: --001485e76ff6995cc5048cd030c9 Content-Type: text/plain; charset=ISO-8859-1 Well, the intent with messages being strings was that the user could define their own warning messages. As it stands, any command name quoted `like-this' gets extracted, and its keybindings, if they exist, are displayed along with the suggestion. I agree on the silliness of mapping commands to characters. I'm working on converting it over to use full command names. Logging matched patterns, interactive pattern definition and a separate config file are all good suggestions. I'll put them on the TODO list. recs-mode can be made *really* annoying, if you wish. It can ding and steal the window selection out from under you. And `recs-hook' is run for every pattern match, so you can define arbitrary code to run on match. Thanks for your input, --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 > --001485e76ff6995cc5048cd030c9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Well, the intent with messages being strings was that the user could
define their own warning messages. As it stands, any command name<= /div>
quoted `like-this' gets extracted, and its keybindings, if th= ey exist,
are displayed along with the suggestion.

I ag= ree on the silliness of mapping commands to characters. I'm
w= orking on converting it over to use full command names.

Logging matched patterns, interactive pattern definition and a
separate config file are all good suggestions. I'll put them on the<= /div>
TODO list.

recs-mode can be made *really= * annoying, if you wish. It can ding and
steal the window selection out from under you. And `recs-hook' is = run
for every pattern match, so you can define arbitrary code to = run on
match.

Thanks for your input,
--tlh


On= 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

--001485e76ff6995cc5048cd030c9--