GNU bug report logs -
#12217
24.2.50; append-to-register: Provide a convenient key binding
Previous Next
Reported by: Jambunathan K <kjambunathan <at> gmail.com>
Date: Fri, 17 Aug 2012 09:49:02 UTC
Severity: wishlist
Tags: patch
Found in version 24.2.50
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
Message #19 received at 12217-done <at> debbugs.gnu.org (full text, mbox):
>> Maybe you could prompt for a separator if the user provided a C-u
>> prefix?
> Prefix is used as a `delete-flag' already ...
The way I read the current binding of C-x r + (increment-register), it
only uses the prefix to specify the number to add to the register, which
in the case of string concatenation is of no use.
So we can use the prefix of C-x + either the way you do in your current
patch (i.e. to specify the delete-flag of append-to-register) or we can
use it to specify the separator.
I understand that deleting the text is a common need, but you can do
that with C-x + C-w instead of C-u C-x +, so maybe it's OK to use C-u
for the separator.
> I have introduced an extra indirection via a `separator-register' (which
> is nil by default) Now what gets used as a separator - a newline, a
> double newline, a comma or a tab - is under user control.
I've renamed it to register-separator, because I'd rather that
register.el move (ever so slowly) to obey the "register-" prefix.
Stefan "Installed, thank you!"
This bug report was last modified 12 years and 257 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.