* open-rectangle
@ 2007-06-26 12:11 Andreas Röhler
2007-06-26 12:21 ` open-rectangle martin rudalics
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Röhler @ 2007-06-26 12:11 UTC (permalink / raw)
To: emacs-devel; +Cc: didier
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.
Question: Is this star, which causes the error in the
interactive-form "*r\nP" of `open-rectangle' necessary?
Thanks
Andreas Roehler
GNU Emacs 22.1.50.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of
2007-06-07
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: open-rectangle
2007-06-26 12:11 open-rectangle Andreas Röhler
@ 2007-06-26 12:21 ` martin rudalics
2007-06-26 16:02 ` open-rectangle Andreas Röhler
2007-06-26 18:29 ` open-rectangle Andreas Röhler
0 siblings, 2 replies; 4+ messages in thread
From: martin rudalics @ 2007-06-26 12:21 UTC (permalink / raw)
To: Andreas Röhler; +Cc: didier, emacs-devel
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: open-rectangle
2007-06-26 12:21 ` open-rectangle martin rudalics
@ 2007-06-26 16:02 ` Andreas Röhler
2007-06-26 18:29 ` open-rectangle Andreas Röhler
1 sibling, 0 replies; 4+ messages in thread
From: Andreas Röhler @ 2007-06-26 16:02 UTC (permalink / raw)
To: emacs-devel; +Cc: martin rudalics, didier
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?
Don't know wherefrom I got this idea.
> `copy-rectangle-to-register' calls `extract-rectangle' which doesn't
> modify the buffer.
Thanks. That's the right thing.
>
> > 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.
>
>
OK. See it. Thanks again.
Andreas Roehler
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: open-rectangle
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
1 sibling, 0 replies; 4+ messages in thread
From: Andreas Röhler @ 2007-06-26 18:29 UTC (permalink / raw)
To: emacs-devel; +Cc: martin rudalics
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-06-26 18:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` open-rectangle Andreas Röhler
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.