From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: How to disable file extension auto-detection or auto-action? Date: Tue, 22 Mar 2011 21:47:18 -0400 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300848030 18929 80.91.229.12 (23 Mar 2011 02:40:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2011 02:40:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 23 03:40:26 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2Dzm-0001bQ-AU for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Mar 2011 03:40:26 +0100 Original-Received: from localhost ([127.0.0.1]:34311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2Dzl-0001JO-Pm for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Mar 2011 22:40:25 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 9 Injection-Info: mx01.eternal-september.org; posting-host="9BGUJNB+A1XxKfix1KbMeg"; logging-data="18127"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19cw3yxNaaDoE+v3vog+AbN" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:a69bvQNfE8xoL5mck+ngOc1WEyY= sha1:Plg0HwYKKaQEh426FzxkezktSlA= Original-Xref: usenet.stanford.edu gnu.emacs.help:186194 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80329 Archived-At: > (add-to-list 'auto-mode-alist '("\\.bz2$" . fundamental-mode)) > (it works for me), the other regexp was not correct... While $ will work, \\' is better since it only matches the end of the file name, whereas $ also matches the end of a line within a multiline file names. Stefan