From: sandipchitale@yahoo.com (Sandip Chitale)
Subject: Re: How to copy rectangles
Date: 14 Oct 2003 09:54:22 -0700 [thread overview]
Message-ID: <b607d812.0310140854.59f75787@posting.google.com> (raw)
In-Reply-To: e867ce6d.0310130434.2da5327c@posting.google.com
gareth.rees@pobox.com (Gareth Rees) wrote in message news:<e867ce6d.0310130434.2da5327c@posting.google.com>...
> Siegfried Heintze wrote:
> > Why is there no kill-rectangle-save command? I need it!
>
> Because you can use 'copy-rectangle-to-register' (C-x r r REGISTER) to
> save a copy, and 'insert-register' (C-x r i REGISTER) to insert it.
>
> However, it's easy to roll your own:
>
> (defun kill-rectangle-save (start end)
> "Save the region-rectangle as the last killed one."
> (interactive "r")
> (require 'rect) ; Make sure killed-rectangle is defvar'ed.
> (setq killed-rectangle (extract-rectangle start end)))
Thanks. I have added the above function to my .emacs now.
Can anyone tell me as to why this is not supported by emacs by
default? One would think this is very useful and commonly used
function.
next prev parent reply other threads:[~2003-10-14 16:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-09 20:50 How to copy rectangles Siegfried Heintze
2003-10-11 18:37 ` roodwriter
2003-10-11 21:47 ` Martin Stone Davis
2003-10-13 12:34 ` Gareth Rees
2003-10-14 16:54 ` Sandip Chitale [this message]
2003-10-15 10:03 ` Gareth Rees
2003-10-15 18:14 ` Sandip Chitale
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b607d812.0310140854.59f75787@posting.google.com \
--to=sandipchitale@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.