From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "John Wiegley" Newsgroups: gmane.emacs.devel Subject: Re: Propagating local variables? Date: Wed, 16 May 2018 11:59:06 -0700 Message-ID: References: <87fu2se06r.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1526498855 21333 195.159.176.226 (16 May 2018 19:27:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 16 May 2018 19:27:35 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 16 21:27:31 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJ25D-0005P2-7K for ged-emacs-devel@m.gmane.org; Wed, 16 May 2018 21:27:31 +0200 Original-Received: from localhost ([::1]:35206 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ27F-0000NS-CL for ged-emacs-devel@m.gmane.org; Wed, 16 May 2018 15:29:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ1dp-0000j3-V3 for emacs-devel@gnu.org; Wed, 16 May 2018 14:59:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJ1dm-0003v9-Sv for emacs-devel@gnu.org; Wed, 16 May 2018 14:59:14 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60425) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ1dm-0003uz-P0; Wed, 16 May 2018 14:59:10 -0400 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:45065) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1fJ1dm-0008JG-Fx; Wed, 16 May 2018 14:59:10 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 06D0C22496; Wed, 16 May 2018 14:59:10 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 16 May 2018 14:59:10 -0400 X-ME-Sender: Original-Received: from localhost (76-234-69-149.lightspeed.frokca.sbcglobal.net [76.234.69.149]) by mail.messagingengine.com (Postfix) with ESMTPA id 9CCAD1025E; Wed, 16 May 2018 14:59:09 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Wed, 16 May 2018 13:34:41 -0400") Mail-Followup-To: Stefan Monnier , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:225348 Archived-At: >>>>> "SM" == Stefan Monnier writes: SM> I think most other "multi-buffer" packages tend to treat one of their SM> buffers as a kind of "master" and have all others point to it, so they can SM> lookup shared local variables via something like (buffer-local-value SM> my-parent-buffer 'varname). If you're the author of all the code that relates to that buffer, sure. But I can't expect shell.el to reference the buffer-local `process-environment' of my Coq buffer in order to setup the right PATH for that project-specific sub-shell. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2