help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: block based selection


From: Alan Wehmann
Subject: Re: block based selection
Date: Thu, 28 Apr 2005 21:07:48 -0500
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, usg-unix-v)

I'm surprised that noone has yet suggested that you investigate the
rectangle functions.  For example:

C-x r r runs `copy-rectangle-to-register'

`copy-rectangle-to-register' is an interactive compiled Lisp function
  -- loaded from "/opt/build/xemacs-21.4.15/lisp/register.elc"
(copy-rectangle-to-register REGISTER START END &optional DELETE-FLAG)

Documentation:
Copy rectangular region into register REGISTER.
With prefix arg, delete as well.
Called from program, takes four args: REGISTER, START, END and DELETE-FLAG.
START and END are buffer positions giving two corners of rectangle.

I happen to be using XEmacs, but these functions are common to XEmacs
and Emacs.

Others are documented in the Info files, for example.

Uwe Mayer <merkosh@hadiko.de> writes:

> Hi,
>
> how do you change the way emacs selects regions of text? Currently it works
> line based, but I need to select a rectangular region from within a text.
> Can anyone help me with how to change the selection mode?
>
> Thanks
> Uwe     

-- 
Alan Wehmann
wehmann(nospam)@fnal.gov


reply via email to

[Prev in Thread] Current Thread [Next in Thread]