copy text and name of the buffer
Glynn Clements
glynn.clements at virgin.net
Thu Feb 5 14:14:30 EST 2004
Uwe Brauer wrote:
> thanks very much, but I thought about the other way around,
>
> I mark (or kill) a region, I visit or open a buffer and then I yank
> the region of the source buffer together with the name of the source
> buffer.
>
> Besides that I think it is hand I tried to generalise the nifty
> remember package by John Wiegley. This package allows to copy text in
> a special file (in my case a file in mailbox format). So I want to
> add to the copied text, the information where the text comes form. For
> this I wanted to understand how to insert a name of a source buffer.
AFAICT, the main problem with what you are proposing is that killing
or copying text (C-w, M-w etc) doesn't keep any record of where the
text came from.
Determining the name of a given buffer is trivial, as is determining
its associated filename (if it has one). The tricky part is
determining exactly *which* buffer you are interested in.
--
Glynn Clements <glynn.clements at virgin.net>
More information about the XEmacs-Beta
mailing list