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
1c62c12f
Commit
1c62c12f
authored
Jun 21, 2002
by
Kim F. Storm
Browse files
(cua--prefix-arg): Make register prefixes
work again. Corrected error in check for C-u initiated prefix.
parent
83cfd18f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
lisp/emulation/cua-base.el
lisp/emulation/cua-base.el
+9
-7
No files found.
lisp/emulation/cua-base.el
View file @
1c62c12f
...
...
@@ -653,17 +653,19 @@ Repeating prefix key when region is active works as a single prefix key."
(
defun
cua--prefix-arg
(
arg
)
(
setq
cua--register
(
and
cua-enable-register-prefix
(
integerp
(
this-command-keys
))
(
cond
((
eq
cua-enable-register-prefix
'not-ctrl-u
)
(
not
(
=
(
aref
(
this-command-keys
)
0
)
?\C-u
)))
((
eq
cua-enable-register-prefix
'ctrl-u-only
)
(
=
(
aref
(
this-command-keys
)
0
)
?\C-u
))
(
t
t
))
(
integerp
arg
)
(
>=
arg
0
)
(
<
arg
10
)
(
let*
((
prefix
(
aref
(
this-command-keys
)
0
))
(
ctrl-u-prefix
(
and
(
integerp
prefix
)
(
=
prefix
?\C-u
)))))
(
cond
((
eq
cua-enable-register-prefix
'not-ctrl-u
)
(
not
ctrl-u-prefix
))
((
eq
cua-enable-register-prefix
'ctrl-u-only
)
ctrl-u-prefix
)
(
t
t
))
(
+
arg
?0
)))
(
if
cua--register
nil
arg
))
;;; Enhanced undo - restore rectangle selections
(
defun
cua-undo
(
&optional
arg
)
...
...
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