all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* RSS back-end: blogging with Org-mode is now easy
@ 2013-03-15 16:00 Bastien
  2013-07-09 23:31 ` flammable project
  0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2013-03-15 16:00 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

I added ox-rss.el, a rudimentary RSS 2.0 export back-end:
  http://orgmode.org/cgit.cgi/org-mode.git/plain/contrib/lisp/ox-rss.el?id=137207

See the commentary section for instructions on how to use it.

Basically, the idea is to define a new publishing project that
will take care of publishing a .xml RSS 2.0 feed.

Blog posts are top-level headlines.

One possibility to use this for a blog is to maintain an .org
file with the summary of your headlines in a separate files as
top-level entries, then to export this file as a RSS feed that
you can link anywhere else on your website.

I plan to include this in 8.0 unless it's too buggy or useless.

Please test this heavily and let me know if it works for you!

Thanks,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: RSS back-end: blogging with Org-mode is now easy
  2013-03-15 16:00 RSS back-end: blogging with Org-mode is now easy Bastien
@ 2013-07-09 23:31 ` flammable project
  2013-07-10  9:54   ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: flammable project @ 2013-07-09 23:31 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2869 bytes --]

Hi Bastien,

I'm trying to use ox-rss to generate a rss feed but I'm facing an error :

*let*: Symbol's function definition is void: url-encode-url*
*
*
I use the latest git commit, with Emacs 23.4.1 on Xubuntu 13.04

Here is the file I want to export as RSS Feed.

-----------8<----------------------------------------
#+RSS_EXTENSION: xml
#+RSS_IMAGE_URL: http://xxxx.xxxx.free.fr/rss_icon.png
#+HTML_LINK_HOME: http://xxxx.xxxx.free.fr/

* [[file:2013_10_12.org]]            :Blog:
:PROPERTIES:
:PUBDATE: <2013-05-12 Sat>
:ID:       9e49dacc-00a6-4f5a-9aef-59e881f84faf
:END:


* [[file:2013_03_28.org]]       :Blog:
:PROPERTIES:
:PUBDATE: <2013-03-28 Thu>
:ID:       c3e0e2fb-114c-4300-abf1-f9f0b06cb2c4
:END:

-----------8<----------------------------------------

Here is the 2013_05_12.org file :

-----------8<----------------------------------------
* Title of the Blog post for 2013_05_12

dcsdcdscsc
dcsdcsdd

-----------8<----------------------------------------

Here is the 2013_03_28.org file:
-----------8<----------------------------------------
* Title of the Blog post for 2013_03_28

nhnghngn
nhgnhnhngh
-----------8<----------------------------------------

when I use org-export-rss-as/to-rss I have the same error : *let*: Symbol's
function definition is void: url-encode-url*


I also tried to use the project alist approach.
-----------8<----------------------------------------

(add-to-list
  'org-publish-project-alist
  '("homepage_rss"
    :base-directory "~/website/src/posts/"
    :base-extension "org"
    :rss-image-url "http://xxxx.xxxx.free.fr/rss_icon.png"
    :html-link-home "http://xxxx.xxxx.free.fr/"
    :rss-extension "xml"
    :publishing-directory "~/website/public_html/"
    :publishing-function (org-rss-publish-to-rss)
    :section-numbers nil
    :exclude ".*"
    :include ("index.org")

    :table-of-contents nil))

-----------8<----------------------------------------


Same error.

Bastien, could you please provide an exampl to illustrate the OX-RSS export
engine?

Thanks

Basile


2013/3/15 Bastien <bzg@altern.org>

> Hi all,
>
> I added ox-rss.el, a rudimentary RSS 2.0 export back-end:
>
> http://orgmode.org/cgit.cgi/org-mode.git/plain/contrib/lisp/ox-rss.el?id=137207
>
> See the commentary section for instructions on how to use it.
>
> Basically, the idea is to define a new publishing project that
> will take care of publishing a .xml RSS 2.0 feed.
>
> Blog posts are top-level headlines.
>
> One possibility to use this for a blog is to maintain an .org
> file with the summary of your headlines in a separate files as
> top-level entries, then to export this file as a RSS feed that
> you can link anywhere else on your website.
>
> I plan to include this in 8.0 unless it's too buggy or useless.
>
> Please test this heavily and let me know if it works for you!
>
> Thanks,
>
> --
>  Bastien
>
>
>

