From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: Intelligent stacking of messages in the echo area Date: Tue, 24 Dec 2019 17:24:29 +0800 Message-ID: <87sgladqk2.fsf@localhost> References: <87sgldfi9j.fsf@mail.linkov.net> <878sn3g0o7.fsf@gmail.com> <83imm7xiu9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="9300"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacsuser@freemail.hu, emacs-devel@gnu.org, juri@linkov.net To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 24 10:27:09 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ijgT5-0002Hd-LV for ged-emacs-devel@m.gmane.org; Tue, 24 Dec 2019 10:27:08 +0100 Original-Received: from localhost ([::1]:37452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ijgT3-0006Kz-Qy for ged-emacs-devel@m.gmane.org; Tue, 24 Dec 2019 04:27:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53176) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ijgSc-0005tL-14 for emacs-devel@gnu.org; Tue, 24 Dec 2019 04:26:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ijgSa-0008B9-UH for emacs-devel@gnu.org; Tue, 24 Dec 2019 04:26:37 -0500 Original-Received: from mail-yb1-xb34.google.com ([2607:f8b0:4864:20::b34]:43728) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ijgSY-00088l-2Q; Tue, 24 Dec 2019 04:26:34 -0500 Original-Received: by mail-yb1-xb34.google.com with SMTP id v24so8168712ybd.10; Tue, 24 Dec 2019 01:26:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=VqUUqfVpa+LjG9rWW4YbhyANY12LwJxVdVdYrA5UDgY=; b=XRMPxTXzwsk2eX8JFOaoUEuvJ3TjTSKQB1UMLuReHeO4KWZIerNehtB4rbQCwRr5wV fSUZ7zqwLBKNGCWnzPMM94wmOwDQRsH6BoHT5gyeEiDyPNLdn9xCA1md1K2SGpAWiRfR 1nw/8rkTI558SNpLrjbervdggjNCCsk8JANPLyNQvbOLAFz1IKMR7lQARGFD88uQ8yxp ms1o19tdIc7pXgCDcEJr2IPBR//PmVKU3+3rgxo/rw7BqqAM+p3aw7C9ev1exPMZ/rSX AM0AO0ZbLIMFxpc4b1ya+3cePV9GUxTwPLyfKS/1VI3iDMW0SgCy4dztAp5lQd+2WTN3 ixUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=VqUUqfVpa+LjG9rWW4YbhyANY12LwJxVdVdYrA5UDgY=; b=j8fGu/CrbNm5vcV61FSreB/4YHejdLtHrBG6wYhvjka+Svi1AKD5oD4n3J17l+BxFy AdqALGoKdEuuPijfbrZtLdY8nnw3jiz8KoXuHAn1pMBUuW49rx2mskM5IopNuwJdXzuS WfOMVLFsxy5ccH4vuCiESuf4d3X53r3TVCXhe4dDwJF2u22SxvB1G6931rLlPPOGiCgY Vr5GpgUYQvbQsFNZBxUdF9C8olhUGS7VBgfwvSzS/POCcGGTz3gNaAFz5YEq2v1rwwMy vXbkKXvqhvnxs2CnHBL3AQ1Dka7EC9JKYdZkNAV0WfvE0YyRQUsR7m1b6UORmIkjae8a SXoQ== X-Gm-Message-State: APjAAAXiuYJZ7PELFNluKJnm/dR3Ln53s+COLycVWvs3t/QCS1HX3WKl XNfcjSmWzdcHWFFnRBG9oGsKbzknJ8I= X-Google-Smtp-Source: APXvYqweaZz4XykV5omYmLztmlmY554kva+OILMxxnwopRAHfdSJaHvP/dfH0y2eUebqRqaT+iH9Vg== X-Received: by 2002:a25:d997:: with SMTP id q145mr22402779ybg.231.1577179592954; Tue, 24 Dec 2019 01:26:32 -0800 (PST) Original-Received: from localhost ([5.226.137.4]) by smtp.gmail.com with ESMTPSA id n1sm9474325ywe.78.2019.12.24.01.26.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Dec 2019 01:26:32 -0800 (PST) In-Reply-To: <83imm7xiu9.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::b34 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243603 Archived-At: > I'd rather think a better way would be to have a variable which allows > to filter messages by regular expressions: any message that matches a > regexp in a list will not be stacked. It is a good idea. However, generating a universal regexp for, say, eldoc may be challenging. >> Also, it would be great to avoid stacking the echo-keystrokes, but I >> have no clue how to detect them. > > See above. I cannot find what you refer to. Best, Ihor Eli Zaretskii writes: >> From: Ihor Radchenko >> Date: Mon, 23 Dec 2019 11:50:48 +0800 >> Cc: "emacs-devel@gnu.org" >> >> A slightly improved version of the code, which prevents stacking >> potentially "spammy" messages (like from eldoc or >> org-display-outline-path). The messages are detected by looking at >> messages-log-max variable, which is typically set to nil by such >> functions. > > I'd rather think a better way would be to have a variable which allows > to filter messages by regular expressions: any message that matches a > regexp in a list will not be stacked. > >> Also, it would be great to avoid stacking the echo-keystrokes, but I >> have no clue how to detect them. > > See above. -- Ihor Radchenko, PhD, Center for Advancing Materials Performance from the Nanoscale (CAMP-nano) State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg