[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21648: 25.0.50; [PATCH] Add ability to specify radix for the yanked
From: |
Jay Belanger |
Subject: |
bug#21648: 25.0.50; [PATCH] Add ability to specify radix for the yanked number in calc-yank |
Date: |
Thu, 08 Oct 2015 11:08:33 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Hi Kaushal,
> I read this question of emacs.stackexchange
> ( http://emacs.stackexchange.com/q/13451/115)
> where the user needed to specify the radix of the number he was
> pasting in calc.
>
> If the calc default radix is decimal and if a user pastes 1000, it
> will be pasted as decimal 1000. But what if the user meant to paste
> binary 1000 (decimal 8)?
>
> My patch below enables doing that using numeric prefixes.
>
> Please advise if merging this patch to calc-yank is a good idea or if
> needs improvement/bug fixes before the merging.
There's a feature freeze on right now, so it shouldn't be added to Emacs
right away. But it looks useful.
With the patch, if the yanked number already has the radix prefix, there
is an error. It might make more sense to have Calc do an appropriate
conversion. Also, the number of radixes in the patch is less than Calc allows.
It might make more sense to have calc-yank use the current Calc's
current radix rather than a prefix radix.
I don't recall the policy on using cl- functions, but cond could
easily be used instead of cl-case.
But this should be brought up again after the feature freeze.
Jay
- bug#21648: 25.0.50; [PATCH] Add ability to specify radix for the yanked number in calc-yank, Kaushal Modi, 2015/10/09
- bug#21648: 25.0.50; [PATCH] Add ability to specify radix for the yanked number in calc-yank,
Jay Belanger <=
- bug#21648: 25.0.50; [PATCH] Add ability to specify radix for the yanked number in calc-yank, Kaushal Modi, 2015/10/09
- bug#21648: 25.0.50; [PATCH] Add ability to specify radix for the yanked number in calc-yank, Kaushal Modi, 2015/10/08
- bug#21648: 25.0.50; [PATCH] Add ability to specify radix for the yanked number in calc-yank, Jay Belanger, 2015/10/09
- bug#21648: 25.0.50; [PATCH] Add ability to specify radix for the yanked number in calc-yank, Kaushal Modi, 2015/10/08
- bug#21648: 25.0.50; [PATCH] Add ability to specify radix for the yanked number in calc-yank, Jay Belanger, 2015/10/08
- bug#21648: 25.0.50; [PATCH] Add ability to specify radix for the yanked number in calc-yank, Kaushal Modi, 2015/10/08
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- bug#21648: 25.0.50; [PATCH] Add ability to specify radix for the yanked number in calc-yank, Kaushal Modi, 2015/10/12
bug#21648: 25.0.50; [PATCH] Add ability to specify radix for the yanked number in calc-yank, Eli Zaretskii, 2015/10/09