[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] [debbugs] Add mu4e support.

From: Michael Albinus
Subject: Re: [PATCH] [debbugs] Add mu4e support.
Date: Tue, 09 May 2017 15:19:57 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Ricardo Wurmus <address@hidden> 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) "Ä
>> 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)

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 
"address@hidden" nil)
  debbugs-read-emacs-bug-with-mu4e(10000 ((cache_time . 1494335543.4297807) 
(tags "notabug") (blockedby) (originator . "address@hidden") (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 . "<address@hidden>") (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 <address@hidden>") (bug_num . 10000) (forwarded) 
(owner) (id . 10000)) nil)
  call-interactively(debbugs-gnu-select-report nil nil)

> Ricardo

Best regards, Michael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]