From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: How to turn off conf-mode Date: Wed, 12 Dec 2007 21:50:04 +0100 Message-ID: <74267FDE-EBB7-41F6-9C4E-EF7983379469@Web.DE> References: <86wsrlivfu.fsf@zeus.knighten.org> <7gx7j.3438$1j1.1971@newsfe7-gui.ntli.net> <86d4tcbe74.fsf@zeus.knighten.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1197492646 26046 80.91.229.12 (12 Dec 2007 20:50:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2007 20:50:46 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Robert L Knighten Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 12 21:50:56 2007 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.50) id 1J2YXW-0005Jl-7E for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Dec 2007 21:50:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J2YXE-0001kH-7J for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Dec 2007 15:50:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J2YWx-0001if-3v for help-gnu-emacs@gnu.org; Wed, 12 Dec 2007 15:50:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J2YWv-0001hn-M1 for help-gnu-emacs@gnu.org; Wed, 12 Dec 2007 15:50:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J2YWv-0001hk-It for help-gnu-emacs@gnu.org; Wed, 12 Dec 2007 15:50:09 -0500 Original-Received: from fmmailgate02.web.de ([217.72.192.227]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J2YWu-0002fj-M8 for help-gnu-emacs@gnu.org; Wed, 12 Dec 2007 15:50:08 -0500 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate02.web.de (Postfix) with ESMTP id 2E98DB9C77D0; Wed, 12 Dec 2007 21:50:07 +0100 (CET) Original-Received: from [195.4.207.213] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #208) id 1J2YWs-0008SU-00; Wed, 12 Dec 2007 21:50:07 +0100 In-Reply-To: <86d4tcbe74.fsf@zeus.knighten.org> X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1+wUfODgu/KF0MslnbNQzbUq6wGW0ZnsojCeo/l Gn6VnjlwO6+C15LIxgZRzuz0hpax9DwialUZQiVny1SYaan/5G 5lbnioBqMfmwtO6w/BgQ== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:50051 Archived-At: Am 12.12.2007 um 07:49 schrieb Robert L Knighten: > The problem is that it is not just one file, and the files are =20 > neither named > nor constructed by me. > > I think the relevant dotted pair in auto-mode-alist is > > ("[/.]c\\(?:on\\)?f\\(?:i?g\\)?\\(?:\\.[a-zA-Z0-9._-]+\\)?\\'" . =20 > conf-mode) > > but I don't know what to do about it. I don't want to simply =20 > override this > without understanding what else this will affect. In my Emacsen .out files are not listed in the set of files for which =20= conf-mode should be applied. Or, to be more exact: this is my =20 interpretation of the lines and I cannot make .out files open in conf-=20= mode. So it's likely that you add something. To find out when it happens 1.) launch GNU Emacs with --no-init-file and open such a .out = file 2.) launch GNU Emacs with --no-site-file and open such a .out = file In case 1 your personal .emacs or default.el is not loaded, only the =20 system's ones. In case 2 the system's init file(s) is (are) not loaded, only your =20 personal one. If in case 1 the .out file is opened in conf-mode, then the system's =20 init file(s) set(s) it. If in case 2 the .out file is opened in conf-mode, then your personal =20= init file sets it. If in case 1 and in case 2 the .out file is opened in conf-mode, then =20= both are polluted and you should launch GNU Emacs with -Q! If your personal init file sets it, then it's easy to correct the =20 setting: delete the statement! If your system's init file(s) set(s) it, then it's also easy to =20 correct the setting in your personal init file: remove the mapping =20 from the alist: (remove '("" . conf-mode) auto-mode-alist) BTW, the reg-exp you're citation tells (most probably): .cfg, .conf, .cnf, .config files are opened in conf-mode. I don't understand the \\(?:\\.[a-zA-Z0-9._-]+\\) part =96 can it =20 really stand for *any* extension? If it's really that, then remove =20 the line cited from auto-mode-alist and add it in a changed form with =20= the reg-exp part I don't understand: (add-to-list 'auto-mode-alist = '("[/.]c\\(?:on\\)?f\\(?:i?g\\)\\'". =20 conf-mode)) -- Mit friedvollen Gr=FC=DFen Pete This is a signature virus. Add me to your signature and help me to live