From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Use headings in sitemap Date: Mon, 31 Oct 2016 09:04:40 +0100 Message-ID: <871syxgd0n.fsf@nicolasgoaziou.fr> References: <87fuojl53s.fsf@dell-desktop.WORKGROUP> <87y41uq1yo.fsf@nicolasgoaziou.fr> <87bmyqq6az.fsf@gmx.us> <878tttq368.fsf@nicolasgoaziou.fr> <87d1ihhh49.fsf@nicolasgoaziou.fr> <87fund5gsw.fsf@dell-desktop.WORKGROUP> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c17aF-0001E2-L5 for emacs-orgmode@gnu.org; Mon, 31 Oct 2016 04:04:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c17aB-0007Ld-90 for emacs-orgmode@gnu.org; Mon, 31 Oct 2016 04:04:43 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:53769) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c17aB-0007LK-3J for emacs-orgmode@gnu.org; Mon, 31 Oct 2016 04:04:39 -0400 In-Reply-To: <87fund5gsw.fsf@dell-desktop.WORKGROUP> (Thibault Marin's message of "Sun, 30 Oct 2016 22:38:23 -0500") 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: Thibault Marin Cc: emacs-orgmode@gnu.org, Rasmus Pank Roulund Hello, Thibault Marin writes: > I don't have the `directory-name-p' function (I am still on emacs 24), > so I made a simplistic one: (string= file (file-name-sans-extension > file)), it seems to be sufficient for my test-case. I don't know if not > being on 25 will cause other issues. Fixed. > I also had to add a call to `expand-file-name' around the definition of > the `root' variable (in `org-publish-sitemap') to account for the fact > that my :base-directory is defined with "~/" instead of "/home/...". Fixed, too. > Another thing I had to modify was the :exclude pattern which was > mis-formed earlier ("setup.org\\|website.org\\|rss.org" changed to > "setup\\.org\\|website\\.org\\|rss\\.org"). The earlier version of the > pattern results in an empty file list but was not a problem on the older > version of the sitemap tools. I'm not sure to understand. Why resulting in an empty file list is a problem? Is there an error in the new "ox-publish.el"? > (let ((date > (org-element-interpret-data > (org-publish-find-property entry :date)))) There is also `org-publish-find-date', which is sligthly different. Thanks for the feedback. Regards, -- Nicolas Goaziou