From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.help Subject: Re: About "/" in the regexp Date: Thu, 14 Feb 2013 07:52:54 +0800 Organization: The Church of Emacs Message-ID: <20130214075254.7b91edba5e8805ce02197f86@gmail.com> References: <20130213082726.b46491201c979c52a53c2bf5@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1360799592 5727 80.91.229.3 (13 Feb 2013 23:53:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Feb 2013 23:53:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Drew Adams" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 14 00:53:34 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U5m8s-0003y6-3c for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Feb 2013 00:53:34 +0100 Original-Received: from localhost ([::1]:52605 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5m8V-0004Fj-JP for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Feb 2013 18:53:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5m8P-0004Ek-Ed for help-gnu-emacs@gnu.org; Wed, 13 Feb 2013 18:53:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5m8L-00047f-43 for help-gnu-emacs@gnu.org; Wed, 13 Feb 2013 18:53:05 -0500 Original-Received: from mail-pa0-f43.google.com ([209.85.220.43]:45322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5m8K-00047Y-U7 for help-gnu-emacs@gnu.org; Wed, 13 Feb 2013 18:53:01 -0500 Original-Received: by mail-pa0-f43.google.com with SMTP id bh2so979700pad.2 for ; Wed, 13 Feb 2013 15:53:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:in-reply-to :references:organization:x-mailer:mime-version:content-type :content-transfer-encoding; bh=OJvvLYPIMSfrxBVGgNHFvqNbvEFeE2tQ02KKn0lQZU0=; b=05Uw6t67wNsU6iJ7pnlnl0RVyoNCGNiu4OA9t0xEx91Q08LNzNAUdcho7geL9fB41g tyX0BrtHK8eodr/mHrmiUbrCYjlHco8LXjV2uNdvwqWHSpbXNGcoTLMwqrU2XDg1wTMg kLBHbHfWsWCtXjBNojpb6QkLxOGGVcVy1txVGRLwB2bnHYQypuX2Ki8NsQEFT0/vZ4h+ rSZr4Ibg3TKTm3B62nLMZyaXspQnBw1Y9Of1qXzx5W3sdbGS5M0Jg8hif6mONlSfkruJ evaAzNJEtmkOecskGMnKDGSYT2aoxCAUlhgjFGK4K1c+lREJbUWiEU1tjBKZ8cQmdi/G DK5Q== X-Received: by 10.66.76.41 with SMTP id h9mr68889342paw.1.1360799579821; Wed, 13 Feb 2013 15:52:59 -0800 (PST) Original-Received: from Emacs ([49.118.21.177]) by mx.google.com with ESMTPS id y9sm87126898paw.1.2013.02.13.15.52.57 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Feb 2013 15:52:59 -0800 (PST) In-Reply-To: X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.13; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.43 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89095 Archived-At: On Tue, 12 Feb 2013 20:01:52 -0800 "Drew Adams" wrote: > > (setq auto-mode-alist > > (append > > ;; File name (within directory) starts with a dot. > > '(("/\\.[^/]*\\'" . fundamental-mode) > > ;; File name has no dot. > > ("/[^\\./]*\\'" . fundamental-mode) > > ...) > > auto-mode-alist)) > > > > I'm confused about the first "/" in the two regular > > expressions. > It's for a file name "within [a] directory", e.g., /foobar. > The / is the directory separator. I see, thanks. -- Best regards, Xue Fuqiao. http://www.emacswiki.org/emacs/XueFuqiao