emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daniel Clemente <n142857@gmail.com>
To: emacs-orgmode@gnu.org
Subject: (require 'htmlize) in org-exp should have NOERROR set
Date: Mon, 17 Nov 2008 01:25:18 +0100	[thread overview]
Message-ID: <873ahri4gh.fsf@gmail.com> (raw)


  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	other threads:[~2008-11-17  0:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-17  0:25 Daniel Clemente [this message]
2008-11-17  4:54 ` (require 'htmlize) in org-exp should have NOERROR set Carsten Dominik
2008-11-17  8:46   ` Paul R
2008-11-17  8:52     ` Carsten Dominik
2008-11-17 10:06       ` Paul R

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873ahri4gh.fsf@gmail.com \
    --to=n142857@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).