From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#63253: 29.0.90; with-delayed-message fails in combination with inhibit-message Date: Thu, 11 May 2023 11:00:28 -0400 Message-ID: References: <87r0rxdwc8.fsf@daniel-mendler.de> <837ctidgab.fsf@gnu.org> <831qjqdcz9.fsf@gnu.org> <838rdwa12j.fsf@gnu.org> <83r0ro6v90.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40407"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: mail@daniel-mendler.de, larsi@gnus.org, 63253@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 11 17:01:13 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 1px7n6-000AKi-6Y for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 May 2023 17:01:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1px7my-0001Cq-05; Thu, 11 May 2023 11:01:04 -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 1px7mw-0001Ce-Gg for bug-gnu-emacs@gnu.org; Thu, 11 May 2023 11:01: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 1px7mw-0008Ud-8b for bug-gnu-emacs@gnu.org; Thu, 11 May 2023 11:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1px7mw-0003Tv-3a for bug-gnu-emacs@gnu.org; Thu, 11 May 2023 11:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 May 2023 15:01:02 +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.168381724513352 (code B ref 63253); Thu, 11 May 2023 15:01:02 +0000 Original-Received: (at 63253) by debbugs.gnu.org; 11 May 2023 15:00:45 +0000 Original-Received: from localhost ([127.0.0.1]:53134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1px7mf-0003TI-Fc for submit@debbugs.gnu.org; Thu, 11 May 2023 11:00:45 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:41964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1px7md-0003T2-H4 for 63253@debbugs.gnu.org; Thu, 11 May 2023 11:00:43 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 9278980F27; Thu, 11 May 2023 11:00:37 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 45A9780148; Thu, 11 May 2023 11:00:36 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1683817236; bh=orDoEEI5safiYgraXkSyM/yuzMnlqSkEb9HZpkvETIQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=IWYCRVMqydYArY0MVTTKGgbHZtphNqsNDav8P7g9EHN7H3S+a2D/ibYaBKhBTVOiC U73qJyZxBge8J3XBnAewzMQSnnjGB/RdSEn2LhFF1TOr0EK1c/v1P3332K1HOyVVoF MbrVH4O6y5u/rcrHi+abSWyW5lEBftxOgT2to1tacZxs0NVJsptT1cOOUzOHx/30/W PcDag0CA+Cfiode7CzLnR0Tgmvzz9jTHSWcxdK9sizzKgC0lnDP8MojwzQ8DW97QKE jgooyK6gOIrPtSmbkZUeq6z//9NKtU3iSau6qJOoLXVn9ajWPPd3E1MJ280gcioB3m 12sWVLTgVPwqw== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 35A0C1209EE; Thu, 11 May 2023 11:00:36 -0400 (EDT) In-Reply-To: <83r0ro6v90.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 10 May 2023 18:50:35 +0300") 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:261575 Archived-At: >> Hmm... I think "customizing `set-message-function` for delayed messages" >> is actually desirable > > Why? we use that for a single facility, which has a well-defined > purpose: show an echo-area message if BODY takes longer than some > time. Why do we have to allow customization of the message displayed > by this facility? We still want that message to be moved to the end of the minibuffer when that minibuffer is active, and users may still want to be able to silence some of those messages. >> (which is why I left a FIXME in my patch). >> So I regard the new behavior as a bug, just one that is hopefully less >> severe than the problem it intends to avoid. > How you envision that FIXME to be fixed, if atimers cannot safely run > any Lisp? Apparently, we do run ELisp code from `maybe_quit` via the GUI's event handling (according to Po Lu, not just under macOS but also under X11), so maybe we should strive to make it "safe" to run ELisp from `maybe_quit` (and hence atimers). It's inherently dangerous since it amounts to preemptive concurrency, so by "safe" I mean that we should strive to make it safe with some side-conditions about the risks of concurrency bugs. Stefan