copy text and name of the buffer
oub at mat.ucm.es
Thu Feb 5 15:45:39 EST 2004
On 5 Feb 2004, glynn.clements at virgin.net wrote:
> 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.
Ups ok, then my attempts do not make sense.
> 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.
Ok then in order to get the desired generalisation for the remember
function, the following kludge may work.
Since the remember function will be executed in a buffer in which I
am, I have to pass this name to the remember function.
So a simple solution would be, passing a question via the minibuffer:
The modification I have in mind goes like this
(insert (concat "\n" "Filename: " (read-string "Filename: " ) \n" ))
when I execute the modified function I am asked which filename to
insert, a really primitive solution would be to insert the full name,
but I thought I could insert the name by using an appropriate
More information about the XEmacs-Beta