help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: moving text from one buffer to another


From: Filipp Gunbin
Subject: Re: moving text from one buffer to another
Date: Fri, 18 Jan 2013 13:56:34 +0400
User-agent: Gnus/5.1299999999999999 (Gnus v5.13) Emacs/24.2 (cygwin)

On 18/01/2013 12:39 +0400, drain wrote:

> I'd like to know how I could structure this function more elegantly. It
> was designed to:
>
> (1) insert the e-mail address and topic of a mail recipient.
> (2) insert the body of a message written in my org-mode mail archive.
>
[snip]
>
> I'm comfortable with most of the code, but the way I copy text from the org
> archive seems somewhat messy. After a bunch of Google searches,
> "current-kill" was the first function that helped me reach my functionality
> goals. But it was hardly a learned choice.
>

I'd use a kind of address book instead of completing-read. See `(info
"(gnus) FAQ 5-7")' (for Gnus). Then the function would need only to copy
message content to a new mail buffer. I'm not familiar with org, so I
cannot help you on writing such a function, sorry.

-- 
Filipp Gunbin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]