emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: finder.el patch


From: Stefan Monnier
Subject: Re: finder.el patch
Date: Fri, 21 Mar 2008 14:34:48 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> Here is an updated finder.el patch, which includes the bug fixes mentioned
> previously. This patch adds two minor features:

Sorry for taking so long to reply.  These are good changes.

> * It uses a new syntax table, which inherits from
> emacs-lisp-mode-syntax-table.  It does not consider `;' to be comment syntax
> (so you don't get highlighting of half of a Commentary sentence that
> contains `;').

Actually, it does not inherit because it uses `copy-syntax-table'.
Please use `make-syntax-table' so it indeed inherits.

> +  (font-lock-add-keywords
> +   'finder-mode
> +   '(("`\\([^']+\\)'" 1 font-lock-constant-face prepend)))
> +   ;; '(("`\\(\\sw\\sw+\\)'" 1 font-lock-constant-face prepend)))

font-lock-add-keywords is best avoided in general.  Please set
font-lock-defaults properly instead.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]