all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Filipp Gunbin <fgunbin@fastmail.fm>
To: drain <aeuster@gmail.com>
Cc: Help-gnu-emacs@gnu.org
Subject: Re: moving text from one buffer to another
Date: Fri, 18 Jan 2013 13:56:34 +0400	[thread overview]
Message-ID: <86wqvayfu5.fsf@w2139spb.ru.yotateam.com> (raw)
In-Reply-To: <1358498399542-275785.post@n5.nabble.com> (drain's message of "Fri, 18 Jan 2013 00:39:59 -0800 (PST)")

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	other threads:[~2013-01-18  9:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-18  8:39 moving text from one buffer to another drain
2013-01-18  9:56 ` Filipp Gunbin [this message]
2013-01-18 12:25   ` drain
2013-01-18 13:11     ` Filipp Gunbin
2013-01-18 13:25       ` drain

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86wqvayfu5.fsf@w2139spb.ru.yotateam.com \
    --to=fgunbin@fastmail.fm \
    --cc=Help-gnu-emacs@gnu.org \
    --cc=aeuster@gmail.com \
    /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 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.