[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master b1c1f7e 32/50: new option: on-screen-drawing-threshold
From: |
Michael Heerdegen |
Subject: |
[elpa] master b1c1f7e 32/50: new option: on-screen-drawing-threshold |
Date: |
Mon, 09 Nov 2015 03:35:50 +0000 |
branch: master
commit b1c1f7e7d356ba297b84db873bc6f952706af055
Author: Michael Heerdegen <address@hidden>
Commit: Michael Heerdegen <address@hidden>
new option: on-screen-drawing-threshold
---
on-screen.el | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/on-screen.el b/on-screen.el
index d80b9c4..b65cb37 100644
--- a/on-screen.el
+++ b/on-screen.el
@@ -230,6 +230,12 @@ a non-nil value may make scrolling stuttering on slow
computers."
(float :tag "Count lines with hidden part less than this as
visible"
:value .4)))
+(defcustom on-screen-drawing-threshold 2
+ "If set, highlight only when scrolled at least that many lines."
+ :group 'on-screen
+ :type '(choice (const :tag "Off" nil)
+ (integer :value 2)))
+
;;; Other variables
(defvar on-screen-overlay-priority 30 ; > stripe buffer, < ediff, isearch
@@ -494,6 +500,9 @@ This should normally go to `window-scroll-functions'."
(timer-set-time timer (timer-relative-time (current-time)
on-screen-delay)))
((or (not area)
(= display-start s1)))
+ ((and (numberp on-screen-drawing-threshold)
+ (< (abs (apply #'count-lines (sort (list display-start s1)
#'<)))
+ on-screen-drawing-threshold)))
(t
(setq
overlays
- [elpa] master 4f4c320 20/50: Update copyright, (continued)
- [elpa] master 4f4c320 20/50: Update copyright, Michael Heerdegen, 2015/11/08
- [elpa] master 350a979 23/50: add workaround for bug#16796, Michael Heerdegen, 2015/11/08
- [elpa] master 03ddd52 16/50: after-scroll: don't remove highlighting when called in succession, Michael Heerdegen, 2015/11/08
- [elpa] master 5134a22 21/50: minor change (rename two functions), Michael Heerdegen, 2015/11/08
- [elpa] master 0ddc794 22/50: always remove highlighting when a command caused multiple changes, Michael Heerdegen, 2015/11/08
- [elpa] master 6a73928 18/50: fix invisible fringe markers positioned in invisible lines (e.g. org), Michael Heerdegen, 2015/11/08
- [elpa] master 55c8f4b 27/50: small changes in header, Michael Heerdegen, 2015/11/08
- [elpa] master f4b1ef2 17/50: new option: on-screen-remove-when-edit, decrease overlay priority, Michael Heerdegen, 2015/11/08
- [elpa] master a7630ca 24/50: convert to cl-lib, Michael Heerdegen, 2015/11/08
- [elpa] master 8256496 25/50: use a more modest gray for on-screen-narrow-line face, Michael Heerdegen, 2015/11/08
- [elpa] master b1c1f7e 32/50: new option: on-screen-drawing-threshold,
Michael Heerdegen <=
- [elpa] master 259440a 26/50: add Package-Requires header, Michael Heerdegen, 2015/11/08
- [elpa] master 098325c 29/50: set default value of on-screen-treat-cut-lines to t, Michael Heerdegen, 2015/11/08
- [elpa] master 23cf5db 30/50: use lexical binding, Michael Heerdegen, 2015/11/08
- [elpa] master 787fe34 31/50: bump version to 1.1, Michael Heerdegen, 2015/11/08
- [elpa] master bef0f6d 37/50: silence compiler when hexrgb.el is not installed, Michael Heerdegen, 2015/11/08
- [elpa] master ef81e20 35/50: change default of on-screen-treat-cut-lines back to nil, Michael Heerdegen, 2015/11/08
- [elpa] master 7012d04 41/50: bump version to 1.3, Michael Heerdegen, 2015/11/08
- [elpa] master c03f4b0 33/50: new user variable: on-screen-inhibit-highlighting, Michael Heerdegen, 2015/11/08
- [elpa] master b51ac73 36/50: use separate face for "line" style highlighting, Michael Heerdegen, 2015/11/08
- [elpa] master 4014e32 38/50: make comments respect conventions, Michael Heerdegen, 2015/11/08