emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] MobileOrg and tags


From: James Harkins
Subject: Re: [O] MobileOrg and tags
Date: Fri, 20 Jul 2012 12:20:43 -0400
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

At Mon, 16 Jul 2012 22:34:11 -0400,
James Harkins wrote:
> 
> Been fiddling around with an issue that I noticed in MobileOrg for android... 
> but I just noticed something strange that makes me think it's an issue in 
> org-mode itself.

... snip

> - Where are the #+TAGS: supposed to come from? Only from org-tag-alist? If 
> so, that's a bit of a bother. I don't know in advance what tags I will need. 
> I'd rather not have to customize the variable every time I introduce a new 
> tag.

Following up on my question about transmitting tags over to MobileOrg -- the 
question being how to make sure MobileOrg knows about the existing tags, so 
that it's possible to edit tagged nodes without breaking the tags.

I found a reference to a function, org-global-tags-completion-table, that would 
collect all of the tags currently being used. So, as an experiment, I made a 
small change to org-mobile.el [1]. And, magically, in index.org, now I get:

#+TAGS: Bug FarShore Hadron Hard Lament lily Lilypond.........

And on my tablet, editing a node shows the correct tags (no more #+DRAWERS::) 
and, tapping on a tag brings up a full, correct list of tags. Great! IMO, what 
a typical user would expect.

Obviously this is a hack, and I am 1/ not sophisticated enough with lisp and 2/ 
not familiar enough with the orgmode codebase to implement a real solution. I 
guess it would be something like a customization variable to determine whether 
or not to concatenate the tag completion table onto org-tag-alist-for-agenda, 
and then a conditional in the spot that I changed.

If no objection, I'll add a feature request (if I don't find an existing one).

hjh

[1] Diff vs. release_7.8.11

diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el
index 946e821..5644a05 100644
--- a/lisp/org-mobile.el
+++ b/lisp/org-mobile.el
@@ -430,7 +430,8 @@ agenda view showing the flagged items."
                               ((listp e)
                                (if (stringp (car e)) (car e) nil))
                               (t nil)))
-                      org-tag-alist-for-agenda))))
+;                     org-tag-alist-for-agenda))))
+                      (org-global-tags-completion-table)))))
     (with-temp-file
        (if org-mobile-use-encryption
            org-mobile-encryption-tempfile


--
James Harkins /// dewdrop world
address@hidden
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks



reply via email to

[Prev in Thread] Current Thread [Next in Thread]