all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sven Joachim <svenjoac@gmx.de>
To: help-gnu-emacs@gnu.org
Subject: Re: How to turn off conf-mode
Date: Wed, 12 Dec 2007 22:31:49 +0100	[thread overview]
Message-ID: <874pend2gq.fsf@gmx.de> (raw)
In-Reply-To: mailman.4948.1197492613.18990.help-gnu-emacs@gnu.org

On 2007-12-12 21:50 +0100, Peter Dyballa wrote:

> Am 12.12.2007 um 07:49 schrieb Robert L Knighten:
>
>> I think the relevant dotted pair in auto-mode-alist is
>>
>>  ("[/.]c\\(?:on\\)?f\\(?:i?g\\)?\\(?:\\.[a-zA-Z0-9._-]+\\)?\\'"
>> . conf-mode)
>>
>
> In my Emacsen .out files are not listed in the set of files for which
> conf-mode should be applied. Or, to be more exact: this is my
> interpretation of the lines and I cannot make .out files open in conf- 
> mode.

It's not the .out extension that puts the files into conf-mode, but
rather the cf _before_ the extension.  Just try "emacs -Q cf" and see
what happens.

> 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
> system's ones.
> In case 2 the system's init file(s) is (are) not loaded, only your
> personal one.
>
> If in case 1 the .out file is opened in conf-mode, then the system's
> init file(s) set(s) it.
> If in case 2 the .out file is opened in conf-mode, then your personal
> init file sets it.
> If in case 1 and in case 2 the .out file is opened in conf-mode, then
> 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
> setting: delete the statement!
> If your system's init file(s) set(s) it, then it's also easy to
> correct the setting in your personal init file: remove the mapping
> from the alist:
>
> 	(remove '("<whatever>" . conf-mode) auto-mode-alist)

All this does not apply here, since Robert's report can be reproduced in
"emacs -Q".

> BTW, the reg-exp you're citation tells (most probably):
>
> 	.cfg, .conf, .cnf, .config files are opened in conf-mode.

As are cf.*, conf.*, cnf.*, config.* files.  That's rather broad.

> I don't understand the \\(?:\\.[a-zA-Z0-9._-]+\\) part – can it really
> stand for *any* extension?

It stands for most extensions, actually.

> If it's really that, then remove  the line
> cited from auto-mode-alist and add it in a changed form with  the
> reg-exp part I don't understand:
>
> 	(add-to-list 'auto-mode-alist
> ("[/.]c\\(?:on\\)?f\\(?:i?g\\)\\'". conf-mode))

That would be a good idea.

Cheers,
       Sven

  parent reply	other threads:[~2007-12-12 21:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-11  6:42 How to turn off conf-mode Robert L Knighten
2007-12-11 14:36 ` Rupert Swarbrick
2007-12-12  6:49   ` Robert L Knighten
2007-12-12 20:50     ` Peter Dyballa
     [not found]     ` <mailman.4948.1197492613.18990.help-gnu-emacs@gnu.org>
2007-12-12 21:31       ` Sven Joachim [this message]
2007-12-12 22:14         ` Peter Dyballa
2007-12-13  5:10         ` Robert L Knighten
2007-12-15  4:35           ` Kevin Rodgers
     [not found]           ` <mailman.5051.1197783054.18990.help-gnu-emacs@gnu.org>
2007-12-16  8:33             ` Robert L Knighten

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874pend2gq.fsf@gmx.de \
    --to=svenjoac@gmx.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.