From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Dunn Subject: Bug in org-mobile-get-outline-path-link Date: Wed, 05 Apr 2017 21:45:24 -0400 Message-ID: <87pogq8g23.fsf@escafil> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvxdS-00059x-V6 for emacs-orgmode@gnu.org; Wed, 05 Apr 2017 22:58:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvxdO-0006QN-2o for emacs-orgmode@gnu.org; Wed, 05 Apr 2017 22:58:59 -0400 Received: from [195.159.176.226] (port=56964 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cvxdN-0006PV-SX for emacs-orgmode@gnu.org; Wed, 05 Apr 2017 22:58:54 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cvwYn-0005xx-BS for emacs-orgmode@gnu.org; Thu, 06 Apr 2017 03:50:05 +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: emacs-orgmode@gnu.org I recently tried turning off 'org-mobile-force-id-on-agenda-items', only to find that there were problems updating agenda tasks. I poked around in the code and found that 'org-mobile-locate-entry' looks for an OLP in the form olp:file:/path/to/heading, and 'org-mobile-get-outline-path-link' stores it as olp:file/path/to/heading. I've attached a patch to fix the latter function. -- Ian Dunn diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el index f6ef18f10..12e6c84b3 100644 --- a/lisp/org-mobile.el +++ b/lisp/org-mobile.el @@ -648,7 +648,7 @@ The table of checksums is written to the file mobile-checksums." (org-with-point-at pom (concat "olp:" (org-mobile-escape-olp (file-name-nondirectory buffer-file-name)) - "/" + ":" (mapconcat 'org-mobile-escape-olp (org-get-outline-path) "/")