bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

insert-kbd-macro doesn't escape quote chars (patch)


From: Tom 7
Subject: insert-kbd-macro doesn't escape quote chars (patch)
Date: Wed, 9 Jul 2003 15:22:56 -0400 (EDT)

M-x insert-kbd-macro doesn't escape quote characters in the macro.

Simply record a macro that has special keys (otherwise it will dump
as a string and escape properly):

C-x ( tab " )

Name it:

M-x name-last-kbd-macro hello

And insert it:

M-x insert-kbd-macro hello

Note that it uses ?", which makes it a malformed lisp expression.

Here is a patch:

--- macros.el       Wed Jul  9 15:17:50 2003
+++ macros.el       Wed Jul  9 15:17:40 2003
@@ -150,6 +150,8 @@
                       (setq mods (cdr mods)))
                     (cond ((= char ?\\)
                            (insert "\\\\"))
+                          ((= char ?\")
+                           (insert "\\\""))
                           ((= char ?\;)
                            (insert "\\;"))
                           ((= char 127)

 - Tom 7

[ NEW! : http://tom7.org/       ]
[ OLD! : http://fonts.tom7.com/ ]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]