From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Has anybody got a tool for manipulating dribble files? Date: Thu, 13 Oct 2011 21:05:57 +0000 Message-ID: <20111013210557.GB3412@acm.acm> References: <20111012190105.GB2870@acm.acm> <874nzd6389.fsf@maru.md5i.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1318540241 22803 80.91.229.12 (13 Oct 2011 21:10:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 13 Oct 2011 21:10:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Welsh Duggan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 13 23:10:38 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 1RESY1-0006SP-Sf for ged-emacs-devel@m.gmane.org; Thu, 13 Oct 2011 23:10:38 +0200 Original-Received: from localhost ([::1]:50354 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RESY1-00075h-0M for ged-emacs-devel@m.gmane.org; Thu, 13 Oct 2011 17:10:37 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RESXy-00075b-Pj for emacs-devel@gnu.org; Thu, 13 Oct 2011 17:10:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RESXx-0006Dw-Op for emacs-devel@gnu.org; Thu, 13 Oct 2011 17:10:34 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:43693 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RESXx-0006Ds-E1 for emacs-devel@gnu.org; Thu, 13 Oct 2011 17:10:33 -0400 Original-Received: (qmail 8592 invoked by uid 3782); 13 Oct 2011 21:10:30 -0000 Original-Received: from acm.muc.de (pD951B1A2.dip.t-dialin.net [217.81.177.162]) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 13 Oct 2011 23:10:28 +0200 Original-Received: (qmail 3951 invoked by uid 1000); 13 Oct 2011 21:05:57 -0000 Content-Disposition: inline In-Reply-To: <874nzd6389.fsf@maru.md5i.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 193.149.48.1 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:145158 Archived-At: Hi, Michael. On Wed, Oct 12, 2011 at 10:21:26PM -0400, Michael Welsh Duggan wrote: > Alan Mackenzie writes: > > Hi, Emacs. > > I've got a rather largish dribble-file (thanks Michael!) for recreating > > a bug. Does anybody here have or know about a tool which can replay > > (partially or wholly) such a file, or anything similar? > I asked this a little while ago, and got no response. So I wrote the > following function: [ .... ] Excellent man! > This function reads a dribble file and creates a keyboard macro from > it. It is heuristic in nature. You cannot tell the difference between > `RET' being pressed and the key sequence "" in a dribble file, > along with a couple of other similar things. OK. > Once you have the macro, it can then be edited using M-x edit-kbd-macro > (of `C-x e'). Unfortunately, the macro will stop on any C-g or any > command that raises an error, so the macro must be edited to elide > these. > In this particular case, I have done the work, and I will be posting an > exact recipe for recreating the problem in Bug 9560. (Once nice thing > about using a keyboard macro to replicate the problem is that you can > trim it to look at intermediate state.) :-) > -- > Michael Welsh Duggan > (md5i@md5i.com) -- Alan Mackenzie (Nuremberg, Germany).