unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: dick <dick.r.chiang@gmail.com>
Cc: 48990@debbugs.gnu.org
Subject: bug#48990: 28.0.50; buffer-local and threads malarkey
Date: Tue, 28 Sep 2021 23:28:47 -0400	[thread overview]
Message-ID: <jwvfstovz7j.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87r1h68z90.fsf@dick> (dick's message of "Sat, 12 Jun 2021 19:00:27 -0400")

> # buffer-local causes let-bound variable to freak out
> src/emacs -Q --batch --eval "(setq confuse-thread t)" -l ./usurped.el

I get:

    failed in thread#1, var is local-4
    failed in thread#2, var is local-4
    failed in thread#3, var is local-4
    failed in thread#0, var is local-4
    succeeded in thread#4, var is let

which indeed is quite wrong, since the thread let-binds `doomsday` to
"let" and then doesn't mutate it anywhere.

Sounds like a bug in the context switch code.


        Stefan






  parent reply	other threads:[~2021-09-29  3:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-12 23:00 bug#48990: 28.0.50; buffer-local and threads malarkey dick
2021-06-13  7:55 ` Eli Zaretskii
2021-09-29  3:28 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-09-29 11:51   ` dick
2021-09-29 12:49     ` dick
2022-02-12 20:28     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-12 22:58       ` dick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvfstovz7j.fsf-monnier+emacs@gnu.org \
    --to=bug-gnu-emacs@gnu.org \
    --cc=48990@debbugs.gnu.org \
    --cc=dick.r.chiang@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).