unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: copy-rectangle-to-kill-ring
Date: Fri, 05 Jan 2007 10:35:04 -0700	[thread overview]
Message-ID: <enm29p$jkq$1@sea.gmane.org> (raw)
In-Reply-To: <459D4A35.3060403@zksw.de>

Wilmar Igl wrote:
> sorry, I don't want to  be a nuisance. However, I'd like to suggest to
> include a function to copy a rectangle into the kill ring which is not 
> available at the moment (only copy-rectangle-to-register).

C-x r k
C-x u
...
C-x r y

,----[ C-h f kill-rectangle RET ]
| kill-rectangle is an interactive compiled Lisp function in `rect.el'.
| It is bound to C-x r k.
| (kill-rectangle start end &optional fill)
|
| Delete the region-rectangle and save it as the last killed one.
|
| When called from a program the rectangle's corners are start and end.
| You might prefer to use `delete-extract-rectangle' from a program.
|
| With a prefix (or a fill) argument, also fill lines where nothing has 
to be
| deleted.
|
| If the buffer is read-only, Emacs will beep and refrain from deleting
| the rectangle, but put it in the kill ring anyway.  This means that
| you can use this command to copy text from a read-only buffer.
| (If the variable `kill-read-only-ok' is non-nil, then this won't
| even beep.)
|
| [back]
`----

,----[ C-h k C-x u ]
| C-x u runs the command advertised-undo
|   which is an alias for `undo' in `simple.el'.
| It is bound to C-x u.
| (advertised-undo &optional arg)
|
| Undo some previous changes.
| Repeat this command to undo more changes.
| A numeric argument serves as a repeat count.
|
| In Transient Mark mode when the mark is active, only undo changes within
| the current region.  Similarly, when not in Transient Mark mode, just C-u
| as an argument limits undo to changes within the current region.
|
| [back]
`----

,----[ C-h f yank-rectangle RET ]
| yank-rectangle is an interactive compiled Lisp function in `rect.el'.
| It is bound to C-x r y.
| (yank-rectangle)
|
| Yank the last killed rectangle with upper left corner at point.
|
| [back]
`----

-- 
Kevin

  reply	other threads:[~2007-01-05 17:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-04 18:40 copy-rectangle-to-kill-ring Wilmar Igl
2007-01-05 17:35 ` Kevin Rodgers [this message]
2007-01-10  8:38 ` copy-rectangle-to-kill-ring Kevin Rodgers
2007-01-11  6:14   ` copy-rectangle-to-kill-ring Kevin Rodgers

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='enm29p$jkq$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).