From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: org-mobile-push vs. symlinks Date: Sat, 8 Dec 2012 11:42:52 +0800 Message-ID: References: Reply-To: jamshark70@dewdrop-world.net Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04462dd27d171104d04f20e5 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThBJY-00051m-7l for Emacs-orgmode@gnu.org; Fri, 07 Dec 2012 22:42:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ThBJW-0007zF-MA for Emacs-orgmode@gnu.org; Fri, 07 Dec 2012 22:42:56 -0500 Received: from mail-ie0-f175.google.com ([209.85.223.175]:32900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThBJW-0007yv-Di for Emacs-orgmode@gnu.org; Fri, 07 Dec 2012 22:42:54 -0500 Received: by mail-ie0-f175.google.com with SMTP id qd14so3102981ieb.34 for ; Fri, 07 Dec 2012 19:42:53 -0800 (PST) In-Reply-To: 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: "Emacs-orgmode@gnu.org" --f46d04462dd27d171104d04f20e5 Content-Type: text/plain; charset=ISO-8859-1 I had a problem with mobile org sync, which I finally tracked down to the handling of symlinks in org-mobile-push. Setup: I want to have a different file name for my school org file depending on fall or spring semester, but I hoped to avoid changing org-agenda-files once a semester. So I symlinked semester-fall.org to ~/Documents/mobileorg/semester.org. It seems that org-mobile-push resolves the symlink to determine the filename to drop into the online share. So MobileOrg knows about semester-fall.org, but there is no file by that name in org-directory. So, org-mobile-pull opens an empty buffer for semester-fall.org and, as it's empty, of course the parent node can't be found. My question: Is there a technical reason why org-mobile-push must use the symlink target's filename, instead of the filename that actually lives under org-directory? Other parts of the code assume the filename under org-directory. I can think of two possibilities: - One should not put symlinks into org-directory, or at least make sure the symlink's name is the same as the target. If this is an intentional limitation, it should be documented. - Or, the symlink resolution is not actually necessary and it causes problems. In that case, it's a bug that should be fixed. Which is it? :-) hjh --f46d04462dd27d171104d04f20e5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

I had a problem with mobile org sync, which I finally tracked down to th= e handling of symlinks in org-mobile-push.

Setup: I want to have a different file name for my school org file depen= ding on fall or spring semester, but I hoped to avoid changing org-agenda-f= iles once a semester. So I symlinked s= emester-fall.org to ~/Documents/mobileorg/semester.org.

It seems that org-mobile-push resolves the symlink to determine the file= name to drop into the online share. So MobileOrg knows about semester-fall.org, but there is no file by that = name in org-directory. So, org-mobile-pull opens an empty buffer for semester-fall.org and, as it's empty= , of course the parent node can't be found.

My question: Is there a technical reason why org-mobile-push must use th= e symlink target's filename, instead of the filename that actually live= s under org-directory? Other parts of the code assume the filename under or= g-directory. I can think of two possibilities:

- One should not put symlinks into org-directory, or at least make sure = the symlink's name is the same as the target. If this is an intentional= limitation, it should be documented.

- Or, the symlink resolution is not actually necessary and it causes pro= blems. In that case, it's a bug that should be fixed.

Which is it? :-)

hjh

--f46d04462dd27d171104d04f20e5--