emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Suvayu Ali <fatkasuvayu+linux@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-debbugs.el
Date: Fri, 04 Oct 2013 21:19:27 +0200	[thread overview]
Message-ID: <87ob74x2rk.fsf@gmx.de> (raw)
In-Reply-To: <87k3hvucbf.fsf@gmx.de> (Michael Albinus's message of "Wed, 02 Oct 2013 13:44:36 +0200")

[-- Attachment #1: Type: text/plain, Size: 769 bytes --]

Michael Albinus <michael.albinus@gmx.de> 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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-org-debbugs.el-org-debbugs-search-Accept-empty-phras.patch --]
[-- Type: text/x-diff, Size: 1812 bytes --]

From 3c2ef9d8f8aa0da8dc0c2d8514a52b52ec36ed9b Mon Sep 17 00:00:00 2001
From: Michael Albinus <michael.albinus@gmx.de>
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


  parent reply	other threads:[~2013-10-04 19:19 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-25  6:43 Org mode issue tracker Carsten Dominik
2013-09-25  7:28 ` Christian Moe
2013-09-25  7:30   ` Carsten Dominik
2013-09-25  7:51 ` Sebastien Vauban
2013-09-25  8:03   ` Carsten Dominik
2013-09-25  9:04     ` Sebastien Vauban
2013-09-25  9:37       ` Carsten Dominik
2013-09-25  8:04   ` Suvayu Ali
2013-09-25  9:06     ` Sebastien Vauban
2013-09-25  9:55       ` Michael Albinus
2013-09-25 12:59         ` Sebastien Vauban
2013-09-25 18:29         ` Loyall, David
2013-09-25 18:54           ` Suvayu Ali
2013-09-25 18:56           ` Michael Albinus
2013-09-26  0:21             ` Suvayu Ali
2013-09-26  7:29               ` Sebastien Vauban
2013-09-26  8:22                 ` Suvayu Ali
2013-09-26  8:42                   ` Michael Brand
2013-09-26  9:52                   ` Sebastien Vauban
2013-09-26  9:34                 ` Michael Albinus
2013-09-26 12:13                   ` Suvayu Ali
2013-09-26 12:21                     ` Suvayu Ali
2013-09-26 12:33                       ` Michael Albinus
2013-09-27 19:28                   ` org-debbugs.el Michael Albinus
2013-09-27 21:50                     ` org-debbugs.el Suvayu Ali
2013-10-02  7:46                     ` org-debbugs.el Michael Albinus
2013-10-02 10:05                       ` org-debbugs.el Suvayu Ali
2013-10-02 11:44                         ` org-debbugs.el Michael Albinus
2013-10-02 11:47                           ` org-debbugs.el Michael Albinus
2013-10-02 12:33                             ` org-debbugs.el Suvayu Ali
2013-10-02 12:33                           ` org-debbugs.el Suvayu Ali
2013-10-04 19:19                           ` Michael Albinus [this message]
2013-10-04 19:46                             ` org-debbugs.el Suvayu Ali
2013-10-11  8:03                       ` org-debbugs.el Michael Albinus
2013-10-11 10:44                         ` org-debbugs.el Suvayu Ali
2013-10-11 11:55                         ` org-debbugs.el Nicolas Richard
2013-10-11 12:06                           ` org-debbugs.el Thorsten Jolitz
2013-10-11 12:09                           ` org-debbugs.el Suvayu Ali
2013-10-11 12:11                           ` org-debbugs.el Michael Albinus
2013-10-25 11:28                         ` org-debbugs.el Michael Albinus
2013-11-05 16:15                     ` org-debbugs.el Bastien
2013-11-05 20:03                       ` org-debbugs.el Michael Albinus
2013-11-05 23:53                         ` org-debbugs.el Bastien
2013-09-26 14:01               ` Org mode issue tracker Brett Viren
2013-10-02 12:38                 ` Michael Albinus
2013-09-25  8:56 ` Carsten Dominik
2013-09-25 18:29   ` Sebastien Vauban
2013-09-25 22:27     ` Bastien

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87ob74x2rk.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=fatkasuvayu+linux@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).