Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f90edb57
Commit
f90edb57
authored
Oct 14, 1995
by
Michael Kifer
Browse files
(vip-record-kbd-macro): correctly escapes `.' and `[' now.
parent
c6b52c46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
lisp/emulation/viper-macs.el
lisp/emulation/viper-macs.el
+11
-1
No files found.
lisp/emulation/viper-macs.el
View file @
f90edb57
...
...
@@ -395,7 +395,17 @@ If SCOPE is nil, the user is asked to specify the scope."
(
vip-save-string-in-file
(
format
"\n(vip-record-kbd-macro %S '%S %s '%S)"
(
vip-display-macro
macro-name
)
state
macro-body
scope
)
state
;; if we don't let vector macro-body through %S,
;; the symbols `\.' `\[' etc will be converted into
;; characters, causing invalid read error on recorded
;; macros in .vip.
;; I am not sure is macro-body can still be a string at
;; this point, but I am preserving this option anyway.
(
if
(
vectorp
macro-body
)
(
format
"%S"
macro-body
)
macro-body
)
scope
)
vip-custom-file-name
))
(
message
msg
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment