From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: org-publish with latest changes? Date: Sun, 17 Oct 2010 18:09:53 +0200 Message-ID: <87sk04vm0e.wl%dmaus@ictsoc.de> References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============1752264249==" Return-path: Received: from [140.186.70.92] (port=43866 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7W6C-0005ju-4i for emacs-orgmode@gnu.org; Sun, 17 Oct 2010 12:28:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7Vo9-0008E3-Ju for emacs-orgmode@gnu.org; Sun, 17 Oct 2010 12:10:02 -0400 Received: from mysql-slave-app3.mysql1.xlhost.de ([213.202.242.107]:38091 helo=mysql1.xlhost.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7Vo9-0008DH-F0 for emacs-orgmode@gnu.org; Sun, 17 Oct 2010 12:10:01 -0400 In-Reply-To: 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: Guy Wiener Cc: emacs-orgmode@gnu.org --===============1752264249== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Sun_Oct_17_18:09:53_2010-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Sun_Oct_17_18:09:53_2010-1 Content-Type: text/plain; charset=US-ASCII At Wed, 13 Oct 2010 10:54:01 +0200, Guy Wiener wrote: > Hello everyone, > I am using org-publish to publish some document on my web page. I would > really like to add to that some notification of the latest changes - E.g., > an RSS of the recently changed headlines. Is there some way to hack that? I > can use diff and get the textual changes from the latest version, but I > think that some way to mark the headlines whose content has changed will be > better. > > Any ideas? For publishing news about changed headlines you might use the still-prepared-for-inclusion-damn-i-am-late-with-the-documentation Org to Atom exporter[1]. It uses a property called :atom_updated: that is used for the atom:updated element which indicates ... an update. The somewhat tricky part is how to determine whether an entry has changed or not. Maybe something like this: - define the things that count as a changed entry (e.g. entry title, text, scheduled date, keyword) - write a function that grabs these things, does some normalization (e.g. remove whitespace and control characters, remove text properties), concat them together, and calculate a sha1 checksum for the resulting string - compare this sha1 with the previus sha1 which is stored in a define property - if the hashes differ, store the new one and update the atom_updated property - hook this function in the exporter, maybe via `org-export-first-hook' Best, -- David [1] http://ictsoc.de/code/org-atom.html -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Sun_Oct_17_18:09:53_2010-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAky7H9EACgkQma24O1pEeOaKWwEAwcESk/EE57/W9lNm89X4u0fo lkPjVuB31qRaY435YP8A/iMCIg/qVujEVWC+u1jjRVdHyJxs1gbWtXBplQK3srey =Ibkr -----END PGP SIGNATURE----- --pgp-sign-Multipart_Sun_Oct_17_18:09:53_2010-1-- --===============1752264249== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1752264249==--