* org-publish-validate-link @ 2010-02-17 20:50 Thomas S. Dye 2010-02-21 7:34 ` org-publish-validate-link Carsten Dominik 0 siblings, 1 reply; 9+ messages in thread From: Thomas S. Dye @ 2010-02-17 20:50 UTC (permalink / raw) To: org-mode mailing list [-- Attachment #1.1: Type: text/plain, Size: 1278 bytes --] Aloha all, org-publish-validate-link rejects a valid link to a file when the file is created during an editing session. With ./test.org and ./support/test.pdf present at the start of a session, the first link in test.org (below) is validated. When ./ support/test-copy.pdf is added during the session, the second link is not validated and only the description of the link is output to test.html. ----- test.org * A test - link to [[file:support/test.pdf][test.pdf]] - link to [[file:support/test-copy.pdf][test-copy.pdf]] ----- If org-publish-validate-link is not used, then the link is placed correctly in the html output. I have read the org-mode manual, briefly searched the list archive, and read the function's documentation string, but didn't find anything that might alert me to this behavior. My expectation was that org-publish-validate-link would understand the org-mode publishing process and would validate links in the production environment that were correctly established in the publication location. I'm using Org-mode version 6.34trans (release_6.34c.89.g0c39) on emacs 23. All the best, Tom Thomas S. Dye, Ph.D. T. S. Dye & Colleagues, Archaeologists, Inc. Phone: (808) 529-0866 Fax: (808) 529-0884 http://www.tsdye.com [-- Attachment #1.2: Type: text/html, Size: 3882 bytes --] [-- Attachment #2: Type: text/plain, Size: 201 bytes --] _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: org-publish-validate-link 2010-02-17 20:50 org-publish-validate-link Thomas S. Dye @ 2010-02-21 7:34 ` Carsten Dominik [not found] ` <82370D6D-247B-40F1-979E-21833B38A649@tsdye.com> 0 siblings, 1 reply; 9+ messages in thread From: Carsten Dominik @ 2010-02-21 7:34 UTC (permalink / raw) To: Thomas S. Dye; +Cc: org-mode mailing list Hi THomas, org-publish-validate-link validate links to files that show up in the list `org-publish-files-alist'. THis list contains all file names that are considered part of a project and should be published. It is updated each time you issue a command to publish a project. Are you sure that you are republishing the document that should contain the link? If that document has not changed, it will not republish it, so the ink will also not be fixed. You can force republishing by calling your publish command with a C-u prefix. Have you tried that? - Carsten On Feb 17, 2010, at 9:50 PM, Thomas S. Dye wrote: > Aloha all, > > org-publish-validate-link rejects a valid link to a file when the > file is created during an editing session. > > With ./test.org and ./support/test.pdf present at the start of a > session, the first link in test.org (below) is validated. When ./ > support/test-copy.pdf is added during the session, the second link > is not validated and only the description of the link is output to > test.html. > > ----- test.org > * A test > - link to [[file:support/test.pdf][test.pdf]] > - link to [[file:support/test-copy.pdf][test-copy.pdf]] > ----- > > If org-publish-validate-link is not used, then the link is placed > correctly in the html output. > > I have read the org-mode manual, briefly searched the list archive, > and read the function's documentation string, but didn't find > anything that might alert me to this behavior. > > My expectation was that org-publish-validate-link would understand > the org-mode publishing process and would validate links in the > production environment that were correctly established in the > publication location. > > I'm using Org-mode version 6.34trans (release_6.34c.89.g0c39) on > emacs 23. > > All the best, > Tom > > > Thomas S. Dye, Ph.D. > T. S. Dye & Colleagues, Archaeologists, Inc. > Phone: (808) 529-0866 Fax: (808) 529-0884 > http://www.tsdye.com > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <82370D6D-247B-40F1-979E-21833B38A649@tsdye.com>]
* Re: org-publish-validate-link [not found] ` <82370D6D-247B-40F1-979E-21833B38A649@tsdye.com> @ 2010-02-23 6:38 ` Carsten Dominik 2010-02-23 16:46 ` org-publish-validate-link Thomas S. Dye 0 siblings, 1 reply; 9+ messages in thread From: Carsten Dominik @ 2010-02-23 6:38 UTC (permalink / raw) To: Thomas S. Dye; +Cc: org-mode mailing list On Feb 21, 2010, at 2:53 PM, Thomas S. Dye wrote: > Hi Carsten, > > Thanks for this. > > I add a new file that is the target for the link. It is copied to > its correct publication place. The exported html file contains a > new description of the file link, but with no active link. > > I force publishing using C-u prefix and the link is still not active. > > I shut down emacs, re-start, force publishing, and the link is now > active. Hmm, strange that restarting Emacs was required..... Ah, I see now. Please pull again. From now on, when forcing publishing with a prefix argument, the validation list will also be recreated. - Carsten > > All the best, > Tom > > On Feb 20, 2010, at 9:34 PM, Carsten Dominik wrote: > >> Hi THomas, >> >> org-publish-validate-link validate links to files that show up in >> the list >> `org-publish-files-alist'. THis list contains all file names that >> are considered part of a project and should be published. It is >> updated each time you issue >> a command to publish a project. >> >> Are you sure that you are republishing the document that should >> contain the link? If that document has not changed, it will not >> republish it, so the ink will also not be fixed. >> >> You can force republishing by calling your publish command with a C- >> u prefix. Have you tried that? >> >> - Carsten >> >> On Feb 17, 2010, at 9:50 PM, Thomas S. Dye wrote: >> >>> Aloha all, >>> >>> org-publish-validate-link rejects a valid link to a file when the >>> file is created during an editing session. >>> >>> With ./test.org and ./support/test.pdf present at the start of a >>> session, the first link in test.org (below) is validated. When ./ >>> support/test-copy.pdf is added during the session, the second link >>> is not validated and only the description of the link is output to >>> test.html. >>> >>> ----- test.org >>> * A test >>> - link to [[file:support/test.pdf][test.pdf]] >>> - link to [[file:support/test-copy.pdf][test-copy.pdf]] >>> ----- >>> >>> If org-publish-validate-link is not used, then the link is placed >>> correctly in the html output. >>> >>> I have read the org-mode manual, briefly searched the list >>> archive, and read the function's documentation string, but didn't >>> find anything that might alert me to this behavior. >>> >>> My expectation was that org-publish-validate-link would understand >>> the org-mode publishing process and would validate links in the >>> production environment that were correctly established in the >>> publication location. >>> >>> I'm using Org-mode version 6.34trans (release_6.34c.89.g0c39) on >>> emacs 23. >>> >>> All the best, >>> Tom >>> >>> >>> Thomas S. Dye, Ph.D. >>> T. S. Dye & Colleagues, Archaeologists, Inc. >>> Phone: (808) 529-0866 Fax: (808) 529-0884 >>> http://www.tsdye.com >>> >>> >>> _______________________________________________ >>> Emacs-orgmode mailing list >>> Please use `Reply All' to send replies to the list. >>> Emacs-orgmode@gnu.org >>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> >> - Carsten >> >> >> > - Carsten ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: org-publish-validate-link 2010-02-23 6:38 ` org-publish-validate-link Carsten Dominik @ 2010-02-23 16:46 ` Thomas S. Dye 2010-02-23 17:30 ` org-publish-validate-link Carsten Dominik 0 siblings, 1 reply; 9+ messages in thread From: Thomas S. Dye @ 2010-02-23 16:46 UTC (permalink / raw) To: Carsten Dominik; +Cc: org-mode mailing list On Feb 22, 2010, at 8:38 PM, Carsten Dominik wrote: > > On Feb 21, 2010, at 2:53 PM, Thomas S. Dye wrote: > >> Hi Carsten, >> >> Thanks for this. >> >> I add a new file that is the target for the link. It is copied to >> its correct publication place. The exported html file contains a >> new description of the file link, but with no active link. >> >> I force publishing using C-u prefix and the link is still not active. >> >> I shut down emacs, re-start, force publishing, and the link is now >> active. > > Hmm, strange that restarting Emacs was required..... > > Ah, I see now. Please pull again. From now on, when forcing > publishing with a prefix argument, the validation list will also be > recreated. > > - Carsten > Thanks Carsten, This eliminates the need for a restart. It is still the case that the link is invalid on the first publication try. It is valid after force publishing, though. All the best, Tom >> >> All the best, >> Tom >> >> On Feb 20, 2010, at 9:34 PM, Carsten Dominik wrote: >> >>> Hi THomas, >>> >>> org-publish-validate-link validate links to files that show up in >>> the list >>> `org-publish-files-alist'. THis list contains all file names that >>> are considered part of a project and should be published. It is >>> updated each time you issue >>> a command to publish a project. >>> >>> Are you sure that you are republishing the document that should >>> contain the link? If that document has not changed, it will not >>> republish it, so the ink will also not be fixed. >>> >>> You can force republishing by calling your publish command with a >>> C-u prefix. Have you tried that? >>> >>> - Carsten >>> >>> On Feb 17, 2010, at 9:50 PM, Thomas S. Dye wrote: >>> >>>> Aloha all, >>>> >>>> org-publish-validate-link rejects a valid link to a file when the >>>> file is created during an editing session. >>>> >>>> With ./test.org and ./support/test.pdf present at the start of a >>>> session, the first link in test.org (below) is validated. When ./ >>>> support/test-copy.pdf is added during the session, the second >>>> link is not validated and only the description of the link is >>>> output to test.html. >>>> >>>> ----- test.org >>>> * A test >>>> - link to [[file:support/test.pdf][test.pdf]] >>>> - link to [[file:support/test-copy.pdf][test-copy.pdf]] >>>> ----- >>>> >>>> If org-publish-validate-link is not used, then the link is placed >>>> correctly in the html output. >>>> >>>> I have read the org-mode manual, briefly searched the list >>>> archive, and read the function's documentation string, but didn't >>>> find anything that might alert me to this behavior. >>>> >>>> My expectation was that org-publish-validate-link would >>>> understand the org-mode publishing process and would validate >>>> links in the production environment that were correctly >>>> established in the publication location. >>>> >>>> I'm using Org-mode version 6.34trans (release_6.34c.89.g0c39) on >>>> emacs 23. >>>> >>>> All the best, >>>> Tom >>>> >>>> >>>> Thomas S. Dye, Ph.D. >>>> T. S. Dye & Colleagues, Archaeologists, Inc. >>>> Phone: (808) 529-0866 Fax: (808) 529-0884 >>>> http://www.tsdye.com >>>> >>>> >>>> _______________________________________________ >>>> Emacs-orgmode mailing list >>>> Please use `Reply All' to send replies to the list. >>>> Emacs-orgmode@gnu.org >>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>> >>> - Carsten >>> >>> >>> >> > > - Carsten > > > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: org-publish-validate-link 2010-02-23 16:46 ` org-publish-validate-link Thomas S. Dye @ 2010-02-23 17:30 ` Carsten Dominik 0 siblings, 0 replies; 9+ messages in thread From: Carsten Dominik @ 2010-02-23 17:30 UTC (permalink / raw) To: Thomas S. Dye; +Cc: org-mode mailing list On Feb 23, 2010, at 5:46 PM, Thomas S. Dye wrote: > > On Feb 22, 2010, at 8:38 PM, Carsten Dominik wrote: > >> >> On Feb 21, 2010, at 2:53 PM, Thomas S. Dye wrote: >> >>> Hi Carsten, >>> >>> Thanks for this. >>> >>> I add a new file that is the target for the link. It is copied to >>> its correct publication place. The exported html file contains a >>> new description of the file link, but with no active link. >>> >>> I force publishing using C-u prefix and the link is still not >>> active. >>> >>> I shut down emacs, re-start, force publishing, and the link is now >>> active. >> >> Hmm, strange that restarting Emacs was required..... >> >> Ah, I see now. Please pull again. From now on, when forcing >> publishing with a prefix argument, the validation list will also be >> recreated. >> >> - Carsten >> > > Thanks Carsten, > > This eliminates the need for a restart. It is still the case that > the link is invalid on the first publication try. It is valid after > force publishing, though. Yes. The validation function can be supplied by a user - maybe you can come up with something that works correctly for your setup and can predict the existence of that file, ahead of time. - Carsten - Carsten > > All the best, > Tom > >>> >>> All the best, >>> Tom >>> >>> On Feb 20, 2010, at 9:34 PM, Carsten Dominik wrote: >>> >>>> Hi THomas, >>>> >>>> org-publish-validate-link validate links to files that show up in >>>> the list >>>> `org-publish-files-alist'. THis list contains all file names >>>> that are considered part of a project and should be published. >>>> It is updated each time you issue >>>> a command to publish a project. >>>> >>>> Are you sure that you are republishing the document that should >>>> contain the link? If that document has not changed, it will not >>>> republish it, so the ink will also not be fixed. >>>> >>>> You can force republishing by calling your publish command with a >>>> C-u prefix. Have you tried that? >>>> >>>> - Carsten >>>> >>>> On Feb 17, 2010, at 9:50 PM, Thomas S. Dye wrote: >>>> >>>>> Aloha all, >>>>> >>>>> org-publish-validate-link rejects a valid link to a file when >>>>> the file is created during an editing session. >>>>> >>>>> With ./test.org and ./support/test.pdf present at the start of a >>>>> session, the first link in test.org (below) is validated. >>>>> When ./support/test-copy.pdf is added during the session, the >>>>> second link is not validated and only the description of the >>>>> link is output to test.html. >>>>> >>>>> ----- test.org >>>>> * A test >>>>> - link to [[file:support/test.pdf][test.pdf]] >>>>> - link to [[file:support/test-copy.pdf][test-copy.pdf]] >>>>> ----- >>>>> >>>>> If org-publish-validate-link is not used, then the link is >>>>> placed correctly in the html output. >>>>> >>>>> I have read the org-mode manual, briefly searched the list >>>>> archive, and read the function's documentation string, but >>>>> didn't find anything that might alert me to this behavior. >>>>> >>>>> My expectation was that org-publish-validate-link would >>>>> understand the org-mode publishing process and would validate >>>>> links in the production environment that were correctly >>>>> established in the publication location. >>>>> >>>>> I'm using Org-mode version 6.34trans (release_6.34c.89.g0c39) on >>>>> emacs 23. >>>>> >>>>> All the best, >>>>> Tom >>>>> >>>>> >>>>> Thomas S. Dye, Ph.D. >>>>> T. S. Dye & Colleagues, Archaeologists, Inc. >>>>> Phone: (808) 529-0866 Fax: (808) 529-0884 >>>>> http://www.tsdye.com >>>>> >>>>> >>>>> _______________________________________________ >>>>> Emacs-orgmode mailing list >>>>> Please use `Reply All' to send replies to the list. >>>>> Emacs-orgmode@gnu.org >>>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>>> >>>> - Carsten >>>> >>>> >>>> >>> >> >> - Carsten >> >> >> > - Carsten ^ permalink raw reply [flat|nested] 9+ messages in thread
* org-publish-validate-link @ 2008-10-31 4:40 Matthew Lundin 2008-11-02 7:52 ` org-publish-validate-link Carsten Dominik 0 siblings, 1 reply; 9+ messages in thread From: Matthew Lundin @ 2008-10-31 4:40 UTC (permalink / raw) To: emacs-orgmode Try as I might, I cannot seem to locate the org-publish-validate-link function described in the org-mode manual. http://orgmode.org/manual/Publishing-links.html#Publishing-links The function is present in older versions of org-publish.el but I can't find it 6.08c. Am I missing something? Thanks, Matt Lundin ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: org-publish-validate-link 2008-10-31 4:40 org-publish-validate-link Matthew Lundin @ 2008-11-02 7:52 ` Carsten Dominik 2008-11-02 13:55 ` org-publish-validate-link Bernt Hansen 0 siblings, 1 reply; 9+ messages in thread From: Carsten Dominik @ 2008-11-02 7:52 UTC (permalink / raw) To: Matthew Lundin; +Cc: emacs-orgmode Yes, I remember this function, but I don't remember why and when it got lost. Can you tell me a release where it ws still present? - Carsten On Oct 31, 2008, at 5:40 AM, Matthew Lundin wrote: > > Try as I might, I cannot seem to locate the org-publish-validate-link > function described in the org-mode manual. > > http://orgmode.org/manual/Publishing-links.html#Publishing-links > > The function is present in older versions of org-publish.el but I > can't find it 6.08c. Am I missing something? > > Thanks, > Matt Lundin > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: org-publish-validate-link 2008-11-02 7:52 ` org-publish-validate-link Carsten Dominik @ 2008-11-02 13:55 ` Bernt Hansen 2008-11-02 14:49 ` org-publish-validate-link Bernt Hansen 0 siblings, 1 reply; 9+ messages in thread From: Bernt Hansen @ 2008-11-02 13:55 UTC (permalink / raw) To: Carsten Dominik; +Cc: emacs-orgmode It exists in commit 8fd900c6842d6f8d216ae6989b34c8de4a874e79 Author: Carsten Dominik <dominik@nb-dominik2.science.uva.nl> Date: Thu Jan 31 11:32:08 2008 +0100 Release 4.40 git log -Sorg-publish-validate-link will show all commits in the history that changes that text -Bernt Carsten Dominik <dominik@science.uva.nl> writes: > Yes, I remember this function, but I don't remember why and when it > got lost. > > Can you tell me a release where it ws still present? > > - Carsten > > On Oct 31, 2008, at 5:40 AM, Matthew Lundin wrote: > >> >> Try as I might, I cannot seem to locate the org-publish-validate-link >> function described in the org-mode manual. >> >> http://orgmode.org/manual/Publishing-links.html#Publishing-links >> >> The function is present in older versions of org-publish.el but I >> can't find it 6.08c. Am I missing something? >> >> Thanks, >> Matt Lundin >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Remember: use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: org-publish-validate-link 2008-11-02 13:55 ` org-publish-validate-link Bernt Hansen @ 2008-11-02 14:49 ` Bernt Hansen 0 siblings, 0 replies; 9+ messages in thread From: Bernt Hansen @ 2008-11-02 14:49 UTC (permalink / raw) To: Carsten Dominik; +Cc: emacs-orgmode And it looks like it was removed in this commit commit 8ea076e2de2b3721bd813ea5a2df1b53d0c25055 Author: Bastien Guerry <bzg@altern.org> Date: Mon Mar 3 10:01:36 2008 +0000 Updated org-publish.el (now version 1.81) Updated the ChangeLog and the manual accordingly. Bernt Hansen <bernt@norang.ca> writes: > It exists in > > commit 8fd900c6842d6f8d216ae6989b34c8de4a874e79 > Author: Carsten Dominik <dominik@nb-dominik2.science.uva.nl> > Date: Thu Jan 31 11:32:08 2008 +0100 > > Release 4.40 > > > git log -Sorg-publish-validate-link > > will show all commits in the history that changes that text > > -Bernt > > > Carsten Dominik <dominik@science.uva.nl> writes: > >> Yes, I remember this function, but I don't remember why and when it >> got lost. >> >> Can you tell me a release where it ws still present? >> >> - Carsten >> >> On Oct 31, 2008, at 5:40 AM, Matthew Lundin wrote: >> >>> >>> Try as I might, I cannot seem to locate the org-publish-validate-link >>> function described in the org-mode manual. >>> >>> http://orgmode.org/manual/Publishing-links.html#Publishing-links >>> >>> The function is present in older versions of org-publish.el but I >>> can't find it 6.08c. Am I missing something? >>> >>> Thanks, >>> Matt Lundin >>> >>> >>> _______________________________________________ >>> Emacs-orgmode mailing list >>> Remember: use `Reply All' to send replies to the list. >>> Emacs-orgmode@gnu.org >>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Remember: use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-02-23 17:30 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-02-17 20:50 org-publish-validate-link Thomas S. Dye 2010-02-21 7:34 ` org-publish-validate-link Carsten Dominik [not found] ` <82370D6D-247B-40F1-979E-21833B38A649@tsdye.com> 2010-02-23 6:38 ` org-publish-validate-link Carsten Dominik 2010-02-23 16:46 ` org-publish-validate-link Thomas S. Dye 2010-02-23 17:30 ` org-publish-validate-link Carsten Dominik -- strict thread matches above, loose matches on Subject: below -- 2008-10-31 4:40 org-publish-validate-link Matthew Lundin 2008-11-02 7:52 ` org-publish-validate-link Carsten Dominik 2008-11-02 13:55 ` org-publish-validate-link Bernt Hansen 2008-11-02 14:49 ` org-publish-validate-link Bernt Hansen
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).