* Stefan Monnier (2006-04-17) writes:

>> Matching multiple characters of a complemented character alternative
>> is really more efficient than a call to stuff like `scan-lists'?  Okay
>> there is some additional code involved as well, but anyway.
>
> Maybe you're right.
>
>>      * textmodes/tex-mode.el (tex-font-lock-match-suscript): New
>>      function.
>>      (tex-font-lock-keywords-3): Use it.
>
> Thanks, installed.

Thanks.  Meanwhile I saw that there is a misplaced paren in the patch.
The following change should fix this.  Sorry for the inconvenience.

2006-04-17  Ralf Angeli  <[EMAIL PROTECTED]>

        * textmodes/tex-mode.el (tex-font-lock-match-suscript): Fix
        misplaced parenthesis.

--- tex-mode.el 17 Apr 2006 12:05:39 -0000      1.181
+++ tex-mode.el 17 Apr 2006 13:33:34 -0000
@@ -604,8 +604,8 @@
                   (narrow-to-region (point-min) limit)
                   (condition-case nil (scan-lists (point) 1 1) (error nil)))))
        (store-match-data (if end
-                             (list (match-beginning 0) end beg end))
-                         (list beg beg beg beg))))
+                             (list (match-beginning 0) end beg end)
+                           (list beg beg beg beg)))))
     t))
 
 (defconst tex-font-lock-keywords-3

-- 
Ralf



_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to