From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.devel Subject: Re: Has anybody got a tool for manipulating dribble files? Date: Wed, 12 Oct 2011 23:51:39 -0400 Message-ID: <87ty7d4khg.fsf@maru.md5i.com> References: <20111012190105.GB2870@acm.acm> <874nzd6389.fsf@maru.md5i.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1318477913 15411 80.91.229.12 (13 Oct 2011 03:51:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 13 Oct 2011 03:51:53 +0000 (UTC) Cc: Alan Mackenzie , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 13 05:51:49 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RECKi-0005Hf-Lm for ged-emacs-devel@m.gmane.org; Thu, 13 Oct 2011 05:51:48 +0200 Original-Received: from localhost ([::1]:60116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RECKi-0004HL-5Y for ged-emacs-devel@m.gmane.org; Wed, 12 Oct 2011 23:51:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RECKe-0004H5-UK for emacs-devel@gnu.org; Wed, 12 Oct 2011 23:51:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RECKd-0007zq-Es for emacs-devel@gnu.org; Wed, 12 Oct 2011 23:51:44 -0400 Original-Received: from md5i.com ([75.151.244.229]:33369 helo=maru.md5i.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RECKd-0007zk-68 for emacs-devel@gnu.org; Wed, 12 Oct 2011 23:51:43 -0400 Original-Received: from md5i by maru.md5i.com with local (Exim 4.76) (envelope-from ) id 1RECKa-0004Q9-8Q; Wed, 12 Oct 2011 23:51:40 -0400 In-Reply-To: (Stefan Monnier's message of "Wed, 12 Oct 2011 23:43:54 -0400") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 75.151.244.229 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:145096 Archived-At: Stefan Monnier writes: >> This function reads a dribble file and creates a keyboard macro from >> it. It is heuristic in nature. You cannot tell the difference between > > We should change the code in record_char so as to write an unambiguous > format. E.g. write the space key as " SPC" and add a space in front of > the "<...>" symbols. I agree completely. It wouldn't even be hard to do. Unfortunately, I cannot seem to get a blanket disclaimer from my employer (I can only get disclaimers on a case-by-case basis), so I will have to leave it to somebody else. > Tho a (more verbose) alternative is to use the same format as used > within the [...] vector of a keyboard macro, so you can just add "[" at > the front and "]" at the back and parse it with `read'. That would certainly work. Though I wonder if all the keys are all necessarily portable. -- Michael Welsh Duggan (md5i@md5i.com)