From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eric S Fraga Newsgroups: gmane.emacs.devel Subject: Re: Intelligent stacking of messages in the echo area Date: Fri, 24 Jan 2020 10:14:50 +0000 Organization: On the Interweb somewhere Message-ID: References: <87sgldfi9j.fsf@mail.linkov.net> <878sn3g0o7.fsf@gmail.com> <87pngepti3.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="102868"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel@gnu.org Cancel-Lock: sha1:crcEp3SXQaHcQjIE+aUELNxY5Mo= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 24 11:15:37 2020 Return-path: Envelope-to: ged-emacs-devel@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 1iuw01-000Qin-GK for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Jan 2020 11:15:37 +0100 Original-Received: from localhost ([::1]:39901 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuw00-0005Su-Ls for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Jan 2020 05:15:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41076) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuvzQ-0004pF-Kh for emacs-devel@gnu.org; Fri, 24 Jan 2020 05:15:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iuvzN-0002rs-2X for emacs-devel@gnu.org; Fri, 24 Jan 2020 05:15:00 -0500 Original-Received: from ciao.gmane.io ([159.69.161.202]:43384) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iuvzM-0002qk-Sy for emacs-devel@gnu.org; Fri, 24 Jan 2020 05:14:57 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1iuvzK-000Pis-6S for emacs-devel@gnu.org; Fri, 24 Jan 2020 11:14:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ X-Url: http://twitter.com/ericsfraga/ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 159.69.161.202 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:244563 Archived-At: On Tuesday, 24 Dec 2019 at 00:47, Juri Linkov wrote: > Good heuristics. Another heuristics that could be added is > to filter out transient messages ending with ellipsis - > added here to a new variable like Eli asked to do: Just to say thank you. I've been using this bit of code for the past two or three weeks and it works very well. I added to your regex for my particular situation: #+begin_src elisp (defcustom multi-message-transient "\\(\\.\\.\\.\\'\\|^,\\|^C-\\|^pop3 retrieved\\)" "Regexp to filter out transient messages that should not be stacked." :type 'regexp :group 'minibuffer :version "28.1") #+end_src The "," is because I use evil mode and comma is my leader character. -- Eric S Fraga via Emacs 28.0.50 & org 9.3.1 on Debian 9.9 -- : Professor Eric S Fraga; use plain text: http://useplaintext.email : https://www.ucl.ac.uk/chemical-engineering/people/prof-eric-fraga : PGP/GnuPG key: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D