emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/font-lock.el


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/lisp/font-lock.el
Date: Wed, 15 Mar 2006 22:26:10 +0000

Index: emacs/lisp/font-lock.el
diff -u emacs/lisp/font-lock.el:1.295 emacs/lisp/font-lock.el:1.296
--- emacs/lisp/font-lock.el:1.295       Tue Mar 14 18:23:47 2006
+++ emacs/lisp/font-lock.el     Wed Mar 15 22:26:08 2006
@@ -281,12 +281,6 @@
                 (other :tag "always" t)
                 (integer :tag "size"))
   :group 'font-lock)
-
-(defcustom font-lock-lines-before 0
-  "*Number of lines before the changed text to include in refontification."
-  :type 'integer
-  :group 'font-lock
-  :version "22.1")
 
 
 ;; Originally these variable values were face names such as `bold' etc.
@@ -1098,9 +1092,8 @@
            ;; Fontify the region the major mode has specified.
            (setq beg (car region) end (cdr region))
          ;; Fontify the whole lines which enclose the region.
-         (setq beg (progn (goto-char beg)
-                          (forward-line (- font-lock-lines-before)))
-               end (progn (goto-char end) (forward-line 1) (point))))
+         (setq beg (progn (goto-char beg) (line-beginning-position))
+               end (progn (goto-char end) (line-beginning-position 2))))
        (font-lock-fontify-region beg end)))))
 
 (defun font-lock-fontify-block (&optional arg)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]