From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Robert P. J. Day" Newsgroups: gmane.emacs.help Subject: RE: another newbie question -- auto-mode-alist regexp Date: Mon, 23 Sep 2002 19:27:14 -0400 (EDT) Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <72A87F7160C0994D8C5A36E2FDC227F5032E0B0F@txnexc01.americas.cpqcorp.net> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1032823600 10066 127.0.0.1 (23 Sep 2002 23:26:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Sep 2002 23:26:40 +0000 (UTC) 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 17tcb9-0002cE-00 for ; Tue, 24 Sep 2002 01:26:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17tcbD-0008Ly-00; Mon, 23 Sep 2002 19:26:43 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17tcaE-0008CI-00 for help-gnu-emacs@gnu.org; Mon, 23 Sep 2002 19:25:42 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17tcaC-0008Bt-00 for help-gnu-emacs@gnu.org; Mon, 23 Sep 2002 19:25:41 -0400 Original-Received: from tomts14-srv.bellnexxia.net ([209.226.175.35]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17tcaC-0008Bo-00 for help-gnu-emacs@gnu.org; Mon, 23 Sep 2002 19:25:40 -0400 Original-Received: from dell ([65.93.97.112]) by tomts14-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20020923232537.JSDZ6222.tomts14-srv.bellnexxia.net@dell> for ; Mon, 23 Sep 2002 19:25:37 -0400 X-X-Sender: rpjday@dell Original-To: GNU emacs mailing list In-Reply-To: <72A87F7160C0994D8C5A36E2FDC227F5032E0B0F@txnexc01.americas.cpqcorp.net> Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1760 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1760 On Mon, 23 Sep 2002, Bingham, Jay wrote: > 1. The \\ means make the next character literal. Two are required > because the string is parsed before it is placed in the variable if > there are not two then the single \ gets stripped out and the > literalness is lost. So \. becomes just . (which means match any > character) while \\. becomes \. (which means find a dot). i knew that part. what i didn't understand was the function of the double-escaped sinqle quote: \\'. what does *that* represent? the way it's used suggests something related to end-of-string, but doesn't the "$" already serve that purpose? rday