[-- Attachment #2: Type: text/html, Size: 6592 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: RSS back-end: blogging with Org-mode is now easy
  2013-07-09 23:31 ` flammable project
@ 2013-07-10  9:54   ` Bastien
  2013-07-10 18:04     ` flammable project
  0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2013-07-10  9:54 UTC (permalink / raw)
  To: flammable project; +Cc: emacs-orgmode

flammable project <flammable.project@gmail.com> writes:

> I'm trying to use ox-rss to generate a rss feed but I'm facing an
> error : 
>
> let*: Symbol's function definition is void: url-encode-url

Mh, yes, `url-encode-url' is not available in Emacs <24.1.

I just mentioned this in the comment section, thanks for reporting
this problem.

2012-05-09  Chong Yidong  <cyd@gnu.org>

	* url-util.el (url-encode-url): New function for URL quoting.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: RSS back-end: blogging with Org-mode is now easy
  2013-07-10  9:54   ` Bastien
@ 2013-07-10 18:04     ` flammable project
  2013-07-10 19:53       ` flammable project
  0 siblings, 1 reply; 7+ messages in thread
From: flammable project @ 2013-07-10 18:04 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 602 bytes --]

OK so let's move on Emacs 24...

Thanks for the rapid answer!

Basile


2013/7/10 Bastien <bzg@gnu.org>

> flammable project <flammable.project@gmail.com> writes:
>
> > I'm trying to use ox-rss to generate a rss feed but I'm facing an
> > error :
> >
> > let*: Symbol's function definition is void: url-encode-url
>
> Mh, yes, `url-encode-url' is not available in Emacs <24.1.
>
> I just mentioned this in the comment section, thanks for reporting
> this problem.
>
> 2012-05-09  Chong Yidong  <cyd@gnu.org>
>
>         * url-util.el (url-encode-url): New function for URL quoting.
>
> --
>  Bastien
>

[-- Attachment #2: Type: text/html, Size: 1210 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: RSS back-end: blogging with Org-mode is now easy
  2013-07-10 18:04     ` flammable project
@ 2013-07-10 19:53       ` flammable project
  2013-07-11  6:33         ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: flammable project @ 2013-07-10 19:53 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 3207 bytes --]

Ok so mow I tried "GNU Emacs 24.2.1 (i686-pc-linux-gnu, GTK+ Version 3.6.4)
of 2013-04-09 on komainu, modified by Debian" but with the same issue.

here is my .emacs config:

;;
;; ORG Mode
;;
(setq load-path (cons "~/.emacs.d/org-mode/lisp" load-path))
(setq load-path (cons "~/.emacs.d/org-mode/contrib/lisp" load-path))
(require 'org-install)
(require 'ox-rss)
;; Auto load OrgMode with "*.org" files
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
;;
;; EXPORT
;;
;; Don't use postamble to exported HTML
(setq org-export-html-postamble nil)

;; re-export everything regardless of whether or not it's been modified
(setq org-publish-use-timestamps-flag nil)
;;
;; ORG publish function
;;
(setq org-publish-project-alist
           '(
     ("orgfiles"
               :base-directory "/home/xxxxx/Dropbox/website/src/"
               :base-extension "org"
               :publishing-directory ""/home/xxxxx/Dropbox/website
/public_html/"
       :recursive t
       :html-postamble nil
       :publishing-function org-html-publish-to-html)



              ("images"
               :base-directory ""/home/xxxxx/Dropbox/website/src/"
       :recursive t
               :base-extension "jpg\\|gif\\|png\\|ico"
               :publishing-directory ""/home/xxxxx/Dropbox/website
/public_html/"
               :publishing-function org-publish-attachment)

      ("style"
               :base-directory ""/home/xxxxx/Dropbox/website/src/"
       :recursive t
               :base-extension "js\\|css\\|otf\\|eot\\|svg\\|ttf\\|woff"
               :publishing-directory ""/home/xxxxx/Dropbox/website
/public_html/"
               :publishing-function org-publish-attachment)

       ("sessions"
               :base-directory ""/home/xxxxx/Dropbox/website/src/sessions/"
               :base-extension "css\\|js\\|png"
               :publishing-directory ""/home/xxxxx/Dropbox/website
/public_html/sessions/"
               :publishing-function org-publish-attachment)

       ("rss_posts"
:base-directory ""/home/xxxxx/Dropbox/website/src/posts/"
:base-extension "org"
:rss-image-url "http://xxxx.xxxx.free.fr/fp_icon.png"
:html-link-home "http://xxxx.xxxx.free.fr"
:rss-extension "xml"
:publishing-directory "/home/xxxx/Dropbox/website/public_html/posts/"
:publishing-function (org-rss-publish-to-rss)
:section-numbers nil
:exclude ".*"
:include ("index.org")
:table-of-contents nil)

              ("website" :components ("orgfiles" "images" "style"
"sessions" "rss_posts"))
     )
   )


Any ideas?



2013/7/10 flammable project <flammable.project@gmail.com>

> OK so let's move on Emacs 24...
>
> Thanks for the rapid answer!
>
> Basile
>
>
> 2013/7/10 Bastien <bzg@gnu.org>
>
>> flammable project <flammable.project@gmail.com> writes:
>>
>> > I'm trying to use ox-rss to generate a rss feed but I'm facing an
>> > error :
>> >
>> > let*: Symbol's function definition is void: url-encode-url
>>
>> Mh, yes, `url-encode-url' is not available in Emacs <24.1.
>>
>> I just mentioned this in the comment section, thanks for reporting
>> this problem.
>>
>> 2012-05-09  Chong Yidong  <cyd@gnu.org>
>>
>>         * url-util.el (url-encode-url): New function for URL quoting.
>>
>> --
>>  Bastien
>>
>
>

[-- Attachment #2: Type: text/html, Size: 10974 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: RSS back-end: blogging with Org-mode is now easy
  2013-07-10 19:53       ` flammable project
@ 2013-07-11  6:33         ` Bastien
  2013-07-11 21:24           ` flammable project
  0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2013-07-11  6:33 UTC (permalink / raw)
  To: flammable project; +Cc: emacs-orgmode

flammable project <flammable.project@gmail.com> writes:

> Any ideas?

Can you check if you have `url-encode-url'?

C-h f url-encode-url RET 

will tell you.  It is an autoloaded function, so you
don't need to (require 'url-util), but if you can browse
your Emacs sources, it should be in there.

HTT,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: RSS back-end: blogging with Org-mode is now easy
  2013-07-11  6:33         ` Bastien
@ 2013-07-11 21:24           ` flammable project
  0 siblings, 0 replies; 7+ messages in thread
From: flammable project @ 2013-07-11 21:24 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1013 bytes --]

So here we are,

The package provided in (X)ubuntu 13.4 is this one : "GNU Emacs 24.2.1
(i686-pc-linux-gnu, GTK+ Version 3.6.4) of 2013-04-09 on komainu, modified
by Debian".

I tried "C-h f url-encode-url RET" but wihout the expected results.

I tried to find something with google and I seems that the version of Emacs
must greater than 24.2.1.
I used the PAA for Damien CASSOU, install Emacs 24.3.1. The command
'url-encode-url' was listed in.

I tried both org-rss-export-as/to-rss and it worked. I also tested the
 org-publish-project-alist approach with success.

So my problem comes from the Emacs version. Thanks for your help!


2013/7/11 Bastien <bzg@gnu.org>

> flammable project <flammable.project@gmail.com> writes:
>
> > Any ideas?
>
> Can you check if you have `url-encode-url'?
>
> C-h f url-encode-url RET
>
> will tell you.  It is an autoloaded function, so you
> don't need to (require 'url-util), but if you can browse
> your Emacs sources, it should be in there.
>
> HTT,
>
> --
>  Bastien
>

[-- Attachment #2: Type: text/html, Size: 2186 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-07-11 21:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-15 16:00 RSS back-end: blogging with Org-mode is now easy Bastien
2013-07-09 23:31 ` flammable project
2013-07-10  9:54   ` Bastien
2013-07-10 18:04     ` flammable project
2013-07-10 19:53       ` flammable project
2013-07-11  6:33         ` Bastien
2013-07-11 21:24           ` flammable project

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.