* org-mobile-push vs. symlinks [not found] ` <CAFniQ7WZdy3v3cCNN8PPJg796Qq-+VS-jfiAimr8qvxnH2gJcg@mail.gmail.com> @ 2012-12-08 3:42 ` James Harkins 2012-12-15 8:49 ` James Harkins 2013-01-03 12:10 ` Bastien 0 siblings, 2 replies; 13+ messages in thread From: James Harkins @ 2012-12-08 3:42 UTC (permalink / raw To: Emacs-orgmode@gnu.org [-- Attachment #1: Type: text/plain, Size: 1286 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 1520 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* org-mobile-push vs. symlinks 2012-12-08 3:42 ` org-mobile-push vs. symlinks James Harkins @ 2012-12-15 8:49 ` James Harkins 2012-12-15 8:57 ` Bastien 2013-01-03 12:10 ` Bastien 1 sibling, 1 reply; 13+ messages in thread From: James Harkins @ 2012-12-15 8:49 UTC (permalink / raw To: Emacs-orgmode Sorry for resending as a new thread. I had wanted to reply to my original message on gmane, but gmane's search fails to locate the thread (?). Anyway, I still don't understand the rationale for the current behavior. Does anyone know why org-mobile-push resolves the agenda files' names to symlink targets? Thanks, hjh ---------- Forwarded message ---------- Date: Sat, Dec 8, 2012 at 11:42 AM Subject: org-mobile-push vs. symlinks 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, when I sync captures back to the computer, org-mobile-pull opens a buffer for semester-fall.org, but it's empty because there is no file by that name under org-directory -- so, 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 -- James Harkins /// dewdrop world jamshark70@dewdrop-world.net http://www.dewdrop-world.net "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman blog: http://www.dewdrop-world.net/words audio clips: http://www.dewdrop-world.net/audio more audio: http://soundcloud.com/dewdrop_world/tracks ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: org-mobile-push vs. symlinks 2012-12-15 8:49 ` James Harkins @ 2012-12-15 8:57 ` Bastien 2012-12-19 17:57 ` J. David Boyd 0 siblings, 1 reply; 13+ messages in thread From: Bastien @ 2012-12-15 8:57 UTC (permalink / raw To: jamshark70; +Cc: Emacs-orgmode James Harkins <jamshark70@gmail.com> writes: > Anyway, I still don't understand the rationale for the current > behavior. Does anyone know why org-mobile-push resolves the agenda > files' names to symlink targets? The problem is that there is no active maintainer on org-mobile.el right now... by default this is me, but I'm a bit swamped. I'll have a look, but anyone faster than me is welcome! -- Bastien ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: org-mobile-push vs. symlinks 2012-12-15 8:57 ` Bastien @ 2012-12-19 17:57 ` J. David Boyd 2012-12-19 18:09 ` Bastien 0 siblings, 1 reply; 13+ messages in thread From: J. David Boyd @ 2012-12-19 17:57 UTC (permalink / raw To: emacs-orgmode Bastien <bzg@altern.org> writes: > James Harkins <jamshark70@gmail.com> writes: > >> Anyway, I still don't understand the rationale for the current >> behavior. Does anyone know why org-mobile-push resolves the agenda >> files' names to symlink targets? > > The problem is that there is no active maintainer on org-mobile.el > right now... by default this is me, but I'm a bit swamped. > > I'll have a look, but anyone faster than me is welcome! How would we do that? Are there instructions somewhere on the proper way to create a patch file for this? The proper mode for diff? What has to be in a changelog? There are a few changes I'd like to see in mobile.el myself, and I'm willing to make them, if I know how to submit. Dave ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: org-mobile-push vs. symlinks 2012-12-19 17:57 ` J. David Boyd @ 2012-12-19 18:09 ` Bastien 0 siblings, 0 replies; 13+ messages in thread From: Bastien @ 2012-12-19 18:09 UTC (permalink / raw To: J. David Boyd; +Cc: emacs-orgmode Hi David, david@adboyd.com (J. David Boyd) writes: > How would we do that? Are there instructions somewhere on the proper > way to create a patch file for this? The proper mode for diff? What > has to be in a changelog? > > There are a few changes I'd like to see in mobile.el myself, and I'm > willing to make them, if I know how to submit. http://orgmode.org/worg/org-contribute.html HTH, -- Bastien ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: org-mobile-push vs. symlinks 2012-12-08 3:42 ` org-mobile-push vs. symlinks James Harkins 2012-12-15 8:49 ` James Harkins @ 2013-01-03 12:10 ` Bastien 2013-01-04 9:50 ` James Harkins 1 sibling, 1 reply; 13+ messages in thread From: Bastien @ 2013-01-03 12:10 UTC (permalink / raw To: jamshark70; +Cc: Emacs-orgmode@gnu.org Hi James, James Harkins <jamshark70@gmail.com> writes: > - 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? :-) I'd say the first one :) -- Bastien ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: org-mobile-push vs. symlinks 2013-01-03 12:10 ` Bastien @ 2013-01-04 9:50 ` James Harkins 2013-01-04 15:34 ` Bastien 0 siblings, 1 reply; 13+ messages in thread From: James Harkins @ 2013-01-04 9:50 UTC (permalink / raw To: Bastien; +Cc: Emacs-orgmode@gnu.org [-- Attachment #1: Type: text/plain, Size: 794 bytes --] On Jan 3, 2013 8:57 PM, "Bastien" <bzg@altern.org> wrote: > > Hi James, > > James Harkins <jamshark70@gmail.com> writes: > > > - 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? :-) > > I'd say the first one :) Hm, I'd suggest a third possibility then: - There isn't actually a good reason for the restriction and nobody knows why it's done this way, but it's too much trouble to fix for a corner case that's easily worked around. The outcome is the same as the first: document the issue. hjh [-- Attachment #2: Type: text/html, Size: 1136 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: org-mobile-push vs. symlinks 2013-01-04 9:50 ` James Harkins @ 2013-01-04 15:34 ` Bastien 2013-01-06 9:59 ` James Harkins 0 siblings, 1 reply; 13+ messages in thread From: Bastien @ 2013-01-04 15:34 UTC (permalink / raw To: jamshark70; +Cc: Emacs-orgmode@gnu.org Hi James, James Harkins <jamshark70@gmail.com> writes: > The outcome is the same as the first: document the issue. Org is yours :) -- Bastien ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: org-mobile-push vs. symlinks 2013-01-04 15:34 ` Bastien @ 2013-01-06 9:59 ` James Harkins 2013-01-06 13:57 ` Bastien 0 siblings, 1 reply; 13+ messages in thread From: James Harkins @ 2013-01-06 9:59 UTC (permalink / raw To: Bastien, Emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 1269 bytes --] On Jan 4, 2013 11:34 PM, "Bastien" <bzg@altern.org> wrote: > > Hi James, > > James Harkins <jamshark70@gmail.com> writes: > > > The outcome is the same as the first: document the issue. > > Org is yours :) I worked in software support for awhile, so... I know what it means, e.g., when some behavior is labeled a "known issue" ;-) I'm not sure of the procedure to contribute to the org manual, but I might suggest something like this, under MobileOrg section B2: ~~ This operation copies all files currently listed in org-mobile-files to the directory org-mobile-directory. By default this list contains all agenda files (as listed in org-agenda-files), but additional files can be included by customizing org-mobile-files. File names will be staged with paths relative to org-directory, so all files should be inside this directory.* ... (rest of paragraph) * It is recommended to store the source org files physically under org-directory. If this is not practical, org-directory may contain symlinks to the org files, provided that the symlink has the same name as the original file. If the original file is called "mylife.org," then the symlink should also be called mylife.org. If the names are different, pulling edited nodes from MobileOrg will fail. ~~ hjh [-- Attachment #2: Type: text/html, Size: 1641 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: org-mobile-push vs. symlinks 2013-01-06 9:59 ` James Harkins @ 2013-01-06 13:57 ` Bastien 2013-01-07 2:34 ` James Harkins 0 siblings, 1 reply; 13+ messages in thread From: Bastien @ 2013-01-06 13:57 UTC (permalink / raw To: jamshark70; +Cc: Emacs-orgmode Hi James, James Harkins <jamshark70@gmail.com> writes: > I'm not sure of the procedure to contribute to the org manual, but I > might suggest something like this, under MobileOrg section B2: I added a footnote: http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=76684b5 Thanks! -- Bastien ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: org-mobile-push vs. symlinks 2013-01-06 13:57 ` Bastien @ 2013-01-07 2:34 ` James Harkins 2013-01-07 2:42 ` Bastien 2013-01-07 17:21 ` Bastien 0 siblings, 2 replies; 13+ messages in thread From: James Harkins @ 2013-01-07 2:34 UTC (permalink / raw To: Bastien; +Cc: Emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 1471 bytes --] On Jan 6, 2013 9:57 PM, "Bastien" <bzg@altern.org> wrote: > > Hi James, > > James Harkins <jamshark70@gmail.com> writes: > > > I'm not sure of the procedure to contribute to the org manual, but I > > might suggest something like this, under MobileOrg section B2: > > I added a footnote: > http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=76684b5 (The thread that wouldn't die...) I just looked at the footnote text... why did we go from "symlinks work if the name is the same" to an unqualified "symlinks are not supported"? It isn't always feasible, or even desirable in some cases, to keep all your org files under org-directory. For instance, I have a separate project folder for a series of concerts to be given in the spring. If I back up this folder, I want the project's org file to come with it. The updated documentation seems to suggest that I should store the org file physically under org-directory and place a symlink under the project directory, making backups a bit more complex ("oh my, I forgot again what is the cp or rsync option to follow links... man page..."). I can accept the same-name requirement, but it really makes much more sense to me to keep org files physically with their projects. So I'd kindly request that future org-mobile changes avoid breaking the use of symlinks in org-directory (which currently does work). Documenting that symlinks are supported (with the one caveat about the filename) is a step in that direction. hjh [-- Attachment #2: Type: text/html, Size: 1888 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: org-mobile-push vs. symlinks 2013-01-07 2:34 ` James Harkins @ 2013-01-07 2:42 ` Bastien 2013-01-07 17:21 ` Bastien 1 sibling, 0 replies; 13+ messages in thread From: Bastien @ 2013-01-07 2:42 UTC (permalink / raw To: jamshark70; +Cc: Emacs-orgmode James Harkins <jamshark70@gmail.com> writes: > I just looked at the footnote text... why did we go from "symlinks > work if the name is the same" to an unqualified "symlinks are not > supported"? I overlooked the difference. Please provide a patch. ~$ git clone git://orgmode.org/org-mode.git ~$ emacs & C-x f org-mode/doc/org.texi ... [edit edit edit] ... C-x s C-x v = C-x s Send the file you saved and you're done! -- Bastien ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: org-mobile-push vs. symlinks 2013-01-07 2:34 ` James Harkins 2013-01-07 2:42 ` Bastien @ 2013-01-07 17:21 ` Bastien 1 sibling, 0 replies; 13+ messages in thread From: Bastien @ 2013-01-07 17:21 UTC (permalink / raw To: jamshark70; +Cc: Emacs-orgmode Hi James, James Harkins <jamshark70@gmail.com> writes: > I just looked at the footnote text... why did we go from "symlinks > work if the name is the same" to an unqualified "symlinks are not > supported"? Should be fixed now... thanks, -- Bastien ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2013-01-07 17:45 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <CAFniQ7U88AmmeQj8rXW87YKRTjXyx=GqTYfJUrbtEyGWeQnrwA@mail.gmail.com> [not found] ` <CAFniQ7WGYWEnd8BxoVVOegLfsb+uCYzeVxx0emgywnutqP+46g@mail.gmail.com> [not found] ` <CAFniQ7WfWKpUyzMZVhiChjQekOP_ZZSUV17=iR4ZiVLtPCOpow@mail.gmail.com> [not found] ` <CAFniQ7WZdy3v3cCNN8PPJg796Qq-+VS-jfiAimr8qvxnH2gJcg@mail.gmail.com> 2012-12-08 3:42 ` org-mobile-push vs. symlinks James Harkins 2012-12-15 8:49 ` James Harkins 2012-12-15 8:57 ` Bastien 2012-12-19 17:57 ` J. David Boyd 2012-12-19 18:09 ` Bastien 2013-01-03 12:10 ` Bastien 2013-01-04 9:50 ` James Harkins 2013-01-04 15:34 ` Bastien 2013-01-06 9:59 ` James Harkins 2013-01-06 13:57 ` Bastien 2013-01-07 2:34 ` James Harkins 2013-01-07 2:42 ` Bastien 2013-01-07 17:21 ` Bastien
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.