From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: org-publish-validate-link Date: Tue, 23 Feb 2010 06:46:03 -1000 Message-ID: <25DCDCA8-F58D-4605-8654-4BF4D0E2A8FD@tsdye.com> References: <82370D6D-247B-40F1-979E-21833B38A649@tsdye.com> <5F363AC9-FB3D-4E59-BF73-E960132B0CC6@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Njxtm-0000Rj-EU for emacs-orgmode@gnu.org; Tue, 23 Feb 2010 11:46:14 -0500 Received: from [140.186.70.92] (port=38860 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Njxtl-0000Ra-HQ for emacs-orgmode@gnu.org; Tue, 23 Feb 2010 11:46:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Njxtk-0004e9-EY for emacs-orgmode@gnu.org; Tue, 23 Feb 2010 11:46:13 -0500 Received: from outbound-mail-353.bluehost.com ([66.147.249.14]:48947) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Njxtk-0004dY-4P for emacs-orgmode@gnu.org; Tue, 23 Feb 2010 11:46:12 -0500 In-Reply-To: <5F363AC9-FB3D-4E59-BF73-E960132B0CC6@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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 > > >