From unknown Tue Jun 17 22:18:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59206: rmail-summary-apply-filters-consecutively causes wrong-type-argument error Resent-From: Nicolas Graner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Nov 2022 22:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59206 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 59206@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16682069892550 (code B ref -1); Fri, 11 Nov 2022 22:50:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Nov 2022 22:49:49 +0000 Received: from localhost ([127.0.0.1]:47021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otcqL-0000f3-67 for submit@debbugs.gnu.org; Fri, 11 Nov 2022 17:49:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:44842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otcqI-0000et-60 for submit@debbugs.gnu.org; Fri, 11 Nov 2022 17:49:47 -0500 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 1otcqI-0005EW-0w for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2022 17:49:46 -0500 Received: from ouvsmtp1.octopuce.fr ([194.36.166.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otcq2-00039N-JW for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2022 17:49:45 -0500 Received: from panel.vitry.ouvaton.coop (unknown [194.36.166.20]) by ouvsmtp1.octopuce.fr (Postfix) with ESMTPS id A003D16F6 for ; Fri, 11 Nov 2022 23:49:23 +0100 (CET) Received: from hypra-graner (215.124.67.86.rev.sfr.net [86.67.124.215]) by panel.vitry.ouvaton.coop (Postfix) with ESMTPSA id 499935E2903 for ; Fri, 11 Nov 2022 23:49:23 +0100 (CET) From: Nicolas Graner Date: Fri, 11 Nov 2022 23:49:22 +0100 Message-ID: <875yflumx9.fsf@graner.name> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=194.36.166.50; envelope-from=nicolas@graner.name; helo=ouvsmtp1.octopuce.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) When the variable rmail-summary-apply-filters-consecutively is non-nil, if you execute one of the rmail-summary-by-* commands when there is no existing summary, you get an error. This is because those commands call rmail-summary-fill-displayed-messages, which assumes rmail-summary-buffer is a buffer, but in this case it is nil. Example (starting from emacs -Q): C-u M-x rmail [any rmail file] M-: (setq rmail-summary-apply-filters-consecutively t) M-x rmail-summary-from-senderstesting Debugger entered--Lisp error: (wrong-type-argument stringp nil) rmail-summary-fill-displayed-messages() rmail-summary-by-senders("testing") funcall-interactively(rmail-summary-by-senders "testing") call-interactively(rmail-summary-by-senders record nil) command-execute(rmail-summary-by-senders record) execute-extended-command(nil "rmail-summary-by-senders" "rmail-summary-by-senders") funcall-interactively(execute-extended-command nil "rmail-summary-by-senders" "rmail-summary-by-senders") call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) From unknown Tue Jun 17 22:18:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59206: rmail-summary-apply-filters-consecutively causes wrong-type-argument error Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Nov 2022 03:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59206 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Nicolas Graner Cc: 59206@debbugs.gnu.org Reply-To: rms@gnu.org Received: via spool by 59206-submit@debbugs.gnu.org id=B59206.166822430828292 (code B ref 59206); Sat, 12 Nov 2022 03:39:02 +0000 Received: (at 59206) by debbugs.gnu.org; 12 Nov 2022 03:38:28 +0000 Received: from localhost ([127.0.0.1]:47116 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1othLg-0007MF-5V for submit@debbugs.gnu.org; Fri, 11 Nov 2022 22:38:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1othLd-0007M1-3A for 59206@debbugs.gnu.org; Fri, 11 Nov 2022 22:38:26 -0500 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 1othLV-0007x2-SH; Fri, 11 Nov 2022 22:38:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=O8V0UollTjGGoiaa7mPovQn8ztrVWRaMbXfJ80SKfPE=; b=mb5O7B4mfvVy qapZa9ZRf630ckP3efzICTuua9nexsa4bcKBGQ/Tfb3EPrKC+x2tiUQvW98TAQCyNzWvZtlo7Tg5J KY2iwEdG6sDcLynkQqbvxBJBvVqSE2P5pIHLLNS/xgWOkWWWKDjr5FV5A+u+ZjDpDQ9MqB81bhXdN n95+OHCt8dfmMeEwt1F0YV5hPCcQmwaacGj4HCsVrxJ1zACuUkuoHVo1RlxFrKgiWXQCoHrjlw+qY nKohyCy8wWdie8W5xkGWcVPzK8NvEQFdWeh1yYW5PS+6lYctj21joTurxt42kv3SRxWWMbg3LHwOV 8jWjpjI7ywVU3DcrPYXbFQ==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1othLV-0000fT-Fh; Fri, 11 Nov 2022 22:38:17 -0500 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman In-Reply-To: <875yflumx9.fsf@graner.name> (message from Nicolas Graner on Fri, 11 Nov 2022 23:49:22 +0100) References: <875yflumx9.fsf@graner.name> Message-Id: Date: Fri, 11 Nov 2022 22:38:17 -0500 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > When the variable rmail-summary-apply-filters-consecutively is non-nil, > if you execute one of the rmail-summary-by-* commands when there is no > existing summary, you get an error. In that kind of case, it ought to apply the newly specified filter to the whole contents of the buffer, just as it always did in the past. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From unknown Tue Jun 17 22:18:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59206: rmail-summary-apply-filters-consecutively causes wrong-type-argument error Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Nov 2022 09:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59206 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Nicolas Graner , Andrea Monaco Cc: 59206@debbugs.gnu.org Received: via spool by 59206-submit@debbugs.gnu.org id=B59206.166824408311800 (code B ref 59206); Sat, 12 Nov 2022 09:09:02 +0000 Received: (at 59206) by debbugs.gnu.org; 12 Nov 2022 09:08:03 +0000 Received: from localhost ([127.0.0.1]:47313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otmUc-000345-TD for submit@debbugs.gnu.org; Sat, 12 Nov 2022 04:08:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otmUa-00033S-UL for 59206@debbugs.gnu.org; Sat, 12 Nov 2022 04:08:01 -0500 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 1otmUR-00007O-MV; Sat, 12 Nov 2022 04:07:51 -0500 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=MbymaPnpRhcDOHgiawkcGAExwZoKRCiGcKjnxc/frPA=; b=UAbx3iyjLGr4 3ZSGlPqtnwFRevdhsnKFiMoogOo3qQtu38eVqwTZqW3E15X64Ugc96M3n/H069s8YjWT49xCF+fqs 7uT2ZV35rxKGqty1pG1dqWYhNc3AQQzZDn893RSjc1ocGNapta/0Kc5pM7wKpWkLErOqpMM47EsCz E6pUoPIcJFYW9Chz1DktbjQj2oo36mwybCnbXnHFOMlTxyFznozOvpqR0Nqw3Olkfw0K8qImqYyMb 2Zofs/LYKx03zL08iX0WrZa92PG1AmJhQEfV2S7T6dd+cS441hCKG7oCJrhmHrmvuaZlVRWqcYSPb UO+O9NvJnFboRyk+Wz0OwQ==; 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 1otmUP-0003UN-Aw; Sat, 12 Nov 2022 04:07:51 -0500 Date: Sat, 12 Nov 2022 11:07:55 +0200 Message-Id: <83h6z4o80k.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <875yflumx9.fsf@graner.name> (message from Nicolas Graner on Fri, 11 Nov 2022 23:49:22 +0100) References: <875yflumx9.fsf@graner.name> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Nicolas Graner > Date: Fri, 11 Nov 2022 23:49:22 +0100 > > When the variable rmail-summary-apply-filters-consecutively is non-nil, > if you execute one of the rmail-summary-by-* commands when there is no > existing summary, you get an error. > > This is because those commands call > rmail-summary-fill-displayed-messages, which assumes > rmail-summary-buffer is a buffer, but in this case it is nil. > > Example (starting from emacs -Q): > > C-u M-x rmail [any rmail file] > M-: (setq rmail-summary-apply-filters-consecutively t) > M-x rmail-summary-from-senderstesting > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > rmail-summary-fill-displayed-messages() > rmail-summary-by-senders("testing") > funcall-interactively(rmail-summary-by-senders "testing") > call-interactively(rmail-summary-by-senders record nil) > command-execute(rmail-summary-by-senders record) > execute-extended-command(nil "rmail-summary-by-senders" "rmail-summary-by-senders") > funcall-interactively(execute-extended-command nil "rmail-summary-by-senders" "rmail-summary-by-senders") > call-interactively(execute-extended-command nil nil) > command-execute(execute-extended-command) Thanks. This part of Rmail is currently being worked on, and there's an uninstalled patch in the queue. If that patch doesn't fix this problem, I'm sure Andrea (CC'ed) will do that as part of the updated patch, when we finish discussions of his last patch. From unknown Tue Jun 17 22:18:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59206: rmail-summary-apply-filters-consecutively causes wrong-type-argument error Resent-From: Andrea Monaco Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Nov 2022 17:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59206 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 59206@debbugs.gnu.org, nicolas@graner.name Received: via spool by 59206-submit@debbugs.gnu.org id=B59206.16682753979521 (code B ref 59206); Sat, 12 Nov 2022 17:50:02 +0000 Received: (at 59206) by debbugs.gnu.org; 12 Nov 2022 17:49:57 +0000 Received: from localhost ([127.0.0.1]:48942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otudg-0002TV-Ml for submit@debbugs.gnu.org; Sat, 12 Nov 2022 12:49:56 -0500 Received: from devianza.investici.org ([198.167.222.108]:34509) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otude-0002TM-Mc for 59206@debbugs.gnu.org; Sat, 12 Nov 2022 12:49:55 -0500 Received: from mx2.investici.org (unknown [127.0.0.1]) by devianza.investici.org (Postfix) with ESMTP id 4N8jl53gFxz6vBx; Sat, 12 Nov 2022 17:49:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1668275393; bh=KARxHdzPa2SGjcutC+GTcceMjijeYyjCm/EqfO68uyQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=lM3IvG7FJGQycbZuGavZ1xAPjL8l7GQwfwnxNxz+evQjcZ8KCPKtPsdhhhxWPXs+p 89jEX/urQM+fVxgMPlHU2ToqgnEbFRtXZi/Se7dmr+NAwSQ3ObnvC55oRHeBq0cDtO gT4BryhQjSNCWsXe0xyQ4oRPSJCOiey4gve6FE1c= Received: from [198.167.222.108] (mx2.investici.org [198.167.222.108]) (Authenticated sender: andrea.monaco@autistici.org) by localhost (Postfix) with ESMTPSA id 4N8jl51QGkz6vBk; Sat, 12 Nov 2022 17:49:53 +0000 (UTC) From: Andrea Monaco In-Reply-To: <83h6z4o80k.fsf@gnu.org> (message from Eli Zaretskii on Sat, 12 Nov 2022 11:07:55 +0200) References: <875yflumx9.fsf@graner.name> Date: Sat, 12 Nov 2022 18:49:50 +0100 Message-ID: <87o7tcm5a9.fsf@autistici.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > When the variable rmail-summary-apply-filters-consecutively is > non-nil, if you execute one of the rmail-summary-by-* commands when > there is no existing summary, you get an error. > > This is because those commands call > rmail-summary-fill-displayed-messages, which assumes > rmail-summary-buffer is a buffer, but in this case it is nil. The last patch I sent fixes exactly that (plus it changes the custom variable name). Thanks for testing Nicolas! Andrea Monaco From unknown Tue Jun 17 22:18:37 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Nicolas Graner Subject: bug#59206: closed (Re: bug#59206: rmail-summary-apply-filters-consecutively causes wrong-type-argument error) Message-ID: References: <87le48i2uh.fsf@kubajecminek.cz> <875yflumx9.fsf@graner.name> X-Gnu-PR-Message: they-closed 59206 X-Gnu-PR-Package: emacs Reply-To: 59206@debbugs.gnu.org Date: Fri, 17 May 2024 20:47:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1715978822-5058-1" This is a multi-part message in MIME format... ------------=_1715978822-5058-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #59206: rmail-summary-apply-filters-consecutively causes wrong-type-argumen= t error which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 59206@debbugs.gnu.org. --=20 59206: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D59206 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1715978822-5058-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 59206-done) by debbugs.gnu.org; 17 May 2024 20:46:34 +0000 Received: from localhost ([127.0.0.1]:57201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s84TJ-0001JI-T9 for submit@debbugs.gnu.org; Fri, 17 May 2024 16:46:34 -0400 Received: from mail-4018.proton.ch ([185.70.40.18]:43717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s84TI-0001JC-7h for 59206-done@debbugs.gnu.org; Fri, 17 May 2024 16:46:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kubajecminek.cz; s=protonmail; t=1715978783; x=1716237983; bh=o3E1al6vel0xAb6zzIzvEicghWo3tJ3tw0GMW6wh+/0=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=l01upnKizcoshUE696wAj8i5hwR205/VjADjdwU6Hps64PMuS52G7jmxVXmZzpwoF zPcyarTwh9eBgXmGfJIgxfCn4NrEwDHHk49O1UqwLE3SQOM3MnCxRw1JXfuBjdLTGQ vjXA+i5NUVvtXv6iCvHZw/iWcFYIlNcIsDBN6F5vKcOU2RW+2SdAMGtw9dDjNBy47I sJHC+3J5U3npkJ18SUC2UUgVZcfiYcL6t+vElFWcg5WBvUH5sI0z0U5MwCZxU5UwcZ C39Iu9QaIeVoMRjQnInN5+EUJg76OYaaSVZCOwNo0GZOz+hFNi+PzUh1tLOvju5vDH NfTYfJ9XzOemg== Date: Fri, 17 May 2024 20:46:17 +0000 To: Andrea Monaco From: =?utf-8?Q?Jakub_Je=C4=8Dm=C3=ADnek?= Subject: Re: bug#59206: rmail-summary-apply-filters-consecutively causes wrong-type-argument error Message-ID: <87le48i2uh.fsf@kubajecminek.cz> Feedback-ID: 98803324:user:proton X-Pm-Message-ID: 521e203dd2b43651cef3318f9e51fc6ffd84d2f5 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 59206-done Cc: Eli Zaretskii , 59206-done@debbugs.gnu.org, nicolas@graner.name X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) Andrea Monaco writes: > The last patch I sent fixes exactly that (plus it changes the custom > variable name). Thanks for testing Nicolas! I was not able to reproduce the original error so I assume that Andrea's fix resolved this bug. I'm therefore closing this. Best ------------=_1715978822-5058-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 11 Nov 2022 22:49:49 +0000 Received: from localhost ([127.0.0.1]:47021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otcqL-0000f3-67 for submit@debbugs.gnu.org; Fri, 11 Nov 2022 17:49:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:44842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otcqI-0000et-60 for submit@debbugs.gnu.org; Fri, 11 Nov 2022 17:49:47 -0500 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 1otcqI-0005EW-0w for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2022 17:49:46 -0500 Received: from ouvsmtp1.octopuce.fr ([194.36.166.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otcq2-00039N-JW for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2022 17:49:45 -0500 Received: from panel.vitry.ouvaton.coop (unknown [194.36.166.20]) by ouvsmtp1.octopuce.fr (Postfix) with ESMTPS id A003D16F6 for ; Fri, 11 Nov 2022 23:49:23 +0100 (CET) Received: from hypra-graner (215.124.67.86.rev.sfr.net [86.67.124.215]) by panel.vitry.ouvaton.coop (Postfix) with ESMTPSA id 499935E2903 for ; Fri, 11 Nov 2022 23:49:23 +0100 (CET) From: Nicolas Graner To: bug-gnu-emacs@gnu.org Subject: rmail-summary-apply-filters-consecutively causes wrong-type-argument error Date: Fri, 11 Nov 2022 23:49:22 +0100 Message-ID: <875yflumx9.fsf@graner.name> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=194.36.166.50; envelope-from=nicolas@graner.name; helo=ouvsmtp1.octopuce.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) When the variable rmail-summary-apply-filters-consecutively is non-nil, if you execute one of the rmail-summary-by-* commands when there is no existing summary, you get an error. This is because those commands call rmail-summary-fill-displayed-messages, which assumes rmail-summary-buffer is a buffer, but in this case it is nil. Example (starting from emacs -Q): C-u M-x rmail [any rmail file] M-: (setq rmail-summary-apply-filters-consecutively t) M-x rmail-summary-from-senderstesting Debugger entered--Lisp error: (wrong-type-argument stringp nil) rmail-summary-fill-displayed-messages() rmail-summary-by-senders("testing") funcall-interactively(rmail-summary-by-senders "testing") call-interactively(rmail-summary-by-senders record nil) command-execute(rmail-summary-by-senders record) execute-extended-command(nil "rmail-summary-by-senders" "rmail-summary-by-senders") funcall-interactively(execute-extended-command nil "rmail-summary-by-senders" "rmail-summary-by-senders") call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) ------------=_1715978822-5058-1--