unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* 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
  2022-11-12  9:07 ` Eli Zaretskii
  0 siblings, 2 replies; 4+ 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] 4+ 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
  1 sibling, 0 replies; 4+ 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] 4+ 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
  1 sibling, 1 reply; 4+ 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] 4+ 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; 4+ 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] 4+ messages in thread

end of thread, other threads:[~2022-11-12 17:49 UTC | newest]

Thread overview: 4+ 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

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).