From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: About "/" in the regexp Date: Tue, 12 Feb 2013 20:01:52 -0800 Message-ID: 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 1360728139 17110 80.91.229.3 (13 Feb 2013 04:02:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Feb 2013 04:02:19 +0000 (UTC) To: "'Xue Fuqiao'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 13 05:02:39 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 1U5TYE-00038X-Fv for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Feb 2013 05:02:30 +0100 Original-Received: from localhost ([::1]:59620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5TXv-0001r6-07 for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Feb 2013 23:02:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5TXo-0001pz-LB for help-gnu-emacs@gnu.org; Tue, 12 Feb 2013 23:02:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5TXn-0008Di-5R for help-gnu-emacs@gnu.org; Tue, 12 Feb 2013 23:02:04 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:44202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5TXm-0008DZ-VN for help-gnu-emacs@gnu.org; Tue, 12 Feb 2013 23:02:03 -0500 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r1D41xrM019552 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 13 Feb 2013 04:02:00 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r1D41wXF002378 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Feb 2013 04:01:59 GMT Original-Received: from abhmt109.oracle.com (abhmt109.oracle.com [141.146.116.61]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r1D41wCg023242; Tue, 12 Feb 2013 22:01:58 -0600 Original-Received: from dradamslap1 (/10.159.233.223) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 12 Feb 2013 20:01:58 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20130213082726.b46491201c979c52a53c2bf5@gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Thread-Index: Ac4JgO3GGHPAgNI0Qk2MfqmVXy9mdgAHbUIg X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 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:89094 Archived-At: > (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. Why is there a slash character? Can anybody > help? Thanks. It's for a file name "within [a] directory", e.g., /foobar. The / is the directory separator.