From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.help Subject: Re: how can tell emacs not to load desktop when invoked by mutt? Date: Thu, 24 Apr 2003 12:37:24 +0300 Organization: Mivtach-Simon Insurance agencies Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200304240937.h3O9bOZc005874@beta.mvs.co.il> References: Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-8 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1051177095 31726 80.91.224.249 (24 Apr 2003 09:38:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2003 09:38:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 24 11:38:13 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 198dBF-0008FZ-00 for ; Thu, 24 Apr 2003 11:38:13 +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 198dB3-0000ag-00 for gnu-help-gnu-emacs@m.gmane.org; Thu, 24 Apr 2003 05:38:01 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 198dAt-0000Mk-00 for help-gnu-emacs@gnu.org; Thu, 24 Apr 2003 05:37:51 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 198dAp-0000Ea-00 for help-gnu-emacs@gnu.org; Thu, 24 Apr 2003 05:37:48 -0400 Original-Received: from unix.simonwiesel.co.il ([192.114.178.12] helo=unix.mvs.co.il) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 198dAg-0007eN-00 for help-gnu-emacs@gnu.org; Thu, 24 Apr 2003 05:37:38 -0400 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.11.6/8.11.6) with ESMTP id h3O9bPs10185; Thu, 24 Apr 2003 12:37:25 +0300 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.12.5/8.12.5) with ESMTP id h3O9bOtB005933; Thu, 24 Apr 2003 12:37:25 +0300 Original-Received: (from root@localhost) by beta.mvs.co.il (8.12.5/8.12.5/Submit) id h3O9bOZc005874; Thu, 24 Apr 2003 12:37:24 +0300 Original-To: wy@wangyin.com In-reply-to: (message from wang yin on 24 Apr 2003 09:04:51 +0800) X-Mailer: Emacs 21.3.1 rmail (send-msg 1.108) 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:8765 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8765 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 24 Apr 2003 09:04:51 +0800, wang yin wrote: > > (load "desktop") > (desktop-load-default) > (desktop-read) > > Can anyone give an example how to set a conditional? Thanks! I think the other replies to this post (emacsclient) are good but there was no direct answer to the question. Here is my proposal: 1. Run the `mutt' command through a script. 2. Add an environment variable MUTT=ON. 3. Wrap your desktop loading in ~/.emcas : (or (string-equal (or (getenv "MUTT") "-") "ON") (progn (load "desktop") (desktop-load-default) (desktop-read))) Ehud. - -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ mailto:ehud@unix.mvs.co.il Better Safe Than Sorry -----BEGIN PGP SIGNATURE----- Comment: use http://www.keyserver.net/ to get my key (and others) iD8DBQE+p7BTLFvTvpjqOY0RApzbAJ96hdbdIzYbhdHBK+7NsYZEd32jSACfcSS5 7/CHb0zCsMY0263fBWwbqHk= =7pHI -----END PGP SIGNATURE-----