projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae7d0e8
)
universal-argument--preserve: Preserve last-prefix-arg
author
Sean Whitton
<spwhitton@spwhitton.name>
Thu, 30 May 2024 11:45:57 +0000
(12:45 +0100)
committer
Sean Whitton
<spwhitton@spwhitton.name>
Thu, 30 May 2024 15:23:18 +0000
(16:23 +0100)
* lisp/simple.el (universal-argument--preserve): Set
current-prefix-arg to last-prefix-arg in order to preserve
last-prefix-arg, too (bug#71277).
lisp/simple.el
patch
|
blob
|
history
diff --git
a/lisp/simple.el
b/lisp/simple.el
index 44197c3189abe44bb13613540ac7f1485a0711d1..76fb81c9df51613542ef74182d197729a36c32d4 100644
(file)
--- a/
lisp/simple.el
+++ b/
lisp/simple.el
@@
-5414,7
+5414,8
@@
Runs `prefix-command-preserve-state-hook'."
(add-hook 'prefix-command-preserve-state-hook
#'universal-argument--preserve)
(defun universal-argument--preserve ()
- (setq prefix-arg current-prefix-arg))
+ (setq prefix-arg current-prefix-arg)
+ (setq current-prefix-arg last-prefix-arg))
(defvar universal-argument-map
(let ((map (make-sparse-keymap))