|

楼主 |
发表于 2008-8-5 18:38:41
|
显示全部楼层
报告一下,第一个问题已解决。
想要解决它的动机是:我每天都要更新一次emacs-cvs看看修复了没有,但是muse这个插件在不同版本的emacs下使用需要重新编译,于是我测试一次就要eselect到23,然后编译muse,测试完用22的时候又要再编译……实在是让人受不了。
今天我终于鼓起勇气,加入了bug-gnu-emacs@gnu.org,发了个BUG报告,下午有人回复了。用他的方法,修改htmlize里面的一句代码,问题解决。附上他的邮件原文:
- 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
复制代码
看来这个问题是由于EMACS23里的函数接口(不好意思,我不懂lisp,不知道这个该咋表达,就说成是“函数接口”吧)发生了改变所导致的,应该不算是emacs的BUG。这里要说明一下,直接修改了htmlize.el之后依然无效,是因为htmlize在它所在的文件夹里缓存了elc文件,我的方法是直接删除了这个elc,因为这个elc文件似乎是为了使加载的时候更快的吧,所以删掉也没关系……记得前几天看过怎么生成elc的,现在忘记了,一会儿去查查。 |
|