+2000-06-23 Dave Love <fx@gnu.org>
+
+ * font-lock.el (font-lock-support-mode) <defgroup>: Add :version.
+ (font-lock-fontify-anchored-keywords): Use
+ line-beginning-position.
+ (global-font-lock-mode): Use mapc.
+
2000-06-23 Stefan Monnier <monnier@cs.yale.edu>
* eshell/esh-module.el: Require CL when compiling.
(setq font-lock-buffers (buffer-list)))
(t
(remove-hook 'find-file-hooks 'turn-on-font-lock-if-enabled)
- (mapcar (function (lambda (buffer)
- (with-current-buffer buffer
- (when font-lock-mode
- (font-lock-mode)))))
+ (mapc (function (lambda (buffer)
+ (with-current-buffer buffer
+ (when font-lock-mode
+ (font-lock-mode)))))
(buffer-list))))
(when message
(message "Global Font Lock mode %s." (if on-p "enabled" "disabled")))
(const :tag "lazy lock" lazy-lock-mode)
(const :tag "JIT lock" jit-lock-mode)))
))
+ :version "21.1"
:group 'font-lock)
(defvar fast-lock-mode nil)
(when (and font-lock-multiline
(funcall (if (eq font-lock-multiline t) '>= '>)
pre-match-value
- (save-excursion (forward-line 1) (point))))
+ (line-beginning-position 2)))
;; this is a multiline anchored match
(setq font-lock-multiline t)
(put-text-property (point) limit 'font-lock-multiline t)))