From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.help Subject: Re: moving text from one buffer to another Date: Fri, 18 Jan 2013 13:56:34 +0400 Message-ID: <86wqvayfu5.fsf@w2139spb.ru.yotateam.com> References: <1358498399542-275785.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1358503010 3418 80.91.229.3 (18 Jan 2013 09:56:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Jan 2013 09:56:50 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: drain Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 18 10:57:08 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tw8h5-0001Gy-Ti for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Jan 2013 10:57:04 +0100 Original-Received: from localhost ([::1]:50440 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tw8gp-00033Z-6J for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Jan 2013 04:56:47 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tw8gj-00033S-5b for Help-gnu-emacs@gnu.org; Fri, 18 Jan 2013 04:56:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tw8gh-0000Aj-FW for Help-gnu-emacs@gnu.org; Fri, 18 Jan 2013 04:56:41 -0500 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:39114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tw8gh-0000AW-Al for Help-gnu-emacs@gnu.org; Fri, 18 Jan 2013 04:56:39 -0500 Original-Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 8EB0C2071A; Fri, 18 Jan 2013 04:56:37 -0500 (EST) Original-Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute6.internal (MEProxy); Fri, 18 Jan 2013 04:56:37 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-type; s=mesmtp; bh=r/UQJx8QJPMmRhhLhorABTB Ledc=; b=FIC3kneEwpJG/4JeClwTPXzbSgYtjtwFOXiddFeXJK9F14tucQd9CjD a81SEohOLFXnE3PfwCxK0W1Uj2OJO+/ynYYBfWbo0MWnQrFwR8rqjE6jplHhRD/4 U777N2kQ+ti8ZgG+WrikAuO0/LSsgRZfnITTo4h1ORBsxZN5buIs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:date :in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=r/UQJx8QJPMmRhhLhorABTBLedc=; b=ihkyQ3oDPpr3dwjw9QOm/xQQPKcN 545S1Kc89Q0bzZJwqtxiSOtISQsr954FV6nD+P8xC3yZkwqznlU/Yo6WvaM2iI4c VEbAZ7qTXAxwQlN8rMLqvKFES9f2+kfqcX5Bu4S4c06Yf+52rMpM3oJ+bT9R1U/R XDt6VpEt260ChBI= X-Sasl-enc: wNr3czgmIrTr5bSIgtTeH8wPv5OA2ywUOT1Nsv17umL3 1358502997 Original-Received: from w2139spb.ru.yotateam.com (unknown [94.25.210.15]) by mail.messagingengine.com (Postfix) with ESMTPA id D69BD482708; Fri, 18 Jan 2013 04:56:36 -0500 (EST) In-Reply-To: <1358498399542-275785.post@n5.nabble.com> (drain's message of "Fri, 18 Jan 2013 00:39:59 -0800 (PST)") User-Agent: Gnus/5.1299999999999999 (Gnus v5.13) Emacs/24.2 (cygwin) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88707 Archived-At: 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