Commits

Anonymous committed 58786e3

Fix the c-mode font-lock-pre-idle-hook warning.

  • Participants
  • Parent commits a66dbd1

Comments (0)

Files changed (2)

+2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
+
+	* cc-engine.el (c-syntactic-re-search-forward): Before the first
+	call of re-search-forward in the function, make sure that the
+	bound is greater than or equal to (point). Fixes an error:
+
+	Error caught in `font-lock-pre-idle-hook': (error Invalid search
+	limit (wrong side of point))
+
+	that users of JDEE have been seeing for a long time. 
+
 2004-08-12  Norbert Koch  <viteno@xemacs.org>
 
 	* Makefile (VERSION): XEmacs package 1.43 released.
 	    (and
 	     (progn
 	       (setq search-pos (point))
-	       (re-search-forward regexp bound noerror))
+	       (if (>= bound (point))
+		   (re-search-forward regexp bound noerror)))
 
 	     (progn
 	       (setq state (parse-partial-sexp