From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] [debbugs] Add mu4e support. Date: Tue, 09 May 2017 15:19:57 +0200 Message-ID: <87a86mupz6.fsf@detlef> References: <87y3ursale.fsf@elephly.net> <87r30cwtty.fsf@detlef> <87inlchov9.fsf@elephly.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1494336171 1665 195.159.176.226 (9 May 2017 13:22:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 9 May 2017 13:22:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Ricardo Wurmus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 09 15:22:47 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d856F-0000Kf-8E for ged-emacs-devel@m.gmane.org; Tue, 09 May 2017 15:22:47 +0200 Original-Received: from localhost ([::1]:37249 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d856K-0000FM-Ri for ged-emacs-devel@m.gmane.org; Tue, 09 May 2017 09:22:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d853f-00067K-TS for emacs-devel@gnu.org; Tue, 09 May 2017 09:20:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d853b-000583-Bg for emacs-devel@gnu.org; Tue, 09 May 2017 09:20:07 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:50067) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d853b-00057s-05 for emacs-devel@gnu.org; Tue, 09 May 2017 09:20:03 -0400 Original-Received: from detlef.gmx.de ([213.220.147.181]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MHX4u-1dBORG0ybc-003Lbe; Tue, 09 May 2017 15:19:58 +0200 In-Reply-To: <87inlchov9.fsf@elephly.net> (Ricardo Wurmus's message of "Sun, 07 May 2017 13:45:30 +0200") X-Provags-ID: V03:K0:JHiKdn5HW9W2i2BTp+tROO4pJMc5I12/u1QFzCLnmGUylvJs+gn CBXi0UQmrOMfSUB0U5OEFCev317xxjF4vpYjbeL+zca2M+Syyhv0JAHg7fiJdio2FJvvdAu iuE+2hxw+2jz9pRq3orDBZd2xPWVk4NmeX/e25Zyf0nfXQOUnGCogIAt8CUrEmI+3YyRgRH cT62+IS6OJlQMZV1+FU9Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:+1sJDhnJTLM=:mLLcCK2Ir7j9UoMqgeAfnl 8W+6F0MPdQT9ktI8iM1/nQy80bEzWlPzaE2CX11HQXP4YHPHBMza+RBBSX33wMKV3t25/u+6a JVaAAERrEWdtZc3zu9TkcsKbwR2ii/iEm9mw7+iIX/HfwCJ8XxO05/xaztWC38lBXF/ShKdCW gvQ/+39J+ULYsufOTnXqr/zHEMi2KGCB+jg2WizD/nbCXvfnVCwE6k/8KQJ7I4LLbvwmyx92i Zg6s7fZILHyuvNYXZiFi/GXtFQlnWPdB6d1z4MF2gcApHkPeUCt4rBdOXbG3PbhLhrPpJ/SU9 dGl9lzPx6dWNBb4HjpNTM+UX/Au1XuDDtinJ/NvHn2Y/WfSWqa7zTO3JMpcxM618xG2wp69KP jGUMCkD+OUyJe0uf6Tyrzp8yCUmtiWl+1CNlCuevnNLGLwiJIfKXVPfGG7oJPbSR8q6+uwUuh eFAvVK/6eO3ky1YMqrk6LzxyC29fvNNMhH6oVfDyY0wfqJ/83r2M1FsHozngtJWdw1XnbxPjS q81QP4OAcpM4KGnHqR2ruKmfgBbAsvK1dQ3D/aTaI5IcOjiYDqVYYr9FonH7Af700NO5ngqLN HjiOG7HaqXHhStmpZOZ1AoouOgDhLehIemMPS2IuF5DjWLBi8EJ1KYFL+1H+/eMt0K4T07l77 RJK7eywIqVMavOX3lJ+c//9w8Kz5yheCuqgJM1Ab6QwZi193nqeGPUcUkkaih7hly+9TMrqxK V9LQmHvnGPMA53VJaYYkRRNf6vx5DFAGG7PokbScOtb0DWCXLIQNn5U9FICp04xjthkWY7O2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214714 Archived-At: Ricardo Wurmus writes: > Hi Michael, Hi Ricardo, > That=E2=80=99s because =E2=80=9Cdebbugs-read-emacs-bug-with-mu4e=E2=80=9D= 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 varia= ble >> =E2=80=98mu4e-maildir=E2=80=99 > > 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: #[(&optiona= l expr prompt edit ignore-history) "=C3=84 >> >> 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 "Searc= h for: "))) (expr (if edit (read-string prompt expr) (or expr (read-string = prompt nil (quote mu4e~headers-search-hist)))))) (mu4e-mark-handle-when-lea= ving) (mu4e~headers-search-execute expr ignore-history))) 6) mu4e-headers-search("maildir:/emacs-debbugs.10000" nil nil nil "84k479sz1= 6.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 err= or") (affects) (mergedwith) (package "emacs" "gnus") (found (item (key . "2= 4.0.91") (value))) (msgid . "<84k479sz16.fsf@aol.com>") (fixed) (fixed_date= ) (blocks) (source . "unknown") (severity . "minor") (pending . "done") (fo= und_date) (last_modified . 1328358242) (log_modified . 1328358242) (keyword= s "notabug") (summary) (done . "Lars Magne Ingebrigtsen ") = (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.