[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] [PATCH 1/2] Load XML library if necessary.

From: Carsten Dominik
Subject: Re: [Orgmode] [PATCH 1/2] Load XML library if necessary.
Date: Wed, 7 Jul 2010 08:50:48 +0200

Appied, thanks.

- Carsten

On Jul 7, 2010, at 8:22 AM, David Maus wrote:

* org-feed.el (org-feed-unescape, org-feed-parse-atom-feed): Load XML
library if necessary.

Function that use xml.el must require 'xml to make sure it is loaded
at runtime.
lisp/org-feed.el |    2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lisp/org-feed.el b/lisp/org-feed.el
index 999bfd8..e41ad97 100644
--- a/lisp/org-feed.el
+++ b/lisp/org-feed.el
@@ -270,6 +270,7 @@ have been saved."

(defun org-feed-unescape (s)
  "Unescape protected entities in S."
+  (require 'xml)
  (let ((re (concat "&\\("
                    (mapconcat 'car xml-entity-alist "\\|")
@@ -630,6 +631,7 @@ containing the properties `:guid' and `:item- full-text'.

The `:item-full-text' property actually contains the sexp
formatted as a string, not the original XML data."
+  (require 'xml)
  (with-current-buffer buffer
    (let ((feed (car (xml-parse-region (point-min) (point-max)))))

Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.

- Carsten

reply via email to

[Prev in Thread] Current Thread [Next in Thread]