From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.bugs
Subject: bug#26624: 26.0.50;
Generalized variable `buffer-local-value' does't restore local flag
Date: Sun, 23 Apr 2017 19:13:40 +0200
Message-ID:
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: blaine.gmane.org 1492967649 26132 195.159.176.226 (23 Apr 2017 17:14:09 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sun, 23 Apr 2017 17:14:09 +0000 (UTC)
To: 26624@debbugs.gnu.org
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 23 19:14:05 2017
Return-path:
Envelope-to: geb-bug-gnu-emacs@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 1d2L5J-0006hP-DS
for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Apr 2017 19:14:05 +0200
Original-Received: from localhost ([::1]:39980 helo=lists.gnu.org)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from )
id 1d2L5O-0008BJ-TN
for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Apr 2017 13:14:10 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33572)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1d2L5I-0008BC-6T
for bug-gnu-emacs@gnu.org; Sun, 23 Apr 2017 13:14:05 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1d2L5H-0002cY-5F
for bug-gnu-emacs@gnu.org; Sun, 23 Apr 2017 13:14:04 -0400
Original-Received: from debbugs.gnu.org ([208.118.235.43]:38477)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1d2L5H-0002cS-10
for bug-gnu-emacs@gnu.org; Sun, 23 Apr 2017 13:14:03 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
(envelope-from ) id 1d2L5G-0006p4-N7
for bug-gnu-emacs@gnu.org; Sun, 23 Apr 2017 13:14:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Philipp Stephani
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sun, 23 Apr 2017 17:14:02 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 26624
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
X-Debbugs-Original-To: bug-gnu-emacs@gnu.org
Original-Received: via spool by submit@debbugs.gnu.org id=B.149296763726205
(code B ref -1); Sun, 23 Apr 2017 17:14:02 +0000
Original-Received: (at submit) by debbugs.gnu.org; 23 Apr 2017 17:13:57 +0000
Original-Received: from localhost ([127.0.0.1]:36676 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1d2L5B-0006ob-BV
for submit@debbugs.gnu.org; Sun, 23 Apr 2017 13:13:57 -0400
Original-Received: from eggs.gnu.org ([208.118.235.92]:42579)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1d2L5A-0006oP-Jq
for submit@debbugs.gnu.org; Sun, 23 Apr 2017 13:13:56 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1d2L54-0002au-AO
for submit@debbugs.gnu.org; Sun, 23 Apr 2017 13:13:51 -0400
Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35398)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
(Exim 4.71) (envelope-from )
id 1d2L54-0002an-6T
for submit@debbugs.gnu.org; Sun, 23 Apr 2017 13:13:50 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33548)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1d2L52-0008Ao-UN
for bug-gnu-emacs@gnu.org; Sun, 23 Apr 2017 13:13:50 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1d2L51-0002aL-OW
for bug-gnu-emacs@gnu.org; Sun, 23 Apr 2017 13:13:48 -0400
Original-Received: from mail-wr0-x22e.google.com ([2a00:1450:400c:c0c::22e]:34508)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1d2L51-0002aB-HA
for bug-gnu-emacs@gnu.org; Sun, 23 Apr 2017 13:13:47 -0400
Original-Received: by mail-wr0-x22e.google.com with SMTP id z109so79272177wrb.1
for ; Sun, 23 Apr 2017 10:13:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:subject:date:message-id:mime-version;
bh=StsOyRXo8alpcn9y5SrRCYm89uJ3bbGvV3N6+zMB/yI=;
b=UQBzRB0lGMxyR3qjpHJ3SU0zw78RwRRPEUcdyD+A0SYasXn8wZNKGDUuYSXz4ErQvy
AT9STDNQn5ryRvPyYHgCk2+2sffOZBcYB6/U4dULUPQdzlWCxGxyyPTp44EO+uh6gf7w
G/JCkq1e60aMmdeoFI7ldaq/RAaUZTFqLjfq5mOMzBnsc/1vyhqpqlOn5aD368e/8iFB
jitv/B/UeQOWxqX2sJHifeDXGc/ZukJh2TANKKDNDnpCHK5GICs7tNvNAhpi5jMNDF8E
So3oX11j3sMzypksw6LVGZUWNFa5OKI2hWk+0Wztsy1lNgJgMHFeP9/bX6hR+ShvFHmw
xfAg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
bh=StsOyRXo8alpcn9y5SrRCYm89uJ3bbGvV3N6+zMB/yI=;
b=GqdmY7k1jnIdJL5oWsoPMz94L2AkPn/jhh4QCIjqXoUOOA2zgsF8BPfUQLIR7CKO1o
ze22F9gYimaXPtffhrVePKsncCO+00RosZMf22BeHE4kjb7QtNG5rLq2qdQndGX2BTZY
9Ds2RlfgbD9JzoJRyisg+7Joz/5nk0GAqz7V5D2EnTyO+1Z4+uXgAN6xlg+fqtIed5OT
bJNdvI2V6EAp/i7xUTWk4jVf6yfnokysKaDKdBTZAXlXTnSaJcgCvsPR2C+rALweUzXq
3PaHZQ4/OzwL8Op8tOWbajP/tiICVkHK0NowwRqFnGUk8bpqX4T2X9MXqGiqBeqajC63
II+A==
X-Gm-Message-State: AN3rC/7JeaJOkMOKn/bymFEl9Y37XA7WoGq2wZ/KQ2Ndz2gBpWWNt3n/
NAa7BuNxGEbs6fGkwv+oSQ==
X-Received: by 10.223.148.97 with SMTP id 88mr2766428wrq.174.1492967626152;
Sun, 23 Apr 2017 10:13:46 -0700 (PDT)
Original-Received: from p ([2001:4c50:25f:c000:48e6:d722:5002:bf77])
by smtp.gmail.com with ESMTPSA id
k90sm9996382wmi.26.2017.04.23.10.13.44 for
(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
Sun, 23 Apr 2017 10:13:45 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 208.118.235.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"
Xref: news.gmane.org gmane.emacs.bugs:131911
Archived-At:
In *scratch*, evaluate:
(defvar foo-test-var nil)
(with-temp-buffer
(list (list (buffer-local-value 'foo-test-var (current-buffer))
(local-variable-p 'foo-test-var)
(local-variable-if-set-p 'foo-test-var))
(cl-letf (((buffer-local-value 'foo-test-var (current-buffer)) 123))
(list (buffer-local-value 'foo-test-var (current-buffer))
(local-variable-p 'foo-test-var)
(local-variable-if-set-p 'foo-test-var)))
(list (buffer-local-value 'foo-test-var (current-buffer))
(local-variable-p 'foo-test-var)
(local-variable-if-set-p 'foo-test-var))))
The result is:
((nil nil nil) (123 t t) (nil t t))
But expected is:
((nil nil nil) (123 t t) (nil nil nil))
i.e. the local flag of the variable should be reset.
In GNU Emacs 26.0.50 (build 19, x86_64-apple-darwin16.5.0, NS appkit-1504.82 Version 10.12.4 (Build 16E195))
of 2017-04-23 built on p
Repository revision: a1f93c1dfa53dbe007faa09ab0c6e913e86e3ffe
Windowing system distributor 'Apple', version 10.3.1504
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Configured using:
'configure --without-xml2 --with-modules --without-pop --with-mailutils
--enable-checking --enable-check-lisp-object-type 'CFLAGS=-ggdb3 -O0'
MAKEINFO=/usr/local/opt/texinfo/bin/makeinfo'
Configured features:
RSVG DBUS NOTIFY ACL GNUTLS ZLIB TOOLKIT_SCROLL_BARS NS MODULES
Important settings:
value of $LANG: de_DE.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message subr-x puny seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg
epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win
ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset
image regexp-opt fringe tabulated-list replace newcomment text-mode
elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow
isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu
font-core term/tty-colors frame cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote dbusbind kqueue cocoa ns multi-tty make-network-process emacs)
Memory information:
((conses 16 203864 9733)
(symbols 48 19974 1)
(miscs 40 57 190)
(strings 32 18048 4861)
(string-bytes 1 589547)
(vectors 16 34976)
(vector-slots 8 701022 3277)
(floats 8 52 66)
(intervals 56 199 0)
(buffers 976 11))