unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jiri Pejchal <xpejchal@fi.muni.cz>
Subject: Re: how can tell emacs not to load desktop when invoked by mutt?
Date: Thu, 24 Apr 2003 18:36:34 GMT	[thread overview]
Message-ID: <qlche8nd9ot.fsf@nymfe04.fi.muni.cz> (raw)
In-Reply-To: mailman.5147.1051177074.21513.help-gnu-emacs@gnu.org

"Ehud Karni" <ehud@unix.mvs.co.il> writes:

> > 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)))

Can emacs somehow test the command it was invoked with

emacs -nw /tmp/mutt-...

contains the string mutt?

Jiri Pejchal

  parent reply	other threads:[~2003-04-24 18:36 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-24  1:04 how can tell emacs not to load desktop when invoked by mutt? wang yin
2003-04-24  1:45 ` David Kastrup
2003-04-24  6:17   ` wang yin
2003-04-24  7:29   ` Alan Mackenzie
2003-04-24 11:41     ` Robert Marshall
2003-04-24  9:37 ` Ehud Karni
     [not found] ` <mailman.5147.1051177074.21513.help-gnu-emacs@gnu.org>
2003-04-24 18:36   ` Jiri Pejchal [this message]
2003-04-24 22:09     ` Johan Bockgård
2003-04-25  4:46   ` wang yin
2003-04-26 17:07     ` Glenn Morris
2003-04-27 11:48     ` Kai Großjohann
2003-04-28  2:09       ` Michael Herman
     [not found]       ` <mailman.5267.1051495772.21513.help-gnu-emacs@gnu.org>
2003-04-28  6:07         ` Kai Großjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=qlche8nd9ot.fsf@nymfe04.fi.muni.cz \
    --to=xpejchal@fi.muni.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).