emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] master 46a9193 65/79: Find the edges of the screen more efficient


From: Jackson Ray Hamilton
Subject: [elpa] master 46a9193 65/79: Find the edges of the screen more efficiently.
Date: Sun, 14 Jun 2015 00:05:44 +0000

branch: master
commit 46a91933736258bc9aa5ae38ec4c6f909c70a678
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>

    Find the edges of the screen more efficiently.
---
 context-coloring.el |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/context-coloring.el b/context-coloring.el
index d296f0d..d89f844 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -959,12 +959,14 @@ scopes and variables."
                    (start (progn (goto-char context-coloring-changed-start)
                                  (while (and (< (point-min) (point))
                                              (pos-visible-in-window-p))
-                                   (beginning-of-defun))
+                                   (end-of-line 0))
+                                 (beginning-of-defun)
                                  (point)))
                    (end (progn (goto-char context-coloring-changed-end)
                                (while (and (> (point-max) (point))
                                            (pos-visible-in-window-p))
-                                 (end-of-defun))
+                                 (forward-line 1))
+                               (end-of-defun)
                                (point))))
               (context-coloring-elisp-colorize-region-initially start end)))
            (t



reply via email to

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