* Katsumi Yamaoka writes: >>>>>> In Simon Josefsson wrote: >> Hm. Font-locking doesn't work alright. But I can't find out why. To >> me, dns-mode.el seem to do the same as sieve-mode.el and dig.el for >> font lock keywords, and both of them work. Anyone? > In `dns-mode-font-lock-keywords', faces seem to have to be > existing face symbols. So, defining all dns faces by defface or > modifying `dns-mode-font-lock-keywords' as follows would solve it. > (defcustom dns-mode-font-lock-keywords > `(("^$ORIGIN" 0 ,dns-mode-control-entity-face) > ("^$INCLUDE" 0 ,dns-mode-control-entity-face) > ("^$[a-z0-9A-Z]+" 0 ,dns-mode-bad-control-entity-face) > (,(regexp-opt dns-mode-classes) 0 ,dns-mode-class-face) > (,(regexp-opt dns-mode-types) 0 ,dns-mode-type-face)) > "Font lock keywords used to highlight text in DNS master file mode." > :type 'sexp > :group 'dns-mode) Yes, that works for me. I've just discovered another problem. Once `dns-mode' is invoked, I get a `DNS' menu in every new buffer (there's one in my message buffer right now). -- |---------------------| | Te audire no possum. | | Musa sapientum fixa est in aure. | |-------------------------------------|