From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Feature request: permanent-local values in hooks buffer local values Date: Mon, 03 Dec 2007 23:56:02 -0500 Message-ID: References: <475439BD.7070000@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 1196744179 21835 80.91.229.12 (4 Dec 2007 04:56:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Dec 2007 04:56:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 04 05:56:27 2007 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 1IzPpa-0003Uo-Hj for ged-emacs-devel@m.gmane.org; Tue, 04 Dec 2007 05:56:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzPpI-0001Ap-Nk for ged-emacs-devel@m.gmane.org; Mon, 03 Dec 2007 23:56:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IzPpF-00019J-He for emacs-devel@gnu.org; Mon, 03 Dec 2007 23:56:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IzPpD-00018K-WF for emacs-devel@gnu.org; Mon, 03 Dec 2007 23:56:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzPpD-00018C-PX for emacs-devel@gnu.org; Mon, 03 Dec 2007 23:56:03 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IzPpD-0000UH-BR for emacs-devel@gnu.org; Mon, 03 Dec 2007 23:56:03 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IzPpC-0008VA-Lo; Mon, 03 Dec 2007 23:56:02 -0500 In-reply-to: <475439BD.7070000@gmail.com> (lennart.borgman@gmail.com) 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:84630 Archived-At: For buffer local values of hooks you can perhaps use that, but it probably does not do what you want. Some functions in a hook should survive changing major mode (for the same reasons that variables should do it), but other should not. Could somehow a feature be added to hooks that fulfills the need I have sketched above? Isn't change-major-mode-hook sufficient to take care of this need?