emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Sebastien Vauban <wxhgmqzgwmuf@spammotel.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: [bug] "Invalid face" when exporting code block to HTML
Date: Thu, 05 Jan 2012 18:18:42 -0500	[thread overview]
Message-ID: <16127.1325805522@alphaville.americas.hpqcorp.net> (raw)
In-Reply-To: Message from "Sebastien Vauban" <wxhgmqzgwmuf@spammotel.com> of "Thu, 05 Jan 2012 23:06:48 +0100." <80aa61ls7b.fsf@somewhere.org>

Sebastien Vauban <wxhgmqzgwmuf@spammotel.com> wrote:

> Hello,
> 
> Not a good day for me, today...
> 
> * Summary
> 
> Quite "simple": the following block generates an "Invalid face" error when
> exported to HTML.
> 
> #+begin_src sh
> svn checkout http://svn/trunk/dev/ mydev
> #+end_src
> 
> This worked yesterday. Does it ring a bell to someone? Could some recent
> commit be responsible of this?
> 

Can't reproduce it either with a slightly earlier version of org (.19)
or latest (.44 - note that I'm ahead of origin/master by 3 commits).

Try evaluating this expression which is the one that gave you the error:

(htmlize-face-size 'default)

I get 113 in my setup, so this looks like an htmlize error. I don't
understand where the nil face (which is indeed invalid) comes from.

Also htmlize-face-size wraps the face-attribute call inside an
(ignore-errors ...)  form, so it should *not* blow up. Are you using
some old outdated htmlize code by any chance?

Nick

> * Version info
> 
> GNU Emacs 24.0.92.1 (i386-mingw-nt5.1.2600) of 2011-12-07 on MARVIN
> 
> Org-mode version 7.8.03 (release_7.8.03.31.g28541)
> 
> * Backtrace
> 
> #+begin_src emacs-lisp
> Debugger entered--Lisp error: (error "Invalid face")
>   internal-get-lisp-face-attribute(nil :height nil)
>   face-attribute(nil :height)
>   ...
>   htmlize-face-size(default)
>   ...

  reply	other threads:[~2012-01-05 23:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-05 22:06 [bug] "Invalid face" when exporting code block to HTML Sebastien Vauban
2012-01-05 23:18 ` Nick Dokos [this message]
2012-01-06 13:28   ` Sebastien Vauban

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=16127.1325805522@alphaville.americas.hpqcorp.net \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=wxhgmqzgwmuf@spammotel.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).