[WHL] Re: [WHL] Re: Question about usage of C-number and M-number

Zajcev Evgeny zevlg at yandex.ru
Wed Nov 3 01:16:20 EST 2004


"Ben Wing" <ben at 666.com> writes:

> I find tons of uses for registers, esp. with convenient keystrokes.  One is
> when I have to repeatedly insert text, e.g. in my texinfo-izing I'm often
> having to insert @example and @end example around some blocks, and
> @enumerate or @itemize elsewhere, etc.  With M-2 or M-1 it is super-fast.
>
> Another is in changelogs when I have to collect some scattered regions
> together.  You can cut a bunch of regions with M-C-S-2 [e.g.], which cuts
> and appends them all together.  There is no other convenient way of doing
> this -- you'd have to do C-M-w C-w, which is rather awkward. [I agree that
> M-C-S- is a bit awkward, too.]

If using multr(http://lgarc.narod.ru/xemacs-tips/multr.el) package,
you can easily do `C-M-w C-w' only once.  multr allows you to execute
certain command on multiple regions.  For example if you have multr
map on `C-M-m' then all your job will be:

  1) Select region and put it in regions chain (C-M-m a)
  2) Repeat 1) if needed
  3) `C-M-w C-M-a C-w' to kill all regions and store concatenated
     result in kill-ring.

However it requires more keystrokes than your (M-C-S-2) variant, but
this method is unified in operations on scattered regions and
applicable in wider area.

-- 
lg




More information about the XEmacs-Beta mailing list