From: Glenn Morris <gmorris+news@ast.cam.ac.uk>
Subject: Re: how can tell emacs not to load desktop when invoked by mutt?
Date: Sat, 26 Apr 2003 18:07:31 +0100 [thread overview]
Message-ID: <2sznmdrxv0.fsf@xpc21.ast.cam.ac.uk> (raw)
In-Reply-To: ph4r4nchg1.fsf@wangyin.com
wang yin wrote:
> Can you tell me how can I use regexp to match the file name that mutt
> tell emacs to edit: /tmp/mutt-mylogin-date in elisp?
>
> 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)))
Do you really need to be that precise about the mutt file name?
Surely "/tmp/mutt-" is good enough...
(unless
(catch 'found
(dolist (arg command-line-args)
(if (string-match "^/tmp/mutt-" arg)
(throw 'found t))))
(load "desktop")
(dekstop-load-default)
(desktop-read))
next prev parent reply other threads:[~2003-04-26 17:07 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
2003-04-24 22:09 ` Johan Bockgård
2003-04-25 4:46 ` wang yin
2003-04-26 17:07 ` Glenn Morris [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2sznmdrxv0.fsf@xpc21.ast.cam.ac.uk \
--to=gmorris+news@ast.cam.ac.uk \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.