From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Format-alist vs. minor mode Date: Fri, 01 Aug 2008 14:26:31 +0200 Message-ID: <489300F7.8000106@gmx.at> References: <20080801104547.GA13337@tomas> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1217593679 30673 80.91.229.12 (1 Aug 2008 12:27:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Aug 2008 12:27:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: tomas@tuxteam.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 01 14:28:49 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KOtk8-0004PL-5W for ged-emacs-devel@m.gmane.org; Fri, 01 Aug 2008 14:28:24 +0200 Original-Received: from localhost ([127.0.0.1]:51295 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOtjD-00063Z-5j for ged-emacs-devel@m.gmane.org; Fri, 01 Aug 2008 08:27:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KOtj6-00061B-HO for emacs-devel@gnu.org; Fri, 01 Aug 2008 08:27:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KOtj4-0005yF-LA for emacs-devel@gnu.org; Fri, 01 Aug 2008 08:27:19 -0400 Original-Received: from [199.232.76.173] (port=49705 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOtj4-0005y1-G2 for emacs-devel@gnu.org; Fri, 01 Aug 2008 08:27:18 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:55331) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KOtj4-0007H0-5B for emacs-devel@gnu.org; Fri, 01 Aug 2008 08:27:18 -0400 Original-Received: (qmail invoked by alias); 01 Aug 2008 12:27:16 -0000 Original-Received: from 62-47-48-198.adsl.highway.telekom.at (EHLO [62.47.48.198]) [62.47.48.198] by mail.gmx.net (mp051) with SMTP; 01 Aug 2008 14:27:16 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19efo5sU2ZeeobDEvBbC9ukU24szcTRLWJ40hDFGa A4uczacuNaoKi9 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <20080801104547.GA13337@tomas> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.78 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:101869 Archived-At: > It works at first, when the regexp is recognized the mode function is > called... but then "fundamental-mode" sets in, kills all local variables > and reverts the minor mode settings. I'm using an `after-change-major-mode-hook' but there are a couple of glitches. Look at the speck.el file I sent to emacs-sources a few days ago and search for `format-alist'. http://lists.gnu.org/archive/html/gnu-emacs-sources/2008-07/msg00018.html