mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 18:40:39 -08:00
calc-bin.el (calc-radix): Have the O option turn on twos-complement mode.
This commit is contained in:
parent
a0d3397536
commit
f8b91752dd
5 changed files with 42 additions and 15 deletions
|
|
@ -72,6 +72,12 @@ opinions.
|
|||
Summary of changes to "Calc"
|
||||
------- -- ------- -- ----
|
||||
|
||||
Emacs 24.1
|
||||
|
||||
* Added "O" option prefix.
|
||||
|
||||
* Used "O" prefix to "d r" (`calc-radix') to turn on twos-complement mode.
|
||||
|
||||
Emacs 23.2
|
||||
|
||||
* Added twos-complement display.
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ the size of a Calc bignum digit.")
|
|||
(progn
|
||||
(calc-change-mode
|
||||
(list 'calc-number-radix 'calc-twos-complement-mode)
|
||||
(list n (and (or (= n 2) (= n 8) (= n 16)) arg)) t)
|
||||
(list n (or arg (calc-is-option))) t)
|
||||
;; also change global value so minibuffer sees it
|
||||
(setq-default calc-number-radix calc-number-radix))
|
||||
(setq n calc-number-radix))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue