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:34:00 -0400 (EDT) Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1032823998 11179 127.0.0.1 (23 Sep 2002 23:33:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Sep 2002 23:33:18 +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 17tchY-0002u3-00 for ; Tue, 24 Sep 2002 01:33:16 +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 17tchb-0001Fo-00; Mon, 23 Sep 2002 19:33:19 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17tcgn-00018j-00 for help-gnu-emacs@gnu.org; Mon, 23 Sep 2002 19:32:29 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17tcgj-00018W-00 for help-gnu-emacs@gnu.org; Mon, 23 Sep 2002 19:32:28 -0400 Original-Received: from tomts6.bellnexxia.net ([209.226.175.26] helo=tomts6-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.10) id 17tcgj-00018S-00 for help-gnu-emacs@gnu.org; Mon, 23 Sep 2002 19:32:25 -0400 Original-Received: from dell ([65.93.97.112]) by tomts6-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20020923233223.MQKJ13033.tomts6-srv.bellnexxia.net@dell> for ; Mon, 23 Sep 2002 19:32:23 -0400 X-X-Sender: rpjday@dell Original-To: GNU emacs mailing list In-Reply-To: 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:1761 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1761 On Mon, 23 Sep 2002, Robert P. J. Day wrote: > 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? never mind, i finally found it in the elisp info manual. apparently, \' matches the empty string, but only at the end of the buffer or string being matched. so, AFAICT, it appears to serve the same purpose as a trailing $ to match end of string. rday