[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how can tell emacs not to load desktop when invoked by mutt?
From: |
wang yin |
Subject: |
Re: how can tell emacs not to load desktop when invoked by mutt? |
Date: |
25 Apr 2003 12:46:38 +0800 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Thank you! This is almost what I want!
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)))
If I got this done, the problem is solved perfectly :)
So please tell me how to program the predict:
(regexp-match ("/tmp/mutt-[^-]+-[0-9-]+", file-name))
--
Wang Yin
DA Lab, Tsinghua University,
100084
Beijing China