From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Espen Newsgroups: gmane.emacs.help Subject: Re: starting an external command from emacs Date: Wed, 12 Nov 2008 18:08:03 -0500 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226533286 23976 80.91.229.12 (12 Nov 2008 23:41:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Nov 2008 23:41:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 13 00:42:27 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L0PLt-0004g8-V2 for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Nov 2008 00:42:26 +0100 Original-Received: from localhost ([127.0.0.1]:55007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0PKj-0005Yj-HV for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Nov 2008 18:41:13 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.erje.net!news.k-dsl.de!aioe.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: cYEgKMhuy2x0XUA1teUzCQ.user.aioe.org Original-X-Complaints-To: abuse@aioe.org Original-NNTP-Posting-Date: Wed, 12 Nov 2008 23:08:03 +0000 (UTC) X-Notice: Filtered by postfilter v. 0.7.4 Cancel-Lock: sha1:sncvLc8dazYAVJ1mDVZNE206L7o= User-Agent: Gnus/5.090015 (Oort Gnus v0.15) XEmacs/21.4 (Educational Television, i686-pc-linux) Original-Xref: news.stanford.edu gnu.emacs.help:164377 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59712 Archived-At: Matt Price writes: > hi, > > i'm a not-especially-technical person who uses emacs as a > straightforward text editor; in fact i'm experimenting with living > inside emacs most of the time on my main laptop, largely to eliminate > distractions while i'm writing. however, some significant fraction of > the stuff i write is intended to be emailed away. I'd like to do two > things: > > (1) write a function that takes the contents of the current buffer and > inserts it into a message; > (2) use an external script to query an already-existing contacts > database (for me it's evolution or gmail), and pass that address on to > the to-header of the resultant message. > > (2) seemed difficult to me. so what i'm trying right now is to write a > function that invokes mutt with an address string, then, within mutt, > use emacsclient as my editor, post-mode as my mode, and insert the text > into the message body. This is what i have so far: Have you looked at VM, MH-E, rmail, GNUS? (Existing Emacs mail interfaces.)