From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Herman Newsgroups: gmane.emacs.help Subject: Re: how can tell emacs not to load desktop when invoked by mutt? Date: Sun, 27 Apr 2003 21:09:04 -0500 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20030428020904.GA1326@del3yzmj01.thehermans.org> References: <84y91wxisb.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1051495774 20778 80.91.224.249 (28 Apr 2003 02:09:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2003 02:09:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 28 04:09:29 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 199y5A-0005Oc-00 for ; Mon, 28 Apr 2003 04:09:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 199y5M-0005v6-04 for gnu-help-gnu-emacs@m.gmane.org; Sun, 27 Apr 2003 22:09:40 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 199y4r-00054U-00 for help-gnu-emacs@gnu.org; Sun, 27 Apr 2003 22:09:09 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 199y4o-0004ve-00 for help-gnu-emacs@gnu.org; Sun, 27 Apr 2003 22:09:07 -0400 Original-Received: from pcp03713536pcs.nash01.tn.comcast.net ([68.52.108.79] helo=del3yzmj01.local) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 199y4n-0004oh-00 for help-gnu-emacs@gnu.org; Sun, 27 Apr 2003 22:09:05 -0400 Original-Received: by del3yzmj01.local (Postfix, from userid 500) id 4564E292F4; Sun, 27 Apr 2003 21:09:05 -0500 (CDT) Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: Michael Herman , help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <84y91wxisb.fsf@lucy.is.informatik.uni-duisburg.de> User-Agent: Mutt/1.4i X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8930 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8930 On Sun, Apr 27, 2003 at 01:48:52PM +0200, Kai Großjohann wrote: >wang yin writes: > >> Then I can use the following elisp(in pseudo-code): >> >> (or (regexp-match ("/tmp/mutt-[^-]+-[0-9-]+", file-name)) >> (progn >> (load "desktop") >> (desktop-load-default) >> (desktop-read))) > >How about another approach entirely? You start Emacs, then say M-x >server-start RET, and you configure mutt to invoke emacsclient >instead of emacs. > I've tried that before and the problem is the focus. I was able to make emacsclient rise up and take the focus but when finishing the e-mail and closing the buffer, the focus does not return to the Mutt window.