emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* (require 'htmlize) in org-exp should have NOERROR set
@ 2008-11-17  0:25 Daniel Clemente
  2008-11-17  4:54 ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Clemente @ 2008-11-17  0:25 UTC (permalink / raw)
  To: emacs-orgmode


  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

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

end of thread, other threads:[~2008-11-17 10:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-17  0:25 (require 'htmlize) in org-exp should have NOERROR set Daniel Clemente
2008-11-17  4:54 ` Carsten Dominik
2008-11-17  8:46   ` Paul R
2008-11-17  8:52     ` Carsten Dominik
2008-11-17 10:06       ` Paul R

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).