From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: Defining session for emacs as mutt editor Date: Fri, 22 Mar 2013 15:35:19 -0600 Message-ID: <20130322213519.GA9386@hysteria.proulx.com> References: <87a9pvbjz8.fsf@engels.HistoricalMaterialism.info> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1363988134 25094 80.91.229.3 (22 Mar 2013 21:35:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Mar 2013 21:35:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 22 22:36:01 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 1UJ9d1-0003nr-9E for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Mar 2013 22:35:59 +0100 Original-Received: from localhost ([::1]:39042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJ9cd-0004Qb-Rc for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Mar 2013 17:35:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJ9cT-0004QQ-Fa for help-gnu-emacs@gnu.org; Fri, 22 Mar 2013 17:35:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJ9cO-0005N4-NI for help-gnu-emacs@gnu.org; Fri, 22 Mar 2013 17:35:25 -0400 Original-Received: from joseki.proulx.com ([216.17.153.58]:48616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJ9cO-0005Mx-G0 for help-gnu-emacs@gnu.org; Fri, 22 Mar 2013 17:35:20 -0400 Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 5DE0F211DA for ; Fri, 22 Mar 2013 15:35:19 -0600 (MDT) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id 2B7992DCC4; Fri, 22 Mar 2013 15:35:19 -0600 (MDT) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <87a9pvbjz8.fsf@engels.HistoricalMaterialism.info> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 216.17.153.58 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:89677 Archived-At: Haines Brown wrote: > I want to have mutt (which is started from terminal) use emacs as its > editor with its own initialization file. So in .muttrc I put: > > set editor="emacs -q -l ~/.emacsMutt" Seems reasonable. Alternatively you might consider setting emacsserver and running emacsclient to connect to the running emacs. > This defines an emacs session located on right half of my screen. My > objective is to have the editor displayed to right of screen and the > mutt messages remain displayed to its left. I do not think that is possible. Because mutt is going to invoke emacs and then wait for it to exit before continuing. Effectively the editor process is stacked on top of mutt and mutt will only become active again once the emacs process is popped off the stack. > However, when the emacsMutt window starts, the mutt messages window is > replaced by an empty emacs window, and as the result I no longer see the > mutt messages. An -nw option only makes the emacsMutt session full > screen. What do you mean by an empty emacs window? I think it should be an empty mutt window. Mutt cleared the display in preparation for running the editor. Then mutt is waiting for the editor to exit so that it can continue. In this case you told emacs in your .emacsMutt file to open a graphics window and so the original terminal is empty and waiting. The issues are mutt specific. I would take up the discussion on the mutt-users mailing list. Over here on the emacs side of things I expect the suggesions will be to use vm or gnus where this is already possible. FWIW the ability to fork off an edit task asynchronously from the mutt index is something I have also wanted. But I don't think anyone has written a way in mutt to do this yet. Bob