emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] org-agenda: convert category to string
@ 2010-11-24 20:02 Julien Danjou
  2010-11-29  9:23 ` [Accepted] " Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Julien Danjou @ 2010-11-24 20:02 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Julien Danjou

* org-agenda.el (org-format-agenda-item): Convert category to a string
if it is a symbol. This fixes the following call to
org-agenda-get-category-icon which fails if category is not a string.

Signed-off-by: Julien Danjou <julien@danjou.info>
---
 lisp/org-agenda.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index a248068..638629d 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -5044,7 +5044,9 @@ Any match of REMOVE-RE will be removed from TXT."
 	       org-agenda-show-inherited-tags
 	       org-agenda-hide-tags-regexp))
     (let* ((category (or category
-			 org-category
+			 (if (stringp org-category)
+			     org-category
+			   (symbol-name org-category))
 			 (if buffer-file-name
 			     (file-name-sans-extension
 			      (file-name-nondirectory buffer-file-name))
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Accepted] org-agenda: convert category to string
  2010-11-24 20:02 [PATCH] org-agenda: convert category to string Julien Danjou
@ 2010-11-29  9:23 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-11-29  9:23 UTC (permalink / raw)
  To: emacs-orgmode

Patch 406 (http://patchwork.newartisans.com/patch/406/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C1290628932-6922-1-git-send-email-julien%40danjou.info%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] org-agenda: convert category to string
> Date: Thu, 25 Nov 2010 01:02:12 -0000
> From: Julien Danjou <julien@danjou.info>
> X-Patchwork-Id: 406
> Message-Id: <1290628932-6922-1-git-send-email-julien@danjou.info>
> To: emacs-orgmode@gnu.org
> Cc: Julien Danjou <julien@danjou.info>
> 
> * org-agenda.el (org-format-agenda-item): Convert category to a string
> if it is a symbol. This fixes the following call to
> org-agenda-get-category-icon which fails if category is not a string.
> 
> Signed-off-by: Julien Danjou <julien@danjou.info>
> 
> ---
> lisp/org-agenda.el |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
> index a248068..638629d 100644
> --- a/lisp/org-agenda.el
> +++ b/lisp/org-agenda.el
> @@ -5044,7 +5044,9 @@ Any match of REMOVE-RE will be removed from TXT."
>  	       org-agenda-show-inherited-tags
>  	       org-agenda-hide-tags-regexp))
>      (let* ((category (or category
> -			 org-category
> +			 (if (stringp org-category)
> +			     org-category
> +			   (symbol-name org-category))
>  			 (if buffer-file-name
>  			     (file-name-sans-extension
>  			      (file-name-nondirectory buffer-file-name))
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-29  9:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-24 20:02 [PATCH] org-agenda: convert category to string Julien Danjou
2010-11-29  9:23 ` [Accepted] " Carsten Dominik

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).