From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: Re: MobileOrg and tags Date: Fri, 20 Jul 2012 12:20:43 -0400 Message-ID: <87a9yupfok.wl%jamshark70@dewdrop-world.net> References: <87r4sb5d5o.wl%jamshark70@dewdrop-world.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsFwg-0004U7-II for emacs-orgmode@gnu.org; Fri, 20 Jul 2012 12:20:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SsFwf-00040i-0C for emacs-orgmode@gnu.org; Fri, 20 Jul 2012 12:20:50 -0400 Received: from mail-gh0-f169.google.com ([209.85.160.169]:37067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsFwe-00040T-E0 for emacs-orgmode@gnu.org; Fri, 20 Jul 2012 12:20:48 -0400 Received: by ghrr18 with SMTP id r18so4967350ghr.0 for ; Fri, 20 Jul 2012 09:20:47 -0700 (PDT) In-Reply-To: <87r4sb5d5o.wl%jamshark70@dewdrop-world.net> 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: emacs-orgmode@gnu.org 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 jamshark70@dewdrop-world.net 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