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, 03 Aug 2012 14:50:21 -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 Fri, 03 Aug 2012 20:06:04 +0200,
Bastien wrote:
> 
> James Harkins <address@hidden> writes:
> 
> > Two differences in behavior:
> >
> > - It pops up a buffer showing me the contents of agendas.org, and asks me
> > what coding system I want to use (default "raw-text"). That strikes me as
> > an unnecessary distraction in the workflow, although maybe this is
> > intentional.
> 
> You'll have this if you use `org-global-tags-completion-table' anyway.

Okay, I can see my question might have been a little confusing: Asking it in 
the context of the tags change suggested that I thought the "coding system" 
prompt is the result of the tag-related change. It is a separate question, 
though.

Why do I now have to take an extra step to push to mobileorg, which I did not 
have to take before?

> > - An error is produced:
> >
> > Debugger entered--Lisp error: (wrong-type-argument stringp 
> > ("~/Documents/mobileorg/semester.org" . "semester-fall.org"))
> 
> Please check again against current HEAD, I made a small change that
> might make a difference.

No, it didn't help.

It seems I was right. You can't pass a list of cons-cells into 
org-global-tags-completion-table. It has to be a list of strings. It's 
necessary to get "car" from each item in files-alist.

diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el
index 7795780..f6ab493 100644
--- a/lisp/org-mobile.el
+++ b/lisp/org-mobile.el
@@ -424,7 +424,7 @@ agenda view showing the flagged items."
                     done-kwds
                     (org-uniquify org-todo-keywords-for-agenda)))
     (setq drawers (org-uniquify org-drawers-for-agenda))
-    (setq tags (mapcar 'car (org-global-tags-completion-table files-alist)))
+    (setq tags (mapcar 'car (org-global-tags-completion-table (mapcar 'car 
files-alist))))
     (with-temp-file
        (if org-mobile-use-encryption
            org-mobile-encryption-tempfile

hjh


--
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]