From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Albinus Subject: Re: org-debbugs.el Date: Fri, 04 Oct 2013 21:19:27 +0200 Message-ID: <87ob74x2rk.fsf@gmx.de> References: <20130925080403.GS12411@kuru.dyndns-at-home.com> <86siwt1d9c.fsf@somewhere.org> <8738otjkdt.fsf@gmx.de> <871u4czq4t.fsf@gmx.de> <20130926002156.GA13887@kuru.dyndns-at-home.com> <86vc1of3cp.fsf@somewhere.org> <87eh8ckjtk.fsf@gmx.de> <87mwmydpz3.fsf_-_@gmx.de> <87li2cjetb.fsf@gmx.de> <20131002100515.GN2622@kuru.dyndns-at-home.com> <87k3hvucbf.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSAuZ-0000LV-Lg for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 15:19:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSAuT-0006bU-RT for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 15:19:39 -0400 Received: from mout.gmx.net ([212.227.15.19]:60528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSAuT-0006bE-H8 for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 15:19:33 -0400 Received: from detlef.gmx.de ([87.146.63.33]) by mail.gmx.com (mrgmx003) with ESMTPS (Nemesis) id 0M3S2C-1VjymC04Rc-00r32o for ; Fri, 04 Oct 2013 21:19:32 +0200 In-Reply-To: <87k3hvucbf.fsf@gmx.de> (Michael Albinus's message of "Wed, 02 Oct 2013 13:44:36 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Suvayu Ali Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Michael Albinus writes: Hi Suvayu, >> I tried to test by looking for a specific bug. This is what I tried: >> >> - search phrase: emacsclient >> - submitter: fatkasuvayu (that is leading part of my email address) >> - status: done or nothing >> >> But then I get an empty "*Org Bugs*" buffer. > > Hmm, yes. But this seems to be a server side problem. I still have no idea why the submitter does not work. However, there are more attributes which could be used. I have added the "author" keyword to the `org-debbugs-search' interface. This gives you all bugs, for which you have sent an email with the given email address (or a substring of). Patch appended. Try - search phrase: emacsclient - author: fatkasuvayu Best regards, Michael. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-org-debbugs.el-org-debbugs-search-Accept-empty-phras.patch >From 3c2ef9d8f8aa0da8dc0c2d8514a52b52ec36ed9b Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Fri, 4 Oct 2013 21:12:08 +0200 Subject: [PATCH] * org-debbugs.el (org-debbugs-search): Accept empty phrase. Add keyword "author". (org-debbugs-show-next-reports): Make "Next bugs" an own entry. --- contrib/lisp/org-debbugs.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/contrib/lisp/org-debbugs.el b/contrib/lisp/org-debbugs.el index fe5430e..9ab805e 100644 --- a/contrib/lisp/org-debbugs.el +++ b/contrib/lisp/org-debbugs.el @@ -144,16 +144,14 @@ returned." ;; Check for the phrase. (setq phrase (read-string debbugs-gnu-phrase-prompt)) - (if (zerop (length phrase)) - (setq phrase nil) - (add-to-list 'debbugs-gnu-current-query (cons 'phrase phrase))) + (add-to-list 'debbugs-gnu-current-query (cons 'phrase phrase)) ;; The other queries. (catch :finished (while t (setq key (completing-read "Enter attribute: " - '("severity" "package" "tags" "submitter" + '("severity" "package" "tags" "submitter" "author" "subject" "status") nil t)) (cond @@ -178,7 +176,8 @@ returned." (add-to-list 'debbugs-gnu-current-query (cons (intern key) val1)))) - ((equal key "submitter") + ((member key '("submitter" "author")) + (when (equal key "author") (setq key "@author")) (setq val1 (read-string "Enter email address: ")) (when (not (zerop (length val1))) (add-to-list @@ -405,7 +404,7 @@ returned." (goto-char (point-max)) (insert (format - "[[elisp:(org-debbugs-show-next-reports %s)][Next bugs]]\n" + "* [[elisp:(org-debbugs-show-next-reports %s)][Next bugs]]\n" hits)))))) (defconst org-debbugs-mode-map -- 1.8.1.2 --=-=-=--