From xemacs-m  Mon Aug 18 06:46:14 1997
Received: from dolphin.automatrix.com (dolphin.automatrix.com [198.69.29.254])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id GAA03883
	for <xemacs-beta@xemacs.org>; Mon, 18 Aug 1997 06:46:12 -0500 (CDT)
Received: (from skip@localhost) by dolphin.automatrix.com (8.8.5/8.8.3) id HAA16051; Mon, 18 Aug 1997 07:46:14 -0400 (EDT)
Date: Mon, 18 Aug 1997 07:46:14 -0400 (EDT)
Message-Id: <199708181146.HAA16051@dolphin.automatrix.com>
From: Skip Montanaro <skip@calendar.com>
To: xemacs-beta@xemacs.org
Subject: Re: Problems loading named keyboard macro from a file (formatting fix)
Reply-to: skip@calendar.com (Skip Montanaro)


I think the following patch fixes the print formatting of keyboard macros so
that ^ is properly isolated and can later be parsed as a literal ^ instead
of a control prefix.  I'm not sure if the test for times > 1 is needed.  I
wasn't able to interactively generate a macro that would have a section that
would format like "4*^".  Someone with more familiarity with the code will
have to decide.

1997-08-18  Skip Montanaro  <skip@calendar.com>

	* utils/edmacro.el (edmacro-format-1): handle ^ in key sequence
	properly.

*** edmacro.el~	Mon Aug 18 06:40:40 1997
--- edmacro.el	Mon Aug 18 07:30:14 1997
***************
*** 688,691 ****
--- 688,696 ----
  		     (concat "<" my ">")
  		   my)))
+ 	      ((eq el ?^)
+ 	       ;; literal ^ stands alone or at the end of a string
+ 	       (if (> times 1)
+ 		   (format "^ %d*" times)
+ 		 "^ "))
  	      (t
  	       (cdr (edmacro-conv el t)))))


Skip Montanaro     | Musi-Cal Express - get your own private Musi-Cal
skip@calendar.com  | domain name! http://concerts.calendar.com/express.shtml
(518)372-5583      | WebFast - http://www.webfast.com/

