From: "Andreas Röhler" <andreas.roehler@online.de>
To: emacs-devel@gnu.org
Cc: martin rudalics <rudalics@gmx.at>
Subject: Re: open-rectangle
Date: Tue, 26 Jun 2007 20:29:45 +0200 [thread overview]
Message-ID: <200706262029.46167.andreas.roehler@online.de> (raw)
In-Reply-To: <468104B7.8090600@gmx.at>
Am Dienstag, 26. Juni 2007 14:21 schrieb martin rudalics:
> > Intention is to copy extracts from *w3m*-buffer with
> > `copy-rectangle-to-register'
> >
> > However, calling `open-rectangle' I get an error,
> > because *w3m*-buffer is read-only. Toggling this it
> > works.
>
> How do you manage to call `open-rectangle' here?
> `copy-rectangle-to-register' calls `extract-rectangle' which doesn't
> modify the buffer.
>
> > Question: Is this star, which causes the error in the
> > interactive-form "*r\nP" of `open-rectangle' necessary?
>
> Yes. Because `open-rectangle' may modify the buffer.
>
Lately the `register'-part of
`copy-rectangle-to-register' turned out not as suitable
for my needs. Tried to get rid of that.
What about such a thing?
(defun copy-rectangle (start end)
" "
(interactive "r")
(let (extr)
(dolist (elem (extract-rectangle start end))
(setq extr (concat extr elem "\n")))
(kill-new extr)))
Andreas Roehler
prev parent reply other threads:[~2007-06-26 18:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-26 12:11 open-rectangle Andreas Röhler
2007-06-26 12:21 ` open-rectangle martin rudalics
2007-06-26 16:02 ` open-rectangle Andreas Röhler
2007-06-26 18:29 ` Andreas Röhler [this message]
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=200706262029.46167.andreas.roehler@online.de \
--to=andreas.roehler@online.de \
--cc=emacs-devel@gnu.org \
--cc=rudalics@gmx.at \
/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).