From: Kevin Rodgers <kevin.rodgers@ihs.com>
Subject: Re: backward-delete-word?
Date: Fri, 13 Dec 2002 16:58:06 -0700 [thread overview]
Message-ID: <3DFA740E.4020408@ihs.com> (raw)
In-Reply-To: sGtK9.31$n41.1147@paloalto-snr1.gtei.net
Barry Margolin wrote:
> In article <wkk7ida6q3.fsf@TheWorld.com>,
> Joe Fineman <jcf@TheWorld.com> wrote:
>
>>"Bingham, Jay" <Jay.Bingham@hp.com> writes:
>>
>>
>>>In similar circumstances I have stored text in a register and
>>>inserted it into the buffer from the register.
>>>
>>I too have often found registers a welcome relief from the
>>complexities of the kill ring. However, there is one oddity about
>>their implementation that takes some getting used to. When you insert
>>the contents of a register (C-x g), point is at the beginning of the
>>insertion; you have to do C-x C-x to get it to the end, where it would
>>be after yanking from the kill ring. Either outcome could be argued
>>for, but it seems perverse to do these two very similar jobs in
>>different ways.
>>
>
> I too have always found this curious. My guess is that it's because
> registers are most often used in keyboard macros (if you think of a macro
> as a program, registers are the "variables"), while yanking is mainly
> interactive, and the designer of the register code didn't think the same
> expectations applied. In any case, when creating a macro, it's easy to fix
> up the location after inserting a register, and then you don't have to
> worry about it.
C-x g runs the command insert-register-compatibility-binding:
Insert contents of register REGISTER. (REGISTER is a character.)
Normally puts point before and mark after the inserted text.
If optional second arg is non-nil, puts mark before and point after.
Interactively, second arg is non-nil if prefix arg is supplied.
So: C-u C-x g
--
<a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
next prev parent reply other threads:[~2002-12-13 23:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.148.1039707361.19936.help-gnu-emacs@gnu.org>
2002-12-13 22:34 ` backward-delete-word? Joe Fineman
2002-12-13 23:02 ` backward-delete-word? Barry Margolin
2002-12-13 23:58 ` Kevin Rodgers [this message]
2002-12-12 15:28 backward-delete-word? Bingham, Jay
-- strict thread matches above, loose matches on Subject: below --
2002-12-11 23:01 backward-delete-word? Bingham, Jay
2002-12-11 22:37 backward-delete-word? Timur Aydin
2002-12-11 22:45 ` backward-delete-word? David Kastrup
2002-12-11 22:50 ` backward-delete-word? Benjamin Lewis
2002-12-11 23:01 ` backward-delete-word? Barry Margolin
2002-12-12 14:24 ` backward-delete-word? Timur Aydin
2002-12-12 15:49 ` backward-delete-word? David Kastrup
2002-12-12 15:55 ` backward-delete-word? Bernd Wolter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3DFA740E.4020408@ihs.com \
--to=kevin.rodgers@ihs.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).