bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#5002: marked as done (htmlfontify should remove some text properties


From: Emacs bug Tracking System
Subject: bug#5002: marked as done (htmlfontify should remove some text properties)
Date: Wed, 09 Dec 2009 06:05:05 +0000

Your message dated Wed, 09 Dec 2009 00:57:43 -0500
with message-id <jwv7hswd70x.fsf-monnier+emacsbugreports@gnu.org>
and subject line Re: bug#5002: patch
has caused the Emacs bug report #5002,
regarding htmlfontify should remove some text properties
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
5002: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=5002
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems
--- Begin Message --- Subject: htmlfontify should remove some text properties Date: Sat, 21 Nov 2009 13:05:09 +0100
I just notice when I played a bit with hfyview.el that there is a bug
in hfy-fontify-buffer. Or at least I believe it is there.

The problem seems to be that a substring is copied with all text
properties to the new buffer. Some of them will prevent htmlfontify
from working correctly. I think the call to copy-buffer should be
replaced with something that does the same thing but removes some of
the text properties.

This is what I just did in hfyview.el, but that is the wrong place to
do it. See line 512 in the attached hfyview.el for some suspicious
text properties (I am not sure how they work so I took them all.
Beside that I saw that font-sticky and rear-nonsticky is not described
on (info "(elisp) Special Properties").)

I found the problem when I did like this:

 load hfyview.el
 M-x hfyview-frame-mode
 M-x
 Push <apps>

This will work now, but that is due to that the call to propertize on
line 515 in hfyview.el removes some text properties from the variable
str before the insertion in the buffer. (I am not sure which ones that
helped here.)

If you do not remove these text properties then the content of the
minibuffer will not be shown in the htmlfontify output.

I have attached hfyview.el

Attachment: hfyview.el
Description: Text document


--- End Message ---
--- Begin Message --- Subject: Re: bug#5002: patch Date: Wed, 09 Dec 2009 00:57:43 -0500 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)
> This patch should allow those props to be stripped.

> A defcustom has been added and the properties listed in it should be
> ripped out just after the buffer is copied.

Installed,


        Stefan

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]