Re: [O] Code blocks (partially) inherit buffer colors

2013-03-04 Thread Bastien
Hi Richard,

Richard Stanton stan...@haas.berkeley.edu writes:

 Thanks for the suggestion, Eric. Following the instructions, I fired
 up Emacs, loaded files of various types, then ran the command

 org-html-htmlize-generate-css

 Unfortunately, this resulted in an error dump:

 Debugger entered--Lisp error: (error Invalid face
 popup-mouse-face)

I don't see any trace of popup-mouse-face in Emacs or in Org,
so my guess is that it must come from a downloaded package?

Just a shot in the dark, of course.

HTH,

-- 
 Bastien



Re: [O] Code blocks (partially) inherit buffer colors

2013-03-04 Thread Richard Stanton
Hi Bastien:

I just had the same thought, and found that it appears in a package I load
called popup. Uninstalling this package allows
org-html-htmlize-generate-css to run to completion (though this seems a
bit of a heavy-handed way to get it to run!)

Best,

Richard

On 3/4/13 9:48 AM, Bastien b...@altern.org wrote:

Hi Richard,

Richard Stanton stan...@haas.berkeley.edu writes:

 Thanks for the suggestion, Eric. Following the instructions, I fired
 up Emacs, loaded files of various types, then ran the command

 org-html-htmlize-generate-css

 Unfortunately, this resulted in an error dump:

 Debugger entered--Lisp error: (error Invalid face
 popup-mouse-face)

I don't see any trace of popup-mouse-face in Emacs or in Org,
so my guess is that it must come from a downloaded package?

Just a shot in the dark, of course.

HTH,

-- 
 Bastien




Re: [O] Code blocks (partially) inherit buffer colors

2013-03-02 Thread Richard Stanton
-variables) (goto-char (point-min)) (when 
htmlize-html-major-mode (funcall htmlize-html-major-mode)) (set 
(make-local-variable (quote htmlize-buffer-places)) (symbol-plist places)) 
(run-hooks (quote htmlize-after-hook)) (buffer-enable-undo)) (setq completed t) 
htmlbuf) (when (not completed) (kill-buffer htmlbuf)) 
(htmlize-delete-tmp-overlays
  htmlize-buffer-1()
  (save-restriction (narrow-to-region beg end) (htmlize-buffer-1))
  (let ((htmlbuf (save-restriction (narrow-to-region beg end) 
(htmlize-buffer-1 (when (interactive-p) (switch-to-buffer htmlbuf)) htmlbuf)
  htmlize-region(1 209)
  org-html-htmlize-generate-css()
  call-interactively(org-html-htmlize-generate-css t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)

-Original Message-
From: Eric Schulte [mailto:schulte.e...@gmail.com] 
Sent: Thursday, February 28, 2013 9:29 PM
To: Richard Stanton
Cc: emacs-orgmode@gnu.org
Subject: Re: [O] Code blocks (partially) inherit buffer colors

Richard Stanton stan...@haas.berkeley.edu writes:

 When I export a code block to HTML, I've noticed that some (but not
 all) of the characters in the resulting HTML file have the same 
 background color as my Emacs buffer at the time I exported. For 
 example, if I export

 ---

 #+begin_src python
 a = 5
 #+end_src

 

 the code block in the resulting HTML file has a very pale background, 
 except for the characters a and 5, both of which are displayed 
 with a dark blue background that looks like it's the same as the 
 background color in my Emacs buffer. This looks rather odd...

 I can work around this problem by changing the color-theme in my Emacs 
 buffer before exporting, but is there a better solution?

 Thanks.

 Richard Stanton

See the documentation of the `org-export-htmlize-output-type' variable.

--
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] Code blocks (partially) inherit buffer colors

2013-02-28 Thread Eric Schulte
Richard Stanton stan...@haas.berkeley.edu writes:

 When I export a code block to HTML, I've noticed that some (but not
 all) of the characters in the resulting HTML file have the same
 background color as my Emacs buffer at the time I exported. For
 example, if I export

 ---

 #+begin_src python
 a = 5
 #+end_src

 

 the code block in the resulting HTML file has a very pale background,
 except for the characters a and 5, both of which are displayed
 with a dark blue background that looks like it's the same as the
 background color in my Emacs buffer. This looks rather odd...

 I can work around this problem by changing the color-theme in my Emacs
 buffer before exporting, but is there a better solution?

 Thanks.

 Richard Stanton

See the documentation of the `org-export-htmlize-output-type' variable.

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] Code blocks (partially) inherit buffer colors

2013-02-28 Thread Richard Stanton
Thanks, Eric.

-Original Message-
From: Eric Schulte [mailto:schulte.e...@gmail.com] 
Sent: Thursday, February 28, 2013 9:29 PM
To: Richard Stanton
Cc: emacs-orgmode@gnu.org
Subject: Re: [O] Code blocks (partially) inherit buffer colors

Richard Stanton stan...@haas.berkeley.edu writes:

 When I export a code block to HTML, I've noticed that some (but not
 all) of the characters in the resulting HTML file have the same 
 background color as my Emacs buffer at the time I exported. For 
 example, if I export

 ---

 #+begin_src python
 a = 5
 #+end_src

 

 the code block in the resulting HTML file has a very pale background, 
 except for the characters a and 5, both of which are displayed 
 with a dark blue background that looks like it's the same as the 
 background color in my Emacs buffer. This looks rather odd...

 I can work around this problem by changing the color-theme in my Emacs 
 buffer before exporting, but is there a better solution?

 Thanks.

 Richard Stanton

See the documentation of the `org-export-htmlize-output-type' variable.

--
Eric Schulte
http://cs.unm.edu/~eschulte