From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: question about permanent-local Date: Thu, 25 Jun 2009 00:51:28 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1245884789 21708 80.91.229.12 (24 Jun 2009 23:06:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jun 2009 23:06:29 +0000 (UTC) Cc: Drew Adams , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 25 01:06:22 2009 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 1MJbXn-0005Zb-Pu for ged-emacs-devel@m.gmane.org; Thu, 25 Jun 2009 01:06:20 +0200 Original-Received: from localhost ([127.0.0.1]:34276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJbXn-00064X-9d for ged-emacs-devel@m.gmane.org; Wed, 24 Jun 2009 19:06:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJbJe-0001fu-Uv for emacs-devel@gnu.org; Wed, 24 Jun 2009 18:51:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJbJT-0001OA-BI for emacs-devel@gnu.org; Wed, 24 Jun 2009 18:51:38 -0400 Original-Received: from [199.232.76.173] (port=46043 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJbJS-0001NV-3h for emacs-devel@gnu.org; Wed, 24 Jun 2009 18:51:30 -0400 Original-Received: from mail-fx0-f223.google.com ([209.85.220.223]:34251) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MJbJR-0008DK-JQ for emacs-devel@gnu.org; Wed, 24 Jun 2009 18:51:29 -0400 Original-Received: by fxm23 with SMTP id 23so1084229fxm.42 for ; Wed, 24 Jun 2009 15:51:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=+meOFW8G0oNQQp671P1RFiDkJ3AR2w4/J+g9hFyL2tA=; b=R20fyS5T2BT/UibcbyVeajXWVzabhodhkGIcnXpHfSgOih4/y99M/fY3V7EYyzX7Qy BvcG2GrBMwGkqZQvKdBeSd1S/5PD55ay8kMZTrl6i9H6jdoLNG7uq2arFb3ybc6MCCrz FiXjorcSytSi+6kjQGukfKsXjZ0Qh1jyeb/o0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Y2qMCRMclq4zDEU3bJ2vUEMFwUNVFWIyRPLhB2xwLqcWQmlItKtGEyeTQzoxV+svaM dzcf9V2Af/h0tQiIkapY14yMvMIkhPHOnRgF4/CqIQuMAHLOUWILR9xAGDzW5WTgMhYh enCdcmvHX5ihqUAecT8Xb+V70fqtjDL+K+t6g= Original-Received: by 10.239.155.10 with SMTP id g10mr157712hbc.20.1245883888508; Wed, 24 Jun 2009 15:51:28 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:111702 Archived-At: On Wed, Jun 24, 2009 at 11:18 PM, Stefan Monnier wrote: >> What I'm getting at is this: isn't there a use case for something more >> fine-grained that just putting `permanent-local' on the symbol, which >> inhibits killing in _all_ buffers? > > Yes, there are such use cases, but until now they've been sufficiently > rare that we don't have enough experience to know what alternative might > be useful. =C2=A0There's only one exception: for buffer-local hooks, we h= ave > now refined the permanent-local property so it can apply to specific > entries on a hook rather than the hook as a whole. This was added because it was useful for multi major modes (like mumamo). There are definitely other cases there where more refinements can be very useful. However I am leaning towards that the long term solution will include a light weight buffer concept too. That would be a "buffer without a buffer", it should just hold "local" variables associated with a major mode in some way. (I wrote "local" because it will not be exactly equal to buffer local variables.)