From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: Re: MobileOrg and tags Date: Fri, 03 Aug 2012 14:50:21 -0400 Message-ID: <87ehnn7qtu.wl%jamshark70@dewdrop-world.net> References: <87r4sb5d5o.wl%jamshark70@dewdrop-world.net> <87a9yupfok.wl%jamshark70@dewdrop-world.net> <87k3xn4vyl.fsf@gnu.org> <8739494kku.fsf@altern.org> <87pq78rwbz.fsf@gnu.org> <87ipd06kzx.wl%jamshark70@dewdrop-world.net> <87d338osqw.fsf@gnu.org> <87fw837vud.wl%jamshark70@dewdrop-world.net> <87lihvn94j.fsf@gnu.org> 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]:40214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxMxA-0003Fo-1N for emacs-orgmode@gnu.org; Fri, 03 Aug 2012 14:50:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SxMx9-0000jU-0R for emacs-orgmode@gnu.org; Fri, 03 Aug 2012 14:50:27 -0400 In-Reply-To: <87lihvn94j.fsf@gnu.org> 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: Bastien Cc: emacs-orgmode@gnu.org At Fri, 03 Aug 2012 20:06:04 +0200, Bastien wrote: > > James Harkins 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 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