* bug#59206: rmail-summary-apply-filters-consecutively causes wrong-type-argument error
@ 2022-11-11 22:49 Nicolas Graner
2022-11-12 3:38 ` Richard Stallman
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Nicolas Graner @ 2022-11-11 22:49 UTC (permalink / raw)
To: 59206
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)<RET>
M-x rmail-summary-from-senders<RET>testing<RET>
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)
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#59206: rmail-summary-apply-filters-consecutively causes wrong-type-argument error
2022-11-11 22:49 bug#59206: rmail-summary-apply-filters-consecutively causes wrong-type-argument error Nicolas Graner
@ 2022-11-12 3:38 ` Richard Stallman
2022-11-12 9:07 ` Eli Zaretskii
2024-05-17 20:46 ` Jakub Ječmínek via Bug reports for GNU Emacs, the Swiss army knife of text editors
2 siblings, 0 replies; 5+ messages in thread
From: Richard Stallman @ 2022-11-12 3:38 UTC (permalink / raw)
To: Nicolas Graner; +Cc: 59206
[[[ 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)
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#59206: rmail-summary-apply-filters-consecutively causes wrong-type-argument error
2022-11-11 22:49 bug#59206: rmail-summary-apply-filters-consecutively causes wrong-type-argument error Nicolas Graner
2022-11-12 3:38 ` Richard Stallman
@ 2022-11-12 9:07 ` Eli Zaretskii
2022-11-12 17:49 ` Andrea Monaco via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-17 20:46 ` Jakub Ječmínek via Bug reports for GNU Emacs, the Swiss army knife of text editors
2 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2022-11-12 9:07 UTC (permalink / raw)
To: Nicolas Graner, Andrea Monaco; +Cc: 59206
> From: Nicolas Graner <nicolas@graner.name>
> 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)<RET>
> M-x rmail-summary-from-senders<RET>testing<RET>
>
> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#59206: rmail-summary-apply-filters-consecutively causes wrong-type-argument error
2022-11-12 9:07 ` Eli Zaretskii
@ 2022-11-12 17:49 ` Andrea Monaco via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 0 replies; 5+ messages in thread
From: Andrea Monaco via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-11-12 17:49 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 59206, nicolas
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#59206: rmail-summary-apply-filters-consecutively causes wrong-type-argument error
2022-11-11 22:49 bug#59206: rmail-summary-apply-filters-consecutively causes wrong-type-argument error Nicolas Graner
2022-11-12 3:38 ` Richard Stallman
2022-11-12 9:07 ` Eli Zaretskii
@ 2024-05-17 20:46 ` Jakub Ječmínek via Bug reports for GNU Emacs, the Swiss army knife of text editors
2 siblings, 0 replies; 5+ messages in thread
From: Jakub Ječmínek via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-05-17 20:46 UTC (permalink / raw)
To: Andrea Monaco; +Cc: Eli Zaretskii, 59206-done, nicolas
Andrea Monaco <andrea.monaco@autistici.org> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-05-17 20:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-11 22:49 bug#59206: rmail-summary-apply-filters-consecutively causes wrong-type-argument error Nicolas Graner
2022-11-12 3:38 ` Richard Stallman
2022-11-12 9:07 ` Eli Zaretskii
2022-11-12 17:49 ` Andrea Monaco via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-17 20:46 ` Jakub Ječmínek via Bug reports for GNU Emacs, the Swiss army knife of text editors
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.