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: Re: how can tell emacs not to load desktop when invoked by mutt? Date: 25 Apr 2003 12:46:38 +0800 Organization: Bentium Ltd. (CN99) Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051368420 4699 80.91.224.249 (26 Apr 2003 14:47:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 26 Apr 2003 14:47:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 26 16:46:58 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 199Qx8-0001Dd-00 for ; Sat, 26 Apr 2003 16:46:58 +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 199QwY-0005hu-0C for gnu-help-gnu-emacs@m.gmane.org; Sat, 26 Apr 2003 10:46:22 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!logbridge.uoregon.edu!newsgate.cuhk.edu.hk!news.cn99.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: tu140066.tsinghua.edu.cn Original-X-Trace: mail.cn99.com 1051245461 72323 166.111.140.66 (25 Apr 2003 04:37:41 GMT) Original-X-Complaints-To: usenet@news.cn99.com Original-NNTP-Posting-Date: Fri, 25 Apr 2003 04:37:41 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:112369 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:8867 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8867 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