From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Morgan Newsgroups: gmane.emacs.bugs Subject: bug#20521: Bug 2051 Date: Fri, 15 May 2015 14:51:25 -0700 Message-ID: <0DBA2ACE64E8894F80DEC59F1EB9BE23048E1E554776@NXT-EXCH.nextlabs.com> References: <0DBA2ACE64E8894F80DEC59F1EB9BE23048E1E554241@NXT-EXCH.nextlabs.com> <0DBA2ACE64E8894F80DEC59F1EB9BE23048E1E55476B@NXT-EXCH.nextlabs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1431726744 13320 80.91.229.3 (15 May 2015 21:52:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 May 2015 21:52:24 +0000 (UTC) Cc: "20521@debbugs.gnu.org" <20521@debbugs.gnu.org> To: Nick Andryshak Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 15 23:52:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YtNWd-0002T0-G0 for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 May 2015 23:52:11 +0200 Original-Received: from localhost ([::1]:33079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtNWc-0006jP-R7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 May 2015 17:52:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtNWY-0006gO-2t for bug-gnu-emacs@gnu.org; Fri, 15 May 2015 17:52:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YtNWU-0007KC-Tp for bug-gnu-emacs@gnu.org; Fri, 15 May 2015 17:52:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36566) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtNWU-0007Jl-RL for bug-gnu-emacs@gnu.org; Fri, 15 May 2015 17:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YtNWU-00022n-JB for bug-gnu-emacs@gnu.org; Fri, 15 May 2015 17:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Morgan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 May 2015 21:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20521 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 20521-submit@debbugs.gnu.org id=B20521.14317266937819 (code B ref 20521); Fri, 15 May 2015 21:52:02 +0000 Original-Received: (at 20521) by debbugs.gnu.org; 15 May 2015 21:51:33 +0000 Original-Received: from localhost ([127.0.0.1]:46541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YtNW0-000222-SP for submit@debbugs.gnu.org; Fri, 15 May 2015 17:51:33 -0400 Original-Received: from mail1.bemta8.messagelabs.com ([216.82.243.209]:57691) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YtNVy-00021r-0c for 20521@debbugs.gnu.org; Fri, 15 May 2015 17:51:31 -0400 Original-Received: from [216.82.242.19] by server-17.bemta-8.messagelabs.com id 2B/39-02796-16A66555; Fri, 15 May 2015 21:51:29 +0000 X-Env-Sender: Alan.Morgan@nextlabs.com X-Msg-Ref: server-4.tower-191.messagelabs.com!1431726688!10909755!1 X-Originating-IP: [50.206.94.99] X-StarScan-Received: X-StarScan-Version: 6.13.15; banners=nextlabs.com,-,- X-VirusChecked: Checked Original-Received: (qmail 1242 invoked from network); 15 May 2015 21:51:28 -0000 Original-Received: from 50-206-94-99-static.hfc.comcastbusiness.net (HELO mail.nextlabs.com) (50.206.94.99) by server-4.tower-191.messagelabs.com with AES128-SHA encrypted SMTP; 15 May 2015 21:51:28 -0000 Original-Received: from NXT-EXCH.nextlabs.com ([169.254.1.117]) by nxt-exchfe01.nextlabs.com ([10.187.2.93]) with mapi; Fri, 15 May 2015 14:51:27 -0700 Thread-Topic: bug#20521: Bug 2051 Thread-Index: AdCPU1JrkQH1FFQUSWSVmb3hMUs0UAABbDNw In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:102848 Archived-At: I shouldn't have used the term "global". I meant "default". If the variabl= e is buffer-local then setq should set the buffer-local value and *not* th= e default value. In this situation is looks like setq is *sometimes* setting the default va= lue of a buffer local variable. setq-local is the same as calling make-local-variable followed by setq Alan -----Original Message----- From: Nick Andryshak [mailto:nandryshak@gmail.com]=20 Sent: Friday, May 15, 2015 2:08 PM To: Alan Morgan Cc: 20521@debbugs.gnu.org Subject: Re: bug#20521: Bug 2051 > How on Earth? Perhaps setq is broken. That's really not something you should say lightly!=20 > Perhaps we aren't actually *in* a buffer when setq is called (is that > possible?) and thus the global value is being set. I don't understand=20= > how this is possible and, now that I've uncovered this, I'm not sure=20 > what I can do to fix it. I think you may misunderstand: setq always sets a global variable. Perhaps you want to use setq-local? See: http://www.gnu.org/software/emacs/manual/html_node/elisp/Global-Variables.= html - Nick ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. ______________________________________________________________________ --------------------------------------------------------------------- STATEMENT OF CONFIDENTIALITY =20 The information contained in this electronic message and any attachments t= o this message are intended for the exclusive use of the addressee(s) and = may contain confidential or privileged information. No representation is m= ade on its accuracy or completeness of the information contained in this e= lectronic message. Certain assumptions may have been made in the preparati= on of this material as at this date, and are subject to change without not= ice. If you are not the intended recipient, you are hereby notified that a= ny dissemination, distribution or copying of this e-mail and any attachmen= t(s) is strictly prohibited. Please reply to the sender=20at NextLabs Inc = and destroy all copies of this message and any attachments from your syste= m. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D