emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org-mode version 6.30trans; HTML exporting problem
@ 2009-09-21 16:03 Andrew Stribblehill
  2009-09-21 16:17 ` Benjamin Andresen
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Stribblehill @ 2009-09-21 16:03 UTC (permalink / raw)
  To: emacs-orgmode

Emacs  : GNU Emacs 23.0.60.1 (x86_64-pc-linux-gnu, GTK+ Version 2.12.9)
 of 2008-03-19 on yellow, modified by Debian
Package: Org-mode version 6.30trans (git pulled this afternoon)

I have the following file:

==========================
#+BEGIN_SRC conf
CONF=/etc/passwd
EXTRAFLAGS="--snark"
#+END_SRC
==========================

When I try to export it to HTML, I get an error, "Invalid face".
Here's the backtrace:

========================
Debugger entered--Lisp error: (error "Invalid face")
  internal-get-lisp-face-attribute(nil :height nil)
  face-attribute(nil :height)
  htmlize-face-size(default)
  htmlize-face-to-fstruct(default)
  htmlize-make-face-map((default font-lock-string-face
font-lock-variable-name-face))
  htmlize-buffer-1()
  htmlize-region(1 22)
  org-export-htmlize-region-for-paste(1 22)
  org-export-format-source-code-or-example(html #("conf" 0 4
(fontified t font-lock-fontified t)) #("EXTRAFLAGS=\"--snark\"\n" 0 14
(fontified t font-lock-fontified t) 14 15 (fontified t
font-lock-fontified t) 15 16 (fontified t font-lock-fontified t) 16 17
(fontified t font-lock-fontified t) 17 18 (fontified t
font-lock-fontified t) 18 19 (fontified t font-lock-fontified t) 19 20
(fontified t font-lock-fontified t) 20 21 (fontified t
font-lock-fontified t)) "" 0)
  org-export-replace-src-segments-and-examples(html)
  org-export-preprocess-string(#("#+BEGIN_SRC
conf\nCONF=/etc/passwd\nEXTRAFLAGS=\"--snark\"\n#+END_SRC\n" 0 16
(fontified t font-lock-fontified t auto-composed t face org-meta-line
font-lock-multiline t) 16 17 (fontified t font-lock-fontified t
auto-composed t font-lock-multiline t face org-meta-line) 17 23
(fontified t font-lock-fontified t auto-composed t font-lock-multiline
t face org-block :org-license-to-kill t) 23 24 (fontified t
font-lock-fontified t auto-composed t font-lock-multiline t face
org-block :org-license-to-kill t) 24 25 (fontified t
font-lock-fontified t auto-composed t font-lock-multiline t face
org-block :org-license-to-kill t) 25 26 (fontified t
font-lock-fontified t auto-composed t font-lock-multiline t face
org-block :org-license-to-kill t) 26 27 (fontified t
font-lock-fontified t auto-composed t font-lock-multiline t face
org-block :org-license-to-kill t) 27 28 (fontified t
font-lock-fontified t auto-composed t font-lock-multiline t face
org-block :org-license-to-kill t) 28 29 (fontified t
font-lock-fontified t auto-composed t font-lock-multiline t face
org-block :org-license-to-kill t) 29 30 (fontified t
font-lock-fontified t auto-composed t font-lock-multiline t face
org-block :org-license-to-kill t) 30 31 (fontified t
font-lock-fontified t auto-composed t font-lock-multiline t face
org-block :org-license-to-kill t) 31 32 (fontified t
font-lock-fontified t auto-composed t font-lock-multiline t face
org-block :org-license-to-kill t) 32 33 (fontified t
font-lock-fontified t auto-composed t font-lock-multiline t face
org-block :org-license-to-kill t) 33 34 (fontified t
font-lock-fontified t auto-composed t font-lock-multiline t face
org-block :org-license-to-kill t) 34 48 (fontified t
font-lock-fontified t auto-composed t font-lock-multiline t face
org-block) 48 49 (fontified t font-lock-fontified t auto-composed t
font-lock-multiline t face org-block) 49 50 (fontified t
font-lock-fontified t auto-composed t font-lock-multiline t face
org-block) 50 51 (fontified t font-lock-fontified t auto-composed t
font-lock-multiline t face org-block) 51 52 (fontified t
font-lock-fontified t auto-composed t font-lock-multiline t face
org-block) 52 53 (fontified t font-lock-fontified t auto-composed t
font-lock-multiline t face org-block) 53 54 (fontified t
font-lock-fontified t auto-composed t font-lock-multiline t face
org-block) 54 55 (fontified t font-lock-fontified t auto-composed t
font-lock-multiline t face org-meta-line) 55 64 (fontified t
font-lock-fontified t auto-composed t face org-meta-line
font-lock-multiline t) 64 65 (fontified t auto-composed t))
:emph-multiline t :for-html t :skip-before-1st-heading nil :drawers
nil :todo-keywords t :tags not-in-toc :priority nil :footnotes t
:timestamps t :archived-trees headline :select-tags ("export")
:exclude-tags ("noexport") :add-text nil :LaTeX-fragments nil)
  org-export-as-html(nil nil (:buffer-will-be-killed t :base-directory
"~/org/" :base-extension "org" :publishing-directory
"~/public_html/org/" :style-include-default nil :style "<link
rel=stylesheet href=\"org.css\" type=\"text/css\">") nil nil
"/home/stribb/www/org/")
  org-publish-org-to("html" (:base-directory "~/org/" :base-extension
"org" :publishing-directory "~/public_html/org/"
:style-include-default nil :style "<link rel=stylesheet
href=\"org.css\" type=\"text/css\">") "/home/stribb/org/bug.org"
"/home/stribb/www/org/")
  org-publish-org-to-html((:base-directory "~/org/" :base-extension
"org" :publishing-directory "~/public_html/org/"
:style-include-default nil :style "<link rel=stylesheet
href=\"org.css\" type=\"text/css\">") "/home/stribb/org/bug.org"
"/home/stribb/www/org/")
  org-publish-file("/home/stribb/org/bug.org")
  byte-code(... [force org-publish-use-timestamps-flag
org-publish-file buffer-file-name] 2)
  org-publish-current-file(nil)
  call-interactively(org-publish-current-file)
  org-export(nil)
  call-interactively(org-export nil nil)
========================

current state:
==============
(setq
 org-clock-in-switch-to-state "DOING"
 org-todo-keyword-faces '(("BLOCKING" . org-agenda-dimmed-todo-face)
			  ("DOING" . stribb/org-agenda-doing))
 org-agenda-clockreport-parameter-plist '(:link t :maxlevel 2 :effort t)
 org-agenda-custom-commands '(("U" "unscheduled TODOs" alltodo ""
			       ((org-agenda-skip-function
				 (quote
				  (org-agenda-skip-subtree-if (quote scheduled)
				   (quote deadline))
				  )
				 )
				)
			       )
			      ("S" "snippet view" agenda ""
			       ((org-agenda-show-log t)
				(org-agenda-log-mode-items (quote (state)))
				(org-agenda-archives-mode t)
				(org-agenda-include-inactive-timestamps t)
				(org-agenda-clockreport-mode t))
			       )
			      )
 org-agenda-files '("~/org/money.org" "~/org/kill-all-gateways.org"
		    "~/org/notes.org" "~/org/objectives.org" "~/org/perms.org"
		    "~/org/todo.org" "~/org/whisky.org")
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-clock-history-length 35
 org-clock-in-prepare-hook '(stribb/org-mode-ask-effort)
 org-babel-interpreters '("python" "sh" "emacs-lisp")
 org-src-lang-modes '(("ocaml" . tuareg) ("elisp" . emacs-lisp)
		      ("ditaa" . artist))
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-todo-keywords '((sequence "TODO(t)" "DOING(w!)" "|" "DONE(d!)"
		      "CANCELLED(c@)")
		     (sequence "BLOCKING(b@/!)"))
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-agenda-start-with-follow-mode t
 org-default-notes-file "~/org/refile.org"
 org-directory "~/org/"
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
		  org-cycle-show-empty-lines
		  org-optimize-window-after-visibility-change)
 org-publish-project-alist '(("org" :base-directory "~/org/" :base-extension
			      "org" :publishing-directory "~/public_html/org/"
			      :style-include-default nil :style
			      "<link rel=stylesheet href=\"org.css\" type=\"text/css\">")
			     )
 org-refile-target-verify-function '(lambda nil
				     (not (member "ARCHIVE" (org-get-tags))))
 org-mode-hook '((lambda nil (auto-fill-mode 1))
		 #[nil "\300\301\302\303\304$\207"
		   [org-add-hook change-major-mode-hook org-show-block-all
		    append local]
		   5]
		 )
 org-clock-out-remove-zero-time-clocks t
 org-refile-targets '((org-agenda-files :maxlevel . 2))
 org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe
			  org-babel-execute-src-block-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-refile-use-outline-path 'file
 org-log-into-drawer t
 org-export-interblocks '((src org-babel-exp-inline-src-blocks)
			  (r org-export-interblocks-format-R)
			  (R org-export-interblocks-format-R))
 org-occur-hook '(org-first-headline-recenter)
 org-remember-templates '(("refile" 114
			   "* %?\n  :PROPERTIES:\n  :Filed: %U\n  :END:\n%i\n  %a" nil nil)
			  )
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-blocks nil)
		     (comment org-export-blocks-format-comment t)
		     (ditaa org-export-blocks-format-ditaa nil)
		     (dot org-export-blocks-format-dot nil)
		     (r org-export-blocks-format-R nil)
		     (R org-export-blocks-format-R nil))
 )

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

* Re: Org-mode version 6.30trans; HTML exporting problem
  2009-09-21 16:03 Org-mode version 6.30trans; HTML exporting problem Andrew Stribblehill
@ 2009-09-21 16:17 ` Benjamin Andresen
  2009-09-21 16:31   ` Andrew Stribblehill
  0 siblings, 1 reply; 3+ messages in thread
From: Benjamin Andresen @ 2009-09-21 16:17 UTC (permalink / raw)
  To: emacs-orgmode

Andrew Stribblehill <ads@wompom.org> writes:

> [snip]

do you have org-mode/contrib/lisp at the beginning of your load-path?

The error you're seeing seems to be from using an old version of htmlize
(Maybe from a different source?). The one in contrib should work.

HTH,
benny

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

* Re: Re: Org-mode version 6.30trans; HTML exporting problem
  2009-09-21 16:17 ` Benjamin Andresen
@ 2009-09-21 16:31   ` Andrew Stribblehill
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Stribblehill @ 2009-09-21 16:31 UTC (permalink / raw)
  To: Benjamin Andresen; +Cc: emacs-orgmode

Good call. Works now, thanks.

(Well, there's the oddity that the <h1> is CONF=/etc/passwd, but I
think we can forgive that.)

2009/9/21 Benjamin Andresen <bandresen@gmail.com>:
> Andrew Stribblehill <ads@wompom.org> writes:
>
>> [snip]
>
> do you have org-mode/contrib/lisp at the beginning of your load-path?
>
> The error you're seeing seems to be from using an old version of htmlize
> (Maybe from a different source?). The one in contrib should work.
>
> HTH,
> benny
>
>
> _______________________________________________
> 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
>

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

end of thread, other threads:[~2009-09-21 16:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-21 16:03 Org-mode version 6.30trans; HTML exporting problem Andrew Stribblehill
2009-09-21 16:17 ` Benjamin Andresen
2009-09-21 16:31   ` Andrew Stribblehill

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).