From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Dunn Subject: Re: Bug: MobileOrg pull broken Date: Sun, 07 Aug 2016 21:37:20 -0400 Message-ID: <87lh086nxr.fsf@gnu.org> References: <87invlwuzb.fsf@gnu.org> <87a8gob4zp.fsf@saiph.selenimh> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWZVN-00033J-VI for emacs-orgmode@gnu.org; Sun, 07 Aug 2016 21:37:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWZVL-0002Er-Lf for emacs-orgmode@gnu.org; Sun, 07 Aug 2016 21:37:24 -0400 In-Reply-To: <87a8gob4zp.fsf@saiph.selenimh> (Nicolas Goaziou's message of "Mon, 08 Aug 2016 00:15:22 +0200") 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" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, > > Ian Dunn writes: > >> I stepped through org-mobile-apply using Edebug and found that the >> problem is with "(eval cmd)" in org-mobile.el, line 889. It fails with >> the error "(void-variable data)". I don't know why this is happening, >> but I've included a simple fix for this that passes the `data', `old', >> and `new' variables as a lexical environment to `eval'. This may not >> work if `org-mobile-action-alist' is modified. > > Actually `org-mobile-action-alist' is not meant to be modified, per its > docstring. Anyway I replaced the action sexp with a function. Does it > solve the problem ? > > Regards, It almost worked, but your change to `org-mobile-action-alist' doesn't need the function quote. -- Ian Dunn diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el index 93b1481..f7ae0a9 100644 --- a/lisp/org-mobile.el +++ b/lisp/org-mobile.el @@ -228,7 +228,7 @@ capture file `mobileorg.org' back to the WebDAV directory, for example using `rsync' or `scp'.") (defconst org-mobile-action-alist - '(("edit" . #'org-mobile-edit)) + '(("edit" . org-mobile-edit)) "Alist with flags and actions for mobile sync. When flagging an entry, MobileOrg will create entries that look like