GNU bug report logs -
#20521
Viper version is 3.14.2 of July 4, 2013; After some hours of use I don't enter viper mode automatically on new files
Previous Next
Full log
Message #17 received at 20521 <at> debbugs.gnu.org (full text, mbox):
I shouldn't have used the term "global". I meant "default". If the variable is buffer-local then setq should set the buffer-local value and *not* the default value.
In this situation is looks like setq is *sometimes* setting the default value 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 <at> gmail.com]
Sent: Friday, May 15, 2015 2:08 PM
To: Alan Morgan
Cc: 20521 <at> 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!
> 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
> how this is possible and, now that I've uncovered this, I'm not sure
> 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
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. No representation is made on its accuracy or completeness of the information contained in this electronic message. Certain assumptions may have been made in the preparation of this material as at this date, and are subject to change without notice. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail and any attachment(s) is strictly prohibited. Please reply to the sender at NextLabs Inc and destroy all copies of this message and any attachments from your system. ======================================================================
This bug report was last modified 3 years and 104 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.