On 3/2/07, Nahuel Greco <[EMAIL PROTECTED]> wrote:
Suppose you have the following snippet opened with erlang-mode and font-lock-mode:somefunc(X) -> case X of nil -> fun() -> xx() end end. and then you do "M-x set-face-background", selecting "font-lock-function-name-face" as the face and, for example, "SteelBlue" as the color. Then you will see that the space character immediately after any "->" token is now colorized.
Yes, it's a bug in emacs.el. The arrow itself should be colorized instead of trailing space. The following patch fixes the bug. It will not go to etch, but it will be applied to the next packaged erlang version in unstable. ----------------------------------------------------------------------------- --- erlang.el.orig 2007-03-02 19:51:48.000000000 +0300 +++ erlang.el 2007-03-02 19:40:33.000000000 +0300 @@ -1542,7 +1542,7 @@ (defvar erlang-font-lock-keywords-arrow (list - (list "\\(->\\|:-\\)\\(\\s \\|$\\)" 2 'font-lock-function-name-face)) + (list "\\(->\\|:-\\)\\(\\s \\|$\\)" 1 'font-lock-function-name-face)) "Font lock keyword highlighting clause arrow.") (defvar erlang-font-lock-keywords-lc ----------------------------------------------------------------------------- I'm not sure that you'll like the result, because arrows will get different background, but it's definitely what erlang mode authors meant. -- Sergei Golovan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

