From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.devel Subject: Re: enriched-mode problems Date: Wed, 15 Jun 2005 20:30:22 +0200 Message-ID: References: <20050615.070838.116346726.wl@gnu.org> <87u0jzsr9i.fsf@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1118860143 16295 80.91.229.2 (15 Jun 2005 18:29:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Jun 2005 18:29:03 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 15 20:29:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DiccX-0000VH-A0 for ged-emacs-devel@m.gmane.org; Wed, 15 Jun 2005 20:28:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dichn-00034Y-AF for ged-emacs-devel@m.gmane.org; Wed, 15 Jun 2005 14:33:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DichG-0002wX-Nn for emacs-devel@gnu.org; Wed, 15 Jun 2005 14:33:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DichC-0002v6-Uo for emacs-devel@gnu.org; Wed, 15 Jun 2005 14:33:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DichC-0002uU-Pp for emacs-devel@gnu.org; Wed, 15 Jun 2005 14:33:02 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DichS-0000uv-Rv for emacs-devel@gnu.org; Wed, 15 Jun 2005 14:33:19 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Dicaa-0000Af-Jh for emacs-devel@gnu.org; Wed, 15 Jun 2005 20:26:14 +0200 Original-Received: from dialin-212-144-212-106.arcor-ip.net ([212.144.212.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jun 2005 20:26:12 +0200 Original-Received: from angeli by dialin-212-144-212-106.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jun 2005 20:26:12 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 28 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dialin-212-144-212-106.arcor-ip.net User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:3fgwRNLfVBi1o3OBrJPMcK1ZklY= 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:38902 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38902 * Stefan Monnier (2005-06-15) writes: >> turning a mode on. Another possibility could be to recognize mode >> variables and call the respective mode functions with the given values >> if they are encountered. > > That would be good. Actually a t value of the variable might have to be mapped to a value of 1 for the function argument and nil to 0 or -1. > Especially since it would solve the problem where you > can't both specify "text-mode" and "flyspell-mode" at the same time (IIRC > the first mode spec which changes the major mode prevents further mode > specs from being considered, but placing flyspell-mode before text-mode > makes no sense since text-mode turns off flylspell-mode). Hm, upon opening a file with name "test" and the contents Local Variables: mode: text mode: flyspell End: both modes are active. -- Ralf