From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#48990: 28.0.50; buffer-local and threads malarkey Date: Sun, 13 Jun 2021 10:55:17 +0300 Message-ID: <83v96i6vx6.fsf@gnu.org> References: <87r1h68z90.fsf@dick> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25490"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48990@debbugs.gnu.org To: dick , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 13 09:56:09 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lsKyW-0006Vo-UG for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Jun 2021 09:56:08 +0200 Original-Received: from localhost ([::1]:42886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsKyV-00038U-ET for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Jun 2021 03:56:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsKyQ-00038I-3b for bug-gnu-emacs@gnu.org; Sun, 13 Jun 2021 03:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59246) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lsKyP-0004fZ-Se for bug-gnu-emacs@gnu.org; Sun, 13 Jun 2021 03:56:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lsKyP-0006tz-OY for bug-gnu-emacs@gnu.org; Sun, 13 Jun 2021 03:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Jun 2021 07:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48990 X-GNU-PR-Package: emacs Original-Received: via spool by 48990-submit@debbugs.gnu.org id=B48990.162357093426496 (code B ref 48990); Sun, 13 Jun 2021 07:56:01 +0000 Original-Received: (at 48990) by debbugs.gnu.org; 13 Jun 2021 07:55:34 +0000 Original-Received: from localhost ([127.0.0.1]:42559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsKxy-0006tI-4l for submit@debbugs.gnu.org; Sun, 13 Jun 2021 03:55:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsKxw-0006t6-KT for 48990@debbugs.gnu.org; Sun, 13 Jun 2021 03:55:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36532) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsKxq-00049w-22; Sun, 13 Jun 2021 03:55:26 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4804 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsKxo-0002F2-RP; Sun, 13 Jun 2021 03:55:26 -0400 In-Reply-To: <87r1h68z90.fsf@dick> (message from dick on Sat, 12 Jun 2021 19:00:27 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:208409 Archived-At: > From: dick > Date: Sat, 12 Jun 2021 19:00:27 -0400 > > # all good > src/emacs -Q --batch -l ./usurped.el > > # buffer-local causes let-bound variable to freak out > src/emacs -Q --batch --eval "(setq confuse-thread t)" -l ./usurped.el > > # buffer-local causes basic setq to freak out > src/emacs -Q --batch --eval "(setq confuse-main t)" -l ./usurped.el Please show the results you see in the 2 problematic cases, and please explain what did you expect instead and why. FWIW, I don't necessarily see anything surprising in the results: you basically let several threads step on each other's toes by modifying the same variable with non-deterministic relative timings. But maybe I'm missing something, which is why I ask for details. Or maybe Stefan could show me the light.