emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Daniel Clemente <n142857@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: (require 'htmlize) in org-exp should have NOERROR set
Date: Mon, 17 Nov 2008 05:54:33 +0100	[thread overview]
Message-ID: <37E7217E-420D-474A-B178-AD54D15878C8@uva.nl> (raw)
In-Reply-To: <873ahri4gh.fsf@gmail.com>

Fixed, thanks.

- Carsten

On Nov 17, 2008, at 1:25 AM, Daniel Clemente wrote:

>
>  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
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2008-11-17  4:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-17  0:25 (require 'htmlize) in org-exp should have NOERROR set Daniel Clemente
2008-11-17  4:54 ` Carsten Dominik [this message]
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=37E7217E-420D-474A-B178-AD54D15878C8@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=n142857@gmail.com \
    /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).