emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] (require 'htmlize) in org-exp should have NOERROR set


From: Daniel Clemente
Subject: [Orgmode] (require 'htmlize) in org-exp should have NOERROR set
Date: Mon, 17 Nov 2008 01:25:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

  With org-mode 6.12a from Emacs 23 of 15-11-2008, I get the error
(file-error "Cannot open load file" "htmlize")
  when exporting to HTML this file:

----
#+BEGIN_SRC emacs-lisp
; beeeeep
(beep)
#+END_SRC
----

  The problem seems to be in org-export-format-source-code (org-exp.el):

      ;; We are exporting to HTML
      (condition-case nil (require 'htmlize) (nil t))

  That should be just (require 'htmlize nil t)
  I have also seen the idiom (condition-case nil (require 'htmlize) (error t)), 
but I think (require 'htmlize nil t) is cleaner because it doesn't throw errors.



-- Daniel





reply via email to

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