[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: [PATCH] Always return refreshed category
From: |
Julien Danjou |
Subject: |
[Orgmode] Re: [PATCH] Always return refreshed category |
Date: |
Fri, 24 Dec 2010 17:33:50 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
On Fri, Dec 24 2010, Matt Lundin wrote:
> With your original patch, I am also frequently seeing "???" as a
> category in the agenda buffer. E.g.,
>
> ???: In -1 d.: TODO Christmas gifts wrapped :home:
>
> This occurs with files/entries that do not have an in-buffer category
> statement (e.g, #+CATEGORY: or :CATEGORY:).
Seems like the refresh function set this by default if no category is
found. That looks stupid, I wonder why there's that line.
Here's a patch that should fix it.
From 89464e137f66cfeb144938692479bf95e9187a4d Mon Sep 17 00:00:00 2001
From: Julien Danjou <address@hidden>
Date: Fri, 24 Dec 2010 17:32:45 +0100
Subject: [PATCH] Fix ??? in category
* org.el (org-refresh-category-properties): Do not set ??? as default
category if no default.
Signed-off-by: Julien Danjou <address@hidden>
---
lisp/org.el | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/lisp/org.el b/lisp/org.el
index 863a80b..5fb2ba4 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -8154,8 +8154,7 @@ call CMD."
((null org-category)
(if buffer-file-name
(file-name-sans-extension
- (file-name-nondirectory buffer-file-name))
- "???"))
+ (file-name-nondirectory buffer-file-name))))
((symbolp org-category) (symbol-name org-category))
(t org-category)))
beg end cat pos optionp)
--
1.7.2.3
--
Julien Danjou
❱ http://julien.danjou.info
pgpRYEJhSGQbo.pgp
Description: PGP signature
- [Orgmode] [PATCH] Always return refreshed category, Julien Danjou, 2010/12/22
- [Accepted] [Orgmode] Always return refreshed category, Carsten Dominik, 2010/12/23
- Re: [Orgmode] [PATCH] Always return refreshed category, Carsten Dominik, 2010/12/23
- [Orgmode] Re: [PATCH] Always return refreshed category, Matt Lundin, 2010/12/23
- [Orgmode] Re: [PATCH] Always return refreshed category, Julien Danjou, 2010/12/23
- [Orgmode] Re: [PATCH] Always return refreshed category, Matt Lundin, 2010/12/24
- [Orgmode] Re: [PATCH] Always return refreshed category, Carsten Dominik, 2010/12/24
- Re: [Orgmode] Re: [PATCH] Always return refreshed category, Julien Danjou, 2010/12/27
- Re: [Orgmode] Re: [PATCH] Always return refreshed category, Julien Danjou, 2010/12/27
- [Orgmode] Re: [PATCH] Always return refreshed category,
Julien Danjou <=