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: permanent-local Date: Wed, 21 May 2008 13:44:14 -0400 Message-ID: References: <8EE46FD1-0A09-498C-BB0A-D19EC3EA0B5C@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211391931 30807 80.91.229.12 (21 May 2008 17:45:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 May 2008 17:45:31 +0000 (UTC) Cc: emacs- devel To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 21 19:46:07 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 1JysNY-0004Ni-TI for ged-emacs-devel@m.gmane.org; Wed, 21 May 2008 19:45:33 +0200 Original-Received: from localhost ([127.0.0.1]:48791 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JysMo-0002FJ-Nm for ged-emacs-devel@m.gmane.org; Wed, 21 May 2008 13:44:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JysMT-00027x-1n for emacs-devel@gnu.org; Wed, 21 May 2008 13:44:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JysMP-00026R-Cm for emacs-devel@gnu.org; Wed, 21 May 2008 13:44:24 -0400 Original-Received: from [199.232.76.173] (port=41318 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JysMP-00026K-7P for emacs-devel@gnu.org; Wed, 21 May 2008 13:44:21 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:49997) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JysMP-0004Ag-1t for emacs-devel@gnu.org; Wed, 21 May 2008 13:44:21 -0400 Original-Received: from ceviche.home (vpn-132-204-232-142.acd.umontreal.ca [132.204.232.142]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m4LHib9U014053 for ; Wed, 21 May 2008 13:44:37 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id A395DB422F; Wed, 21 May 2008 13:44:14 -0400 (EDT) In-Reply-To: <8EE46FD1-0A09-498C-BB0A-D19EC3EA0B5C@gmail.com> (David Reitter's message of "Wed, 21 May 2008 17:30:49 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3021=0 X-detected-kernel: by monty-python.gnu.org: 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:97485 Archived-At: > Is there a reason why we don't have > (put 'buffer-save-without-query 'permanent-local t) > ? > Shouldn't such variables be permanent-local unless set by a major mode? > I don't quite understand why this sort of behavior is a function of the > symbol (globally!) rather than of the value that is set: some major modes > may set something like `buffer-save-without-query', but it may also be set > buffer-locally by a minor mode. Yes, the `permanent-local' property is problematic every once in a while. Sometimes it's nil when you'd want it to non-nil and sometimes it's the opposite. Sadly it's a global setting and it's not clear how to make the choice finer grained. Maybe we could let `permanent-local' be not just a boolean but also something else that would describe which *values* are permanent local and which aren't. So we could set buffer-save-without-query to either t (not permanent-local) or `permanent' (behaves like t, but is permanent-local). In the case of buffer-save-without-query, I haven't seen enough uses to know what we should do: the only use I see (in type-break.el) shouldn't care either way. Stefan