From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: weber Newsgroups: gmane.emacs.help Subject: Re: Detection of User Interaction Cycles and the Automation of these Date: 8 May 2007 07:15:06 -0700 Organization: http://groups.google.com Message-ID: <1178633706.514782.164500@e51g2000hsg.googlegroups.com> References: <1178539252.403350.326620@h2g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1178634830 22132 80.91.229.12 (8 May 2007 14:33:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 8 May 2007 14:33:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 08 16:33:49 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HlQl8-00077K-2F for geh-help-gnu-emacs@m.gmane.org; Tue, 08 May 2007 16:33:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HlQsD-0002Lt-GT for geh-help-gnu-emacs@m.gmane.org; Tue, 08 May 2007 10:41:05 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!e51g2000hsg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: 200.213.41.119 Original-X-Trace: posting.google.com 1178633706 29003 127.0.0.1 (8 May 2007 14:15:06 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 8 May 2007 14:15:06 +0000 (UTC) In-Reply-To: <1178539252.403350.326620@h2g2000hsg.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 fw.datacom-telematica.com.br:3128 (squid/2.5.STABLE6) Complaints-To: groups-abuse@google.com Injection-Info: e51g2000hsg.googlegroups.com; posting-host=200.213.41.119; posting-account=pG57fA0AAADtQ-4h1MyvjXjZpSNZC0zj Original-Xref: shelby.stanford.edu gnu.emacs.help:148216 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:43810 Archived-At: On 7 maio, 09:00, Nordl=F6w wrote: > Hey again, Hackers! > > I might have come up with a clever way to make Emacs propose potential > automations of the keyboard and/or mouse interaction, similar to > macros, in a non-obtrusive way, perhaps through minibuffer hintings, > > I suppose that Emacs somewhere has a history of key-presses. Then we > could search that history starting at the recent event going backwards > through time looking for cycles. An integer keyboard-cycle-threshold > gives the limit above which Emacs will give hints to the user that an > automation is possible. And also propose this automation in terms of a > list of either keyboard shortcuts or the functions these shortcuts > were mapped to or, perhaps even descriptive, both. > > This would make it easier for people to discover and appreciate the > macro possibilities of Emacs in contexts where they actually need it. > > Any reflections? > > /Nordl=F6w It's a very interesting idea. I'm afraid it could be a little slow to check for cycles of arbitrary size after any keypress... maybe one could check only when there are kills or line movements... I suggest you try to implement it, it mustn't be to hard. -weber