From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "David Vanderschel" Newsgroups: gmane.emacs.help Subject: auto-mode-alist for minor modes? Date: Thu, 11 Sep 2003 00:23:36 -0500 Organization: hardly ever ;-) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1063258376 3690 80.91.224.253 (11 Sep 2003 05:32:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2003 05:32:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 11 07:32:55 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19xK4d-0003Ni-00 for ; Thu, 11 Sep 2003 07:32:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19xK3d-0003sa-L5 for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2003 01:31:53 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!intern1.nntp.aus1.giganews.com!nntp.giganews.com!nntp.texas.net!news.texas.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 11 Sep 2003 00:23:27 -0500 Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Original-Lines: 20 Original-X-Trace: sv3-HBuuJVnWVtx3fZX67vwDJoOHAzFQpHk1ULG0tnLpzd3H/AR+6yCE0BHljY/M/JvhhKI/wBQluN4SHBD!qUFNRw2mpGJ+ipfU7eP9bpWt1ZhA5VTFAGi8bovL4lO9EyzfCvlEbSKHGIUa Original-X-Complaints-To: abuse@texas.net X-DMCA-Complaints-To: abuse@texas.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:116525 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12446 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12446 Though the naming for the auto-mode-alist variable is neutral, the documentation for auto-mode-alist only talks about _major_ modes. I would like to use it to invoke a _minor_ mode when a file with a given extension is loaded. I have tried this, and it seems to work. Is there some subtle way I am going to get myself in trouble doing this? It seems to me that set-auto-mode does not know whether the function associated with the extension is a major mode starter or a minor mode starter. It is just going to call it once the buffer is set up. That is all I want. But I know there are numerous potential 'gotchas' in emacs, so I seek reassurance or, if necessary, correction. Regards, David V.