aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2005-03-06 00:02:04 +0000
committerStefan Monnier2005-03-06 00:02:04 +0000
commit55d0f066bed360974ead168f70932cdd54c2ead6 (patch)
tree504fa06b9ba625beca61ba0413b420b619f2d368
parentbe6e87e51aaa3a114bc4ff2ceccbc7c9aa2b30d0 (diff)
downloademacs-55d0f066bed360974ead168f70932cdd54c2ead6.tar.gz
emacs-55d0f066bed360974ead168f70932cdd54c2ead6.zip
(font-lock-fontify-keywords-region): Ensure forward
progress, even with buggy anchored keywords.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/font-lock.el7
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d65a446a376..f10a15936b5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12005-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * font-lock.el (font-lock-fontify-keywords-region): Ensure forward
4 progress, even with buggy anchored keywords.
5
12005-03-05 Luc Teirlinck <teirllm@auburn.edu> 62005-03-05 Luc Teirlinck <teirllm@auburn.edu>
2 7
3 * simple.el (goto-line): Remove unbalanced final parenthesis. 8 * simple.el (goto-line): Remove unbalanced final parenthesis.
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 90d4aa0adeb..ceadcf19728 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -1,7 +1,7 @@
1;;; font-lock.el --- Electric font lock mode 1;;; font-lock.el --- Electric font lock mode
2 2
3;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4;; 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 4;; 2000, 2001, 2002, 2003, 2004 2005 Free Software Foundation, Inc.
5 5
6;; Author: jwz, then rms, then sm 6;; Author: jwz, then rms, then sm
7;; Maintainer: FSF 7;; Maintainer: FSF
@@ -1425,7 +1425,10 @@ LOUDLY, if non-nil, allows progress-meter bar."
1425 (while highlights 1425 (while highlights
1426 (if (numberp (car (car highlights))) 1426 (if (numberp (car (car highlights)))
1427 (font-lock-apply-highlight (car highlights)) 1427 (font-lock-apply-highlight (car highlights))
1428 (font-lock-fontify-anchored-keywords (car highlights) end)) 1428 (let ((pos (point)))
1429 (font-lock-fontify-anchored-keywords (car highlights) end)
1430 ;; Ensure forward progress.
1431 (if (< (point) pos) (goto-char pos))))
1429 (setq highlights (cdr highlights)))) 1432 (setq highlights (cdr highlights))))
1430 (setq keywords (cdr keywords))))) 1433 (setq keywords (cdr keywords)))))
1431 1434