From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: how can tell emacs not to load desktop when invoked by mutt? Date: Sun, 27 Apr 2003 13:48:52 +0200 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84y91wxisb.fsf@lucy.is.informatik.uni-duisburg.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051444489 23371 80.91.224.249 (27 Apr 2003 11:54:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 27 Apr 2003 11:54:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 27 13:54:48 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 199kk3-00064n-00 for ; Sun, 27 Apr 2003 13:54:48 +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 199kkc-00066C-02 for gnu-help-gnu-emacs@m.gmane.org; Sun, 27 Apr 2003 07:55:22 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!p5087779a.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: p5087779a.dip.t-dialin.net (80.135.119.154) Original-X-Trace: fu-berlin.de 1051444280 9912183 80.135.119.154 (16 [73968]) Mail-Copies-To: never User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:Rj6icJjjZTJ1B/3QjfxgLVq1vls= Original-Xref: shelby.stanford.edu gnu.emacs.help:112398 Original-To: help-gnu-emacs@gnu.org 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:8897 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8897 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. -- file-error; Data: (Opening input file no such file or directory ~/.signature)