djcb / mu

maildir indexer/searcher + emacs mail client + guile bindings
http://www.djcbsoftware.nl/code/mu
GNU General Public License v3.0
1.61k stars 389 forks source link

[mu4e bug] wrong-number-of-arguments in mu4e--prepare-draft-buffer #2701

Closed robstewart57 closed 5 months ago

robstewart57 commented 5 months ago

Describe the bug

Using mu at commit 14a882f912d67e9231ecaec70a3e6444d0e84d7f , attempt to reply or reply-to-all. This message is printed:

mu4e--fcc-path: Wrong number of arguments: #<subr delete>, 0

How to Reproduce

Here's the backtrace:

Debugger entered--Lisp error: (wrong-number-of-arguments #f(compiled-function (elt seq) "Delete members of SEQ which are `equal' to ELT, and return the result.\nSEQ must be a sequence (i.e. a list, a vector, or a string).\nThe return value is a sequence of the same type.\n\nIf SEQ is a list, this behaves like `delq', except that it compares\nwith `equal' instead of `eq'.  In particular, it may remove elements\nby altering the list structure.\n\nIf SEQ is not a list, deletion is never performed destructively;\ninstead this function creates and returns a new vector or string.\n\nWrite `(setq foo (delete element foo))' to be sure of correctly\nchanging the value of a sequence `foo'.  See also `remove', which\ndoes not modify the argument." #<bytecode 0x13d36d3ec075>) 0)
  delete()
  mu4e--fcc-path(...)
  mu4e--prepare-draft-buffer(...)
  mu4e--draft(reply ...)
  mu4e--draft-with-parent(reply ...)
  mu4e-compose-reply-to(nil t)
  mu4e-compose-wide-reply()
  funcall-interactively(mu4e-compose-wide-reply)
  command-execute(mu4e-compose-wide-reply)

Environment

mu version 14a882f912d67e9231ecaec70a3e6444d0e84d7f .

GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.0, Xaw scroll bars) of 2024-03-07

theophilusx commented 5 months ago

I can confirm seeing the same bug as well.

Fedora 40, Emacs 30.0.50

robstewart57 commented 5 months ago

@djcb I can confirm that this fixed the issue.

djcb commented 5 months ago

Thanks, @robstewart57!