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#63253: 29.0.90; with-delayed-message fails in combination with inhibit-message Date: Mon, 08 May 2023 17:55:08 +0300 Message-ID: <837ctidgab.fsf@gnu.org> References: <87r0rxdwc8.fsf@daniel-mendler.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23799"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mail@daniel-mendler.de, 63253@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 08 16:55:34 2023 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 1pw2Gz-0005w6-Lr for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 May 2023 16:55:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pw2GV-0005Iy-JZ; Mon, 08 May 2023 10:55:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pw2GU-0005IF-3d for bug-gnu-emacs@gnu.org; Mon, 08 May 2023 10:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pw2GT-0003u9-Rj for bug-gnu-emacs@gnu.org; Mon, 08 May 2023 10:55:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pw2GT-0002EQ-N6 for bug-gnu-emacs@gnu.org; Mon, 08 May 2023 10:55: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: Mon, 08 May 2023 14:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63253 X-GNU-PR-Package: emacs Original-Received: via spool by 63253-submit@debbugs.gnu.org id=B63253.16835576828489 (code B ref 63253); Mon, 08 May 2023 14:55:01 +0000 Original-Received: (at 63253) by debbugs.gnu.org; 8 May 2023 14:54:42 +0000 Original-Received: from localhost ([127.0.0.1]:41298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pw2GA-0002Cq-7N for submit@debbugs.gnu.org; Mon, 08 May 2023 10:54:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pw2G7-0002Cc-SO for 63253@debbugs.gnu.org; Mon, 08 May 2023 10:54:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pw2Fu-0003lX-Fs; Mon, 08 May 2023 10:54:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=sOhW/XukgnN9r5TAIXLNbTQE1DVXdgXvSkUo7BH5yUQ=; b=Sjr42dRNKeGH 4RGC+tjJwQ7qtDQ6BowefG/N43a4zAelIQg+NqCMMkNSGAdBDTH4AHFXscC1FsbFTDPBLrZgzSquz 7bwmP0QhF0wkPC98c8Gk+JYzrT3cy5a4uyzDEdSVbaF+kmY0dewwl0E6mHUayToEdVANj2NnLuniK kMxEykpXHHVrxjLZIP+fHlSsAmYP9VzpAVLCqiOWZr9zBvRiEutbGfR8Lt+/28xJCX11I7D5WYeDg MA6Vk6709z/r3oRVqzj2kvhMIwk4IgPzrsbOLzqXtwFQVtNtgJ29RYCU7N0wCt/sQ0pjZA4EW0lQG 5wVepk4AdpfDGw2wViKWNw==; Original-Received: from [87.69.77.57] (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 1pw2Fb-0002Um-JK; Mon, 08 May 2023 10:54:25 -0400 In-Reply-To: (bug-gnu-emacs@gnu.org) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261330 Archived-At: > Cc: 63253@debbugs.gnu.org > Date: Mon, 08 May 2023 09:54:35 -0400 > From: Stefan Monnier via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > There seems to exist an interaction issue of `with-delayed-message' with > > `inhibit-message'. > > Very much so, indeed. The issue is fundamentally linked to > `set-message-function`: > > `with-delayed-message` calls `message3` (via > `with_delayed_message_display`) from an "atimer", i.e. a thing that can > be run from `process_pending_signals`, `unblock_input`, `maybe_quit`, ... > > AFAIK these are places where it's safe to run some C code, but not > places where it's safe to run arbitrary ELisp code. > > So `set-message-function` is "dangerous" because it runs ELisp code from > `message3` => `message3_nolog` => `set_message`. So I guess we need to have run_timers bind some variable, and then in set_message, if that variable is non-nil, we should avoid calling functions from set-message-function?