Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > Hello, > > Ian Dunn <du...@gnu.org> 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