aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-06-23 19:37:14 +0000
committerDave Love2000-06-23 19:37:14 +0000
commitc69e5fcdaeac1b00e02b8ea8bc35333bf207b4a1 (patch)
treed7c1c1ed9f4e543d0ad545506aa6277957c6c929
parent511c7541c9d2eb99b10343b21f1f33b64c7ed3e6 (diff)
downloademacs-c69e5fcdaeac1b00e02b8ea8bc35333bf207b4a1.tar.gz
emacs-c69e5fcdaeac1b00e02b8ea8bc35333bf207b4a1.zip
(font-lock-fontify-anchored-keywords): Use line-beginning-position.
(font-lock-support-mode) <defgroup>: Add :version. (global-font-lock-mode): Use mapc.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/font-lock.el11
2 files changed, 13 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 86e476993ec..791d4c6ecb9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12000-06-23 Dave Love <fx@gnu.org>
2
3 * font-lock.el (font-lock-support-mode) <defgroup>: Add :version.
4 (font-lock-fontify-anchored-keywords): Use
5 line-beginning-position.
6 (global-font-lock-mode): Use mapc.
7
12000-06-23 Stefan Monnier <monnier@cs.yale.edu> 82000-06-23 Stefan Monnier <monnier@cs.yale.edu>
2 9
3 * eshell/esh-module.el: Require CL when compiling. 10 * eshell/esh-module.el: Require CL when compiling.
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 9bf9f8e0810..adaa514574a 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -954,10 +954,10 @@ turned on in a buffer if its major mode is one of `font-lock-global-modes'."
954 (setq font-lock-buffers (buffer-list))) 954 (setq font-lock-buffers (buffer-list)))
955 (t 955 (t
956 (remove-hook 'find-file-hooks 'turn-on-font-lock-if-enabled) 956 (remove-hook 'find-file-hooks 'turn-on-font-lock-if-enabled)
957 (mapcar (function (lambda (buffer) 957 (mapc (function (lambda (buffer)
958 (with-current-buffer buffer 958 (with-current-buffer buffer
959 (when font-lock-mode 959 (when font-lock-mode
960 (font-lock-mode))))) 960 (font-lock-mode)))))
961 (buffer-list)))) 961 (buffer-list))))
962 (when message 962 (when message
963 (message "Global Font Lock mode %s." (if on-p "enabled" "disabled"))) 963 (message "Global Font Lock mode %s." (if on-p "enabled" "disabled")))
@@ -1072,6 +1072,7 @@ The value of this variable is used when Font Lock mode is turned on."
1072 (const :tag "lazy lock" lazy-lock-mode) 1072 (const :tag "lazy lock" lazy-lock-mode)
1073 (const :tag "JIT lock" jit-lock-mode))) 1073 (const :tag "JIT lock" jit-lock-mode)))
1074 )) 1074 ))
1075 :version "21.1"
1075 :group 'font-lock) 1076 :group 'font-lock)
1076 1077
1077(defvar fast-lock-mode nil) 1078(defvar fast-lock-mode nil)
@@ -1582,7 +1583,7 @@ LIMIT can be modified by the value of its PRE-MATCH-FORM."
1582 (when (and font-lock-multiline 1583 (when (and font-lock-multiline
1583 (funcall (if (eq font-lock-multiline t) '>= '>) 1584 (funcall (if (eq font-lock-multiline t) '>= '>)
1584 pre-match-value 1585 pre-match-value
1585 (save-excursion (forward-line 1) (point)))) 1586 (line-beginning-position 2)))
1586 ;; this is a multiline anchored match 1587 ;; this is a multiline anchored match
1587 (setq font-lock-multiline t) 1588 (setq font-lock-multiline t)
1588 (put-text-property (point) limit 'font-lock-multiline t))) 1589 (put-text-property (point) limit 'font-lock-multiline t)))