Fixing org-mobile-push

After update to the new version of org-mode (7.8.06) the function org-mobile-push didn’t work as expected. After a more or less lengthy search I found the solution on the following link

It seems that one necessary correction isn’t present on the 7.8 branch. After applying the changes mentioned it worked as expected.

On 02/01/2012 01:58 AM, Greg Troxel wrote:
>
> The following fix is in org master, but not in 7.8.  I am able to use
> org-mobile-push.
>
>
> commit 71089b7e3b00736f854d6e95a52229853262e12a
> Author: Bastien Guerry<bzg <at> altern.org>
> Date:   Wed Jan 4 16:37:59 2012 +0100
>
>      org-mobile.el (org-mobile-push): Use `org-agenda-tag-filter'.
>
>      * org-mobile.el (org-mobile-push): Use `org-agenda-tag-filter'
>      instead of the obsolete `org-agenda-filter'.
>
>      Thanks to Charles Sebold for reporting this.
>
> diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el
> index b049f4e..bcc1c90 100644
> --- a/lisp/org-mobile.el
> +++ b/lisp/org-mobile.el
> @@ -303,7 +303,7 @@ create all custom agenda views, for upload to the mobile phone."
>     (interactive)
>     (let ((a-buffer (get-buffer org-agenda-buffer-name)))
>       (let ((org-agenda-buffer-name "*SUMO*")
> -     (org-agenda-filter org-agenda-filter)
> +     (org-agenda-tag-filter org-agenda-tag-filter)
>       (org-agenda-redo-command org-agenda-redo-command))
>         (save-excursion
>     (save-window-excursion

According to the comments this should be done in the main branch. For later versions this shouldn’t be a problem.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s