Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-549

Use symbol-matching for generic-mode keywords

2004-09-15  Miles Bader  <miles@gnu.org>

   * lisp/generic.el (generic-make-keywords-list): Use symbol rather than
   word anchors in regexp.
This commit is contained in:
Miles Bader 2004-09-15 04:04:10 +00:00
parent 4b70e2c95f
commit 5c2137b83c
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-09-15 Miles Bader <miles@gnu.org>
* generic.el (generic-make-keywords-list): Use symbol rather than
word anchors in regexp.
2004-09-14 Sean O'Rourke <sorourke@cs.ucsd.edu>
* ibuf-ext.el (define-ibuffer-filter filename): If buffer has

View file

@ -405,10 +405,10 @@ INI file. This hook is NOT installed by default."
The regexp is highlighted with FACE."
(unless (listp keywords-list)
(error "Keywords argument must be a list of strings"))
(list (concat prefix "\\<"
(list (concat prefix "\\_<"
;; Use an optimized regexp.
(regexp-opt keywords-list t)
"\\>" suffix)
"\\_>" suffix)
1
face))