From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: hideshow.el: permanent local variables Date: Fri, 02 Mar 2007 10:49:37 -0500 Message-ID: References: <85tzx49h2g.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172850669 2440 80.91.229.12 (2 Mar 2007 15:51:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Mar 2007 15:51:09 +0000 (UTC) Cc: Glenn Morris , rms@gnu.org, emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 02 16:51:02 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 1HNA1z-0004a3-GJ for ged-emacs-devel@m.gmane.org; Fri, 02 Mar 2007 16:50:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HNA1z-000150-4E for ged-emacs-devel@m.gmane.org; Fri, 02 Mar 2007 10:50:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HNA13-00085D-Km for emacs-devel@gnu.org; Fri, 02 Mar 2007 10:49:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HNA11-000821-Py for emacs-devel@gnu.org; Fri, 02 Mar 2007 10:49:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HNA11-00081u-Ej for emacs-devel@gnu.org; Fri, 02 Mar 2007 10:49:51 -0500 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HNA0t-0003S2-3x; Fri, 02 Mar 2007 10:49:43 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 9D6182CF21C; Fri, 2 Mar 2007 10:49:42 -0500 (EST) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 814D13FE2; Fri, 2 Mar 2007 10:49:37 -0500 (EST) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 69D8A6C805; Fri, 2 Mar 2007 10:49:37 -0500 (EST) In-Reply-To: <85tzx49h2g.fsf@lola.goethe.zz> (David Kastrup's message of "Fri\, 02 Mar 2007 09\:37\:43 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: Linux 2.6 (newer, 3) 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:67226 Archived-At: >> 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. I don't think it's got to do with mmm-mode (it might even predate it). More likely it was just an arbitrary decision. I believe hs-minor-mode should not be permanent. Just like outline-minor-mode. Stefan PS: Note, that if you remove the permanent-local property from these variables, then you have to add a change-major-mode-hook to turn off the minor-mode explicitly (so that it erases the overlays).