[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Syntax highlight (problem with 'concat)
From: |
Tim Johnson |
Subject: |
Re: Syntax highlight (problem with 'concat) |
Date: |
Mon, 2 Jan 2006 18:59:06 -0900 |
User-agent: |
Mutt/1.4.2.1i |
* Ian Zimmerman <nobrowser@gmail.com> [060102 18:51]:
> Tim> '("\\b\\(print\\|setq\\)\\b" . font-lock-user-keyword-face) ;; good,
> line below is bad
> Tim> ;'((concat tj-word-begin tj-lisp-user-keywords tj-word-end) .
> font-lock-user-keyword-face)
>
> The quote around the last item in the list applies to _everything_ inside.
> So your concat call never actually happens. What you want is something like
I suspected that ....
> ...
>
> (cons (concat tj-word-begin tj-lisp-user-keywords tj-word-end)
> 'font-lock-user-keyword-face)
Aha!
> ...
>
>
> or use quasi-quotes (see Elisp manual)
Okay, will bone up on that too...
Thank you Ian!
--
Tim Johnson <tim@johnsons-web.com>
http://www.alaska-internet-solutions.com