From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: hideshow.el: permanent local variables Date: Fri, 02 Mar 2007 09:37:43 +0100 Message-ID: <85tzx49h2g.fsf@lola.goethe.zz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172824735 8235 80.91.229.12 (2 Mar 2007 08:38:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Mar 2007 08:38:55 +0000 (UTC) Cc: Glenn Morris , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 02 09:38:48 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 1HN3Hm-0000wR-Qu for ged-emacs-devel@m.gmane.org; Fri, 02 Mar 2007 09:38:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HN3Hm-0006D3-4H for ged-emacs-devel@m.gmane.org; Fri, 02 Mar 2007 03:38:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HN3Gz-00062s-Lo for emacs-devel@gnu.org; Fri, 02 Mar 2007 03:37:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HN3Gx-00062g-4r for emacs-devel@gnu.org; Fri, 02 Mar 2007 03:37:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HN3Gw-00062d-V2 for emacs-devel@gnu.org; Fri, 02 Mar 2007 03:37:50 -0500 Original-Received: from mail-in-12.arcor-online.net ([151.189.21.52]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HN3Gu-0006Lz-OT; Fri, 02 Mar 2007 03:37:49 -0500 Original-Received: from mail-in-01-z2.arcor-online.net (mail-in-11-z2.arcor-online.net [151.189.8.28]) by mail-in-12.arcor-online.net (Postfix) with ESMTP id B75CC4C8C4; Fri, 2 Mar 2007 09:37:44 +0100 (CET) Original-Received: from mail-in-10.arcor-online.net (mail-in-10.arcor-online.net [151.189.21.50]) by mail-in-01-z2.arcor-online.net (Postfix) with ESMTP id A4F5B3465AB; Fri, 2 Mar 2007 09:37:44 +0100 (CET) Original-Received: from lola.goethe.zz (dslb-084-061-009-095.pools.arcor-ip.net [84.61.9.95]) by mail-in-10.arcor-online.net (Postfix) with ESMTP id 746F52351A3; Fri, 2 Mar 2007 09:37:44 +0100 (CET) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 0A00D1C4D3B2; Fri, 2 Mar 2007 09:37:44 +0100 (CET) In-Reply-To: (Richard Stallman's message of "Fri\, 02 Mar 2007 03\:26\:15 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.94 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 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:67208 Archived-At: Richard Stallman writes: > hideshow.el gives several variables the permanent-local property: > > hs-minor-mode, hs-c-start-regexp, hs-block-start-regexp > hs-block-start-mdata-select, hs-block-end-regexp, hs-forward-sexp-func > hs-adjust-block-beginning > > I don't understand why this is desirable; indeed it leads to at least > one problem. > > The reason for giving something a `permanent-local' property is so it > will survive a change in major modes. > > I don't know what's going on hideshow, but is there some reason one > might want these settings to survive a change in major mode? > (It does seem unlikely.) Maybe something to do with mmm-mode? I don't know how this works in detail. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum