From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: Specifying mode in file variables trouble Date: Tue, 23 Sep 2008 15:47:42 -0400 Message-ID: References: <48D44761.6000809@gmail.com> <87ljxny6n8.fsf@catnip.gol.com> <48D44C79.9020004@gmail.com> <48D63F30.8060102@gmail.com> <48D6E8FB.4070108@gmail.com> <48D79A25.7050000@gmail.com> <48D8BD92.5080403@gmail.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1222199520 11883 80.91.229.12 (23 Sep 2008 19:52:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Sep 2008 19:52:00 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 23 21:52:57 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 1KiDwI-0002z8-Ax for ged-emacs-devel@m.gmane.org; Tue, 23 Sep 2008 21:52:50 +0200 Original-Received: from localhost ([127.0.0.1]:45994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KiDvG-0004D7-Db for ged-emacs-devel@m.gmane.org; Tue, 23 Sep 2008 15:51:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KiDtM-0002vR-0A for emacs-devel@gnu.org; Tue, 23 Sep 2008 15:49:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KiDtL-0002v6-Ap for emacs-devel@gnu.org; Tue, 23 Sep 2008 15:49:47 -0400 Original-Received: from [199.232.76.173] (port=34483 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KiDtL-0002uy-3D for emacs-devel@gnu.org; Tue, 23 Sep 2008 15:49:47 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:58075) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KiDtK-0004kB-UX for emacs-devel@gnu.org; Tue, 23 Sep 2008 15:49:47 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KiDrK-0007Oq-EV; Tue, 23 Sep 2008 15:47:42 -0400 In-reply-to: <48D8BD92.5080403@gmail.com> (lennart.borgman@gmail.com) X-detected-operating-system: by monty-python.gnu.org: GNU/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:104073 Archived-At: How about the solutin I sent with mumamo-save-buffer-locals and dito restore? I suggested something like this That is a proposed _mechanism_. Another mechanism which might be to put properties on the variables that control minor modes. Or perhaps just on per-buffer minor modes (the ones that are not normally global). By scanning buffer-local-variables and checking for that property, you could find all the minor modes that are set in a given buffer. The mechanism is just part of this. We also need an interface. There are lots of minor mode definitions, and we want them to be simple and clean. So please propose a change in minor mode definitions so as to do the job. Then we can evaluate it and maybe propose better alternatives. I have no idea what delayed-mode-hooks is used for so I do not know if setting delay-mode-hooks to nil may cause problems here. Please read the doc of the macro `delay-mode-hooks' to learn what this does.