From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: wang yin Newsgroups: gmane.emacs.help Subject: how can tell emacs not to load desktop when invoked by mutt? Date: 24 Apr 2003 09:04:51 +0800 Organization: Bentium Ltd. (CN99) Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051146185 24349 80.91.224.249 (24 Apr 2003 01:03:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2003 01:03:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 24 03:03:04 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 198V8I-0006EA-00 for ; Thu, 24 Apr 2003 03:02:38 +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 198V6H-0004pv-00 for gnu-help-gnu-emacs@m.gmane.org; Wed, 23 Apr 2003 21:00:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!logbridge.uoregon.edu!newsgate.cuhk.edu.hk!news.cn99.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: tu140066.tsinghua.edu.cn Original-X-Trace: mail.cn99.com 1051145767 66398 166.111.140.66 (24 Apr 2003 00:56:07 GMT) Original-X-Complaints-To: usenet@news.cn99.com Original-NNTP-Posting-Date: Thu, 24 Apr 2003 00:56:07 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:112253 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:8752 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8752 Hi, I set my mutt's editor variable to "emacs -nw" :) But I use the "desktop package". So every time I reply a mail, emacs will start over again and load ~/.emacs I have desktop sessions saved with the desktop package. And loading the session is slow. I don't want these lines to be executed from time to time when I reply or compose mail: (load "desktop") (desktop-load-default) (desktop-read) But I'm new to Emacs, and I don't know how to tell emacs it's invoked by mutt. The hint to emacs, I think it that it's file name is /tmp/mutt-myloginname-date. Can anyone give an example how to set a conditional? Thanks! -- Wang Yin DA Lab, Tsinghua University, 100084 Beijing China