From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#5371: Priority of different kind of local variable bindings Date: Wed, 13 Jan 2010 16:50:25 +0100 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 1263399641 25273 80.91.229.12 (13 Jan 2010 16:20:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jan 2010 16:20:41 +0000 (UTC) Cc: 5371@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 13 17:20:34 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NV5ww-00035U-Sc for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jan 2010 17:20:03 +0100 Original-Received: from localhost ([127.0.0.1]:54763 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NV5wx-0000vG-GV for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jan 2010 11:20:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NV5wM-0000Je-FB for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2010 11:19:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NV5wF-0000Bl-Ag for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2010 11:19:23 -0500 Original-Received: from [199.232.76.173] (port=56625 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NV5wE-0000BR-Ob for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2010 11:19:18 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:7086) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NV5wE-0003rZ-4h for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2010 11:19:18 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NV5wD-0008FE-HB for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2010 11:19:17 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NV5Ur-0002z5-KX; Wed, 13 Jan 2010 10:51:01 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jan 2010 15:51:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5371 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5371-submit@debbugs.gnu.org id=B5371.126339785311461 (code B ref 5371); Wed, 13 Jan 2010 15:51:01 +0000 Original-Received: (at 5371) by debbugs.gnu.org; 13 Jan 2010 15:50:53 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NV5Ui-0002yo-NJ for submit@debbugs.gnu.org; Wed, 13 Jan 2010 10:50:52 -0500 Original-Received: from mail-fx0-f226.google.com ([209.85.220.226]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NV5Ug-0002yd-Oe for 5371@debbugs.gnu.org; Wed, 13 Jan 2010 10:50:51 -0500 Original-Received: by fxm26 with SMTP id 26so21353591fxm.39 for <5371@debbugs.gnu.org>; Wed, 13 Jan 2010 07:50:45 -0800 (PST) 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 :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=TPcr4fF4WJcQ8fIuI/0+ez8ScePQs/wufl/CU06XV8s=; b=nNKx+WfWINdK9uGunRi0xCwQ77fqOw7ubS+m+nPAb6Iced0mrv3UEjQHJndQ77je9L debuq00moFDdaC9D8dlZHPr/lHuqUAplhSRMew11Z+hIu4CkX8LFpkKVWVSRh1Gt0qd6 3G5t/ycg30tZ2whjIeUgmzKxFIJAB9wCrcnGQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=BkYSiOfSTleE1TaPPtMt41LblTtpG25gLrTC1NfyHDuYFHBeZb+bEkTIaLYabDewt6 W54kz09hCSLs1O5QbPa6JUMFDIULlj8u/T2Cl/V330eLyUId5GKdDlXZ+PtpJ9/SNI/r 12wdHO505fqhuFRnJuk4s9AqFUzazMt8ejdgY= Original-Received: by 10.239.134.142 with SMTP id 14mr1870376hbz.139.1263397845142; Wed, 13 Jan 2010 07:50:45 -0800 (PST) In-Reply-To: X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -2.9 (--) Resent-Date: Wed, 13 Jan 2010 10:51:01 -0500 X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:34277 Archived-At: On Wed, Jan 13, 2010 at 3:41 PM, Stefan Monnier wrote: >> I can't find a description in the manual of the priority of different >> kind of local variables. =C2=A0Can that please be added to the manual? > > What do you mean by "priority of different kind of local variables"? I just meant which value is active at a certain point. I saw a strange thing working with mumamo and the js.el problem, but I have not understod yet. I have kind of solved it, but I don't know why. Here is some code that perhaps is related. Look at the value at "ff". Is not that a bit surprising? (defun temp-var-display (where) (message "%s temp-var: u=3D%s, b=3D%s d=3D%s" where temp-var (buffer-local-value 'temp-var (current-buffer)) (default-value 'temp-var))) (defvar temp-var "global") (set (make-local-variable 'temp-var) "buffer-1") (temp-var-display "bb") (with-temp-buffer (set (make-local-variable 'temp-var) "buffer-2") (temp-var-display "cc") (let ((temp-var "let")) (temp-var-display "dd") (kill-local-variable 'temp-var) (temp-var-display "ff")) (temp-var-display "gg")) (temp-var-display "hh") (kill-local-variable 'temp-var) (temp-var-display "ii") bb temp-var: u=3Dbuffer-1, b=3Dbuffer-1 d=3Dglobal cc temp-var: u=3Dbuffer-2, b=3Dbuffer-2 d=3Dglobal dd temp-var: u=3Dlet, b=3Dlet d=3Dglobal ff temp-var: u=3Dglobal, b=3Dglobal d=3Dglobal gg temp-var: u=3Dglobal, b=3Dglobal d=3Dglobal hh temp-var: u=3Dbuffer-1, b=3Dbuffer-1 d=3Dglobal ii temp-var: u=3Dglobal, b=3Dglobal d=3Dglobal