emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: James Harkins <jamshark70@gmail.com>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: MobileOrg and tags
Date: Fri, 03 Aug 2012 14:50:21 -0400	[thread overview]
Message-ID: <87ehnn7qtu.wl%jamshark70@dewdrop-world.net> (raw)
In-Reply-To: <87lihvn94j.fsf@gnu.org>

At Fri, 03 Aug 2012 20:06:04 +0200,
Bastien wrote:
> James Harkins <jamshark70@gmail.com> 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."
 		     (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))))
 	(if org-mobile-use-encryption


James Harkins /// dewdrop world

"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	other threads:[~2012-08-03 18:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-17  2:34 MobileOrg and tags James Harkins
2012-07-20 16:20 ` James Harkins
2012-07-28 17:49   ` Bastien
2012-07-29 20:22     ` James Harkins
2012-07-30 10:20       ` Bastien
2012-08-03 12:31         ` Bastien
2012-08-03 15:41           ` James Harkins
2012-08-03 16:16             ` Bastien
2012-08-03 17:02               ` James Harkins
2012-08-03 17:09                 ` Bastien
2012-08-03 18:06                 ` Bastien
2012-08-03 18:50                   ` James Harkins [this message]
2012-08-04  8:24                     ` Bastien
2012-08-04  8:24                     ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ehnn7qtu.wl%jamshark70@dewdrop-world.net \
    --to=jamshark70@gmail.com \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


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