开发者

'help-echo in font-lock-add-keywords?

Is it possible to specify a value for help-echo in the arguments passed to font-lock-add-keywords?

If not, is there an efficient and reliable place to add this property via Font Lock's normal operation?

I've read through "Search-Based Fontification" and "Customizing Keywords" in the elisp manual, and I'm implementing a minor mode by adapting fic-mode.el .

Thanks.开发者_开发百科


While font-lock was designed to manage the face property, it can also set any other property. To set a given property, just use (face <face> <prop1> <val1> <prop2> <val2> ...) as the face to apply (if you don't want to apply any face at all, use nil for <face>). In order to make it work reliably, you also need to tell font-lock that it manages those extra properties by adding <prop1>, <prop2> etc to font-lock-extra-managed-props. If you don't, those properties will not be correctly removed when they do not apply any more.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