all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] [debbugs] Add mu4e support.
Date: Tue, 09 May 2017 15:19:57 +0200	[thread overview]
Message-ID: <87a86mupz6.fsf@detlef> (raw)
In-Reply-To: <87inlchov9.fsf@elephly.net> (Ricardo Wurmus's message of "Sun, 07 May 2017 13:45:30 +0200")

Ricardo Wurmus <rekado@elephly.net> writes:

> Hi Michael,

Hi Ricardo,

> That’s because “debbugs-read-emacs-bug-with-mu4e” doesn't yet handle
> merged bugs.  It will only download messages for the given bug id.

Mark this argument as unused, like this:

(defun debbugs-read-emacs-bug-with-mu4e (id status _merged)

>> In debbugs-read-emacs-bug-with-mu4e:
>> packages/debbugs/debbugs-gnu.el:1354:27:Warning: reference to free variable
>>     ‘mu4e-maildir’
>
> This is defined in mu4e-vars.  How would I mark this as coming from
> there without adding a dependency on mu4e?

Declare it w/o specifying a value:

(defvar mu4e-maildir)

>> debbugs-read-emacs-bug-with-mu4e: Wrong number of arguments: #[(&optional expr prompt edit ignore-history) "Ä\b
>>
>> The rest of the backtrace cannot be added to this email due to non-ASCII
>> characters.
>
> I cannot reproduce this.  What did you do to get this error?

# ~/src/emacs/src/emacs -Q

(add-to-list 'load-path "~/src/mu/mu4e/")
(add-to-list 'load-path "~/src/elpa/packages/debbugs/")
(require 'debbugs-gnu)
(require 'mu4e-vars)
(setq debug-on-error t)
(setq debbugs-gnu-mail-backend 'mu4e)
(debbugs-gnu-bugs 10000)
<ENTER>

I've removed all *.elc files from the mu4e directory. The backtrace is now

Debugger entered--Lisp error: (wrong-number-of-arguments (lambda (&optional expr prompt edit ignore-history) "Search in the mu database for EXPR, and switch to the output
buffer for the results. This is an interactive function which ask
user for EXPR. PROMPT, if non-nil, is the prompt used by this
function (default is \"Search for:\"). If EDIT is non-nil, instead
of executing the query for EXPR, let the user edit the query before
executing it. If IGNORE-HISTORY is true, do *not* update the query
history stack." (interactive) (let* ((prompt (mu4e-format (or prompt "Search for: "))) (expr (if edit (read-string prompt expr) (or expr (read-string prompt nil (quote mu4e~headers-search-hist)))))) (mu4e-mark-handle-when-leaving) (mu4e~headers-search-execute expr ignore-history))) 6)
  mu4e-headers-search("maildir:/emacs-debbugs.10000" nil nil nil "84k479sz16.fsf@aol.com" nil)
  debbugs-read-emacs-bug-with-mu4e(10000 ((cache_time . 1494335543.4297807) (tags "notabug") (blockedby) (originator . "nyc4bos@aol.com") (location . "archive") (date . 1320812762) (unarchived) (archived . t) (found_versions "24.0.91") (fixed_versions) (subject . "24.0.91; Gnus gnus-get-function error") (affects) (mergedwith) (package "emacs" "gnus") (found (item (key . "24.0.91") (value))) (msgid . "<84k479sz16.fsf@aol.com>") (fixed) (fixed_date) (blocks) (source . "unknown") (severity . "minor") (pending . "done") (found_date) (last_modified . 1328358242) (log_modified . 1328358242) (keywords "notabug") (summary) (done . "Lars Magne Ingebrigtsen <larsi@gnus.org>") (bug_num . 10000) (forwarded) (owner) (id . 10000)) nil)
  debbugs-gnu-select-report()
  funcall-interactively(debbugs-gnu-select-report)
  call-interactively(debbugs-gnu-select-report nil nil)
  command-execute(debbugs-gnu-select-report)

> Ricardo

Best regards, Michael.



  reply	other threads:[~2017-05-09 13:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-23 10:05 [PATCH] [debbugs] Add mu4e support Ricardo Wurmus
2017-04-23 17:53 ` Marcin Borkowski
2017-04-23 18:26 ` Michael Albinus
2017-04-28 13:22 ` Michael Albinus
2017-04-28 14:44   ` Stefan Monnier
2017-05-07 11:45   ` Ricardo Wurmus
2017-05-09 13:19     ` Michael Albinus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-12-24 14:46 Felix
2022-12-24 15:04 ` Eli Zaretskii
2022-12-24 15:28   ` Felix
2022-12-24 15:47     ` Eli Zaretskii
2022-12-24 15:45       ` Felix
2022-12-24 16:26         ` Eli Zaretskii
2022-12-25  9:33           ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a86mupz6.fsf@detlef \
    --to=michael.albinus@gmx.de \
    --cc=emacs-devel@gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.