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: dns mode Date: Thu, 06 May 2010 22:59:14 -0400 Message-ID: References: <877ho0fs4x.fsf@sphinx.net.ru> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273203665 31977 80.91.229.12 (7 May 2010 03:41:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 May 2010 03:41:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 07 05:41:04 2010 connect(): No such file or directory 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 1OAEQy-00007H-64 for geh-help-gnu-emacs@m.gmane.org; Fri, 07 May 2010 05:41:04 +0200 Original-Received: from localhost ([127.0.0.1]:57066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OAEQx-00047E-0R for geh-help-gnu-emacs@m.gmane.org; Thu, 06 May 2010 23:41:03 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe23.iad.POSTED!7564ea0f!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:HC4d2R+xtrcP/Qe/iw5VIkgSGUU= Original-Lines: 12 Original-X-Complaints-To: abuse@UsenetServer.com Original-NNTP-Posting-Date: Fri, 07 May 2010 02:59:14 UTC Original-Xref: usenet.stanford.edu gnu.emacs.help:178022 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:73548 Archived-At: > And similarly for zone-mode. This also has the advantage of working > regardless of the regexp used to match the file name. A simpler solution is to not remove anything but add instead: (push '("\\.soa\\'" . my-mode) auto-mode-alist) this will work regardless of the shape and number of entries in auto-mode-alist. Stefan