From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: editing mode: .ml files Date: Sun, 18 Jun 2006 12:20:08 +1000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <87odwrp5lz.fsf@tiger.rapttech.com.au> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1150598447 23919 80.91.229.2 (18 Jun 2006 02:40:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Jun 2006 02:40:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 18 04:40:45 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FrnDP-0001zh-RB for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Jun 2006 04:40:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FrnDO-0006SD-Vo for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Jun 2006 22:40:43 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!transit3.readnews.com!news-out.readnews.com!sn-xt-sjc-03!sn-xt-sjc-08!sn-post-02!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:0Sj5S+tWDovTzis6P1yLIrB/fUg= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 54 Original-Xref: shelby.stanford.edu gnu.emacs.help:139901 Original-To: help-gnu-emacs@gnu.org 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:35525 Archived-At: "r.stiltskin" writes: > When I open a file with a .ml extension the mode line says "(Lisp Slime > [??])" (when I haven't loaded slime.) > > Where's the connection between .ml and Slime? What can I do to change > this? > > > -- > View this message in context: http://www.nabble.com/editing-mode%3A-.ml-files-t1804515.html#a4917903 > Sent from the Emacs - Help forum at Nabble.com. > > I suspect the slime package has set an association between .ml in the auto-mode-alist ,---- | auto-mode-alist is a variable defined in `files.el'. | Its value is shown below. | | Documentation: | Alist of filename patterns vs corresponding major mode functions. | Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION NON-NIL). | (NON-NIL stands for anything that is not nil; the value does not matter.) | Visiting a file whose name matches REGEXP specifies FUNCTION as the | mode function to use. FUNCTION will be called, unless it is nil. | | If the element has the form (REGEXP FUNCTION NON-NIL), then after | calling FUNCTION (if it's not nil), we delete the suffix that matched | REGEXP and search the list again for another match. | | If the file name matches `inhibit-first-line-modes-regexps', | then `auto-mode-alist' is not processed. | | The extensions whose FUNCTION is `archive-mode' should also | appear in `auto-coding-alist' with `no-conversion' coding system. | | See also `interpreter-mode-alist', which detects executable script modes | based on the interpreters they specify to run, | and `magic-mode-alist', which determines modes based on file contents. | `---- If the association exists in auto-mode-alist, you will need to find the slime setup code which creates that association and remove it. On many Linux distros, this can be found in /etc/emacs/site-lisp.d or somewhere similar. Tim -- tcross (at) rapttech dot com dot au