* bug#648: htmlize.el doesn't work fine
@ 2008-08-05 6:06 clinif
2008-08-05 8:52 ` Juanma Barranquero
0 siblings, 1 reply; 7+ messages in thread
From: clinif @ 2008-08-05 6:06 UTC (permalink / raw)
To: bug-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 720 bytes --]
htmlize.el works fine with emacs22 and ntemacs(version 23.0.50)
But when I use the latest emacs-cvs, it doesn't work.
I've cleaned my .emacs, kept only two lines:
(require `htmlize)
(setq debug-on-error t)
Open a new buffer in emacs, then write something in it.
when "M-x htmlize-buffer", I found these messages:
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))
htmlize-buffer-1()
htmlize-buffer()
call-interactively(htmlize-buffer t nil)
execute-extended-command(nil)
call-interactively(execute-extended-command nil nil)
[-- Attachment #2: Type: text/html, Size: 908 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#648: htmlize.el doesn't work fine
2008-08-05 6:06 bug#648: htmlize.el doesn't work fine clinif
@ 2008-08-05 8:52 ` Juanma Barranquero
2008-08-05 9:18 ` Lennart Borgman (gmail)
2008-08-08 18:10 ` Stefan Monnier
0 siblings, 2 replies; 7+ messages in thread
From: Juanma Barranquero @ 2008-08-05 8:52 UTC (permalink / raw)
To: clinif, 648; +Cc: bug-gnu-emacs
On Tue, Aug 5, 2008 at 08:06, clinif <clin24@gmail.com> wrote:
> Debugger entered--Lisp error: (error "Invalid face")
> internal-get-lisp-face-attribute(nil :height nil)
> face-attribute(nil :height)
In Emacs 23.X,
(face-attribute 'default :inherit) => nil
while in Emacs 22.X,
(face-attribute 'default :inherit) => unspecified
I'm not sure whether that's a bug, but it is an incompatible change.
For the time being, you can patch your htmlize.el, changing one line
of htmlize-face-size, from
for f = face then (face-attribute f :inherit)
to
for f = face then (or (face-attribute f :inherit) 'unspecified)
Juanma
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#648: htmlize.el doesn't work fine
2008-08-05 8:52 ` Juanma Barranquero
@ 2008-08-05 9:18 ` Lennart Borgman (gmail)
2008-08-05 10:26 ` clinif
2008-08-06 11:18 ` Vivek Dasmohapatra
2008-08-08 18:10 ` Stefan Monnier
1 sibling, 2 replies; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2008-08-05 9:18 UTC (permalink / raw)
To: Juanma Barranquero, 648; +Cc: bug-gnu-emacs, Vivek Dasmohapatra
Juanma Barranquero wrote:
> On Tue, Aug 5, 2008 at 08:06, clinif <clin24@gmail.com> wrote:
>
>> Debugger entered--Lisp error: (error "Invalid face")
>> internal-get-lisp-face-attribute(nil :height nil)
>> face-attribute(nil :height)
>
> In Emacs 23.X,
>
> (face-attribute 'default :inherit) => nil
>
> while in Emacs 22.X,
>
> (face-attribute 'default :inherit) => unspecified
>
> I'm not sure whether that's a bug, but it is an incompatible change.
>
> For the time being, you can patch your htmlize.el, changing one line
> of htmlize-face-size, from
>
> for f = face then (face-attribute f :inherit)
>
> to
>
> for f = face then (or (face-attribute f :inherit) 'unspecified)
Please also notice that htmlfontify.el was meant to be included in
Emacs. Vivek, what has happened with this?
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#648: htmlize.el doesn't work fine
2008-08-05 9:18 ` Lennart Borgman (gmail)
@ 2008-08-05 10:26 ` clinif
2008-08-06 11:18 ` Vivek Dasmohapatra
1 sibling, 0 replies; 7+ messages in thread
From: clinif @ 2008-08-05 10:26 UTC (permalink / raw)
To: Juanma Barranquero; +Cc: Vivek Dasmohapatra, bug-gnu-emacs, 648
Lennart Borgman (gmail) 写道:
> Juanma Barranquero wrote:
>> On Tue, Aug 5, 2008 at 08:06, clinif <clin24@gmail.com> wrote:
>>
>>> Debugger entered--Lisp error: (error "Invalid face")
>>> internal-get-lisp-face-attribute(nil :height nil)
>>> face-attribute(nil :height)
>>
>> In Emacs 23.X,
>>
>> (face-attribute 'default :inherit) => nil
>>
>> while in Emacs 22.X,
>>
>> (face-attribute 'default :inherit) => unspecified
>>
>> I'm not sure whether that's a bug, but it is an incompatible change.
>>
>> For the time being, you can patch your htmlize.el, changing one line
>> of htmlize-face-size, from
>>
>> for f = face then (face-attribute f :inherit)
>>
>> to
>>
>> for f = face then (or (face-attribute f :inherit) 'unspecified)
>
>
> Please also notice that htmlfontify.el was meant to be included in
> Emacs. Vivek, what has happened with this?
Thank you very much, it works now!
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#648: htmlize.el doesn't work fine
2008-08-05 9:18 ` Lennart Borgman (gmail)
2008-08-05 10:26 ` clinif
@ 2008-08-06 11:18 ` Vivek Dasmohapatra
1 sibling, 0 replies; 7+ messages in thread
From: Vivek Dasmohapatra @ 2008-08-06 11:18 UTC (permalink / raw)
To: Lennart Borgman (gmail); +Cc: Juanma Barranquero, bug-gnu-emacs, 648
> Please also notice that htmlfontify.el was meant to be included in Emacs.
> Vivek, what has happened with this?
I'm looking at your final patch as we speak, trying to figure out why
you made the changes you did - it's kind of hard to figure out without any
test cases. I'll wrap it up tonight, I've got some time free.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#648: htmlize.el doesn't work fine
2008-08-05 8:52 ` Juanma Barranquero
2008-08-05 9:18 ` Lennart Borgman (gmail)
@ 2008-08-08 18:10 ` Stefan Monnier
2008-08-11 23:07 ` Juanma Barranquero
1 sibling, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2008-08-08 18:10 UTC (permalink / raw)
To: Juanma Barranquero; +Cc: bug-gnu-emacs, 648
>> Debugger entered--Lisp error: (error "Invalid face")
>> internal-get-lisp-face-attribute(nil :height nil)
>> face-attribute(nil :height)
> In Emacs 23.X,
> (face-attribute 'default :inherit) => nil
> while in Emacs 22.X,
> (face-attribute 'default :inherit) => unspecified
> I'm not sure whether that's a bug, but it is an incompatible change.
It does look like a bug in htmlize: the `inherit' property is supposed
to hold a list of faces, so nil is a perfectly valid value there (it's
the empty list).
Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#648: htmlize.el doesn't work fine
2008-08-08 18:10 ` Stefan Monnier
@ 2008-08-11 23:07 ` Juanma Barranquero
0 siblings, 0 replies; 7+ messages in thread
From: Juanma Barranquero @ 2008-08-11 23:07 UTC (permalink / raw)
To: Stefan Monnier; +Cc: bug-gnu-emacs, 648
On Fri, Aug 8, 2008 at 20:10, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> It does look like a bug in htmlize: the `inherit' property is supposed
> to hold a list of faces, so nil is a perfectly valid value there (it's
> the empty list).
That's a way to see it; the other is that it expects that you can
trace back a chain of face :inherit's until you find 'unspecified.
Juanma
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-08-11 23:07 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-05 6:06 bug#648: htmlize.el doesn't work fine clinif
2008-08-05 8:52 ` Juanma Barranquero
2008-08-05 9:18 ` Lennart Borgman (gmail)
2008-08-05 10:26 ` clinif
2008-08-06 11:18 ` Vivek Dasmohapatra
2008-08-08 18:10 ` Stefan Monnier
2008-08-11 23:07 ` Juanma Barranquero
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.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).