From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: [PATCH v3] Allow applying filters to summary consecutively Date: Thu, 20 Oct 2022 18:02:28 +0200 Message-ID: <87h6zysctn.fsf@gmail.com> References: <87edv2ijm3.fsf@autistici.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1889"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rms@gnu.org, eliz@gnu.org, emacs-devel@gnu.org To: Andrea Monaco Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 20 22:44:10 2022 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 1olcOf-0000FX-Dm for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Oct 2022 22:44:09 +0200 Original-Received: from localhost ([::1]:50292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olZDu-0000eB-8v for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Oct 2022 13:20:50 -0400 Original-Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olYtW-0007wk-OU for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Oct 2022 12:59:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olY0T-0005QY-BH for emacs-devel@gnu.org; Thu, 20 Oct 2022 12:02:59 -0400 Original-Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:34637) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olY0O-0000u4-Ne; Thu, 20 Oct 2022 12:02:52 -0400 Original-Received: by mail-wr1-x436.google.com with SMTP id b4so35256725wrs.1; Thu, 20 Oct 2022 09:02:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=TdDFghfIIFHuURA5e+cy0F5HdkQsJ5cL/hkDdI21Hmo=; b=SkJod2dhbjxFnS60wjVeR54rSPJYI8JBijMxid50cd/DgArpDJafcinH2auRW6OkO4 1NGnT3WZFvJRauUReF0Qv9i3aZjpOjEQ7PBpWNPb+lo9qJF1j1SHbKaCogB870IKhGTp Ibud6xl6RtNtCXIEJjGdYdfQTEdSIak9CAuQMDwsKlSTKjV8ZzXyJaEJxEcxGeZtOm6H tcu5277/aKGQ9xR9bBQRtp8+RP7SCUiFA0lbCUN1hv372TsQQ0iTwMze/2qj9UbJtBt2 7N4/dFEwvMCL1+q0+CBR6pFVnLHQWw6WEiFLuh9ILt8dUGelO9zrs0sgUz9lmPXb3hew mtHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TdDFghfIIFHuURA5e+cy0F5HdkQsJ5cL/hkDdI21Hmo=; b=6Ut7bf7uYJB0sajx7sUM8kpcNtZlNrdrcJg23uRXBrrdmmtQAG7jRd+UdUpDWFiDRW 3Mpi0mQrJm3m0FGhRtOz2jHahG0ctls9WC1HPabcKW/2CGwQbDHNfyPVYfb7e/I8gNlu umw9LRJXYod0V8lCOcwz8D58HkVYLgnyTVKdI0zX/gScVwYHIC0uHalwX8SXJ457t65a gYwRZHlKPuc5sZ5xurkAxlEFFCsOFPoWLO48KwGj8BydVkHtL0xLcAYIM45RLrWNddHE MK4l03XA90DXkZ43RwqCqdl73LpVEiiCFASdRZ5Ex4LxeZM5FqtQh+LbI2lavqiXrxZq jWrA== X-Gm-Message-State: ACrzQf3+3z8AjibIJXAKM2n8zynVKcjB/ak5W5iKszPGNRSP5R0c2H3P Vz7Eor8sl6wtWTgLN8E0lyc2pKF6hGI= X-Google-Smtp-Source: AMsMyM6vOqlkCsAgZosiVNYLHo28LG0FF3x1PKzFGN0m1efGL09aARLxQ70W4YgkIlJtqSER+A2ujQ== X-Received: by 2002:a05:6000:50a:b0:225:210c:a7e4 with SMTP id a10-20020a056000050a00b00225210ca7e4mr9032721wrf.704.1666281749988; Thu, 20 Oct 2022 09:02:29 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id s1-20020adfeb01000000b0022cc3e67fc5sm16813435wrn.65.2022.10.20.09.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 09:02:29 -0700 (PDT) In-Reply-To: <87edv2ijm3.fsf@autistici.org> (Andrea Monaco's message of "Thu, 20 Oct 2022 17:45:56 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=rpluim@gmail.com; helo=mail-wr1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:298177 Archived-At: >>>>> On Thu, 20 Oct 2022 17:45:56 +0200, Andrea Monaco said: >> I=CA=BCd call it `rmail-summary-stack-filters' and say Andrea> The metaphor of a stack is not perfect, as we don't have any "p= op", that Andrea> is there's no command to cancel the last filter. Ah. How are people expected to get back to showing all messages? >> I don=CA=BCt remember the details of rmail=CA=BCs summary line forma= t, but I >> think you=CA=BCd be better served with (thing-at-point 'number) Andrea> There is some padding with whitespace at the beginning of each = line, so Andrea> you'd still need a jump command. Well, you could search forward from bol for a digit easily enough. >> I think you have this same lambda about 4 times in the code, perhaps >> `defun' it (using "rmail-summary--" as a prefix to indicate that >> it=CA=BCs intended for internal usage) Andrea> The five lambdas I added (one for each rmail-summary-by-* comma= nd) are Andrea> similar but not identical. Maybe I could write a general funct= ion, but Andrea> I find it too much of a hassle for a little line saving. OK Andrea> I agree on the other objections. Suggestions, not objections. Nothing I=CA=BCve said stops the changes from going in. Robert --=20