[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master f4b1ef2 17/50: new option: on-screen-remove-when-edit, de
From: |
Michael Heerdegen |
Subject: |
[elpa] master f4b1ef2 17/50: new option: on-screen-remove-when-edit, decrease overlay priority |
Date: |
Mon, 09 Nov 2015 03:35:44 +0000 |
branch: master
commit f4b1ef29011a67aeb6184c7a53a5691a12cc0e98
Author: Michael Heerdegen <address@hidden>
Commit: Michael Heerdegen <address@hidden>
new option: on-screen-remove-when-edit, decrease overlay priority
- Make overlay removing when changing a buffer customizable (new option
`on-screen-remove-when-edit'). Off by default (previously, the
feature was always enabled).
- Radically decreased on-screen-overlay-priority (to 30). It should be
less than isearch and ediff overlay priorities, but still larger than
e.g. stripe-buffer overlay priority.
---
on-screen.el | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/on-screen.el b/on-screen.el
index 898829d..7f74c77 100644
--- a/on-screen.el
+++ b/on-screen.el
@@ -209,6 +209,10 @@ drawn highlighting will remain fixed relative to the text
even
if you scroll further until `on-screen-delay' is over."
:group 'on-screen :type 'boolean)
+(defcustom on-screen-remove-when-edit nil
+ "Whether to instantly remove highlighting when editing."
+ :group 'on-screen :type 'boolean)
+
(defcustom on-screen-treat-cut-lines nil
"Whether to care about vertically cut lines.
If nil, always count lines at the window start or end that are
@@ -223,7 +227,7 @@ a non-nil value may make scrolling stuttering on slow
computers."
;;; Other variables
-(defvar on-screen-overlay-priority 9999
+(defvar on-screen-overlay-priority 30 ; > stripe buffer, < ediff, isearch
"Priority for all on-screen overlays.")
(defvar on-screen-initialized-p nil
@@ -559,11 +563,12 @@ had changed."
"Reset highligting for current buffer after it was changed.
This has to be done for all its windows. Goes to
`after-change-functions'."
- (let ((buf (current-buffer)))
- (when (on-screen-enabled-p buf)
- (dolist (win (on-screen-get-windows t))
- (when (eq (window-buffer win) buf)
- (on-screen-remove-highlighting win))))))
+ (when on-screen-remove-when-edit
+ (let ((buf (current-buffer)))
+ (when (on-screen-enabled-p buf)
+ (dolist (win (on-screen-get-windows t))
+ (when (eq (window-buffer win) buf)
+ (on-screen-remove-highlighting win)))))))
(defun on-screen-after-wconf-change ()
"Clean up after the window configuration has changed.
- [elpa] master c083518 09/50: added homepage to header, (continued)
- [elpa] master c083518 09/50: added homepage to header, Michael Heerdegen, 2015/11/08
- [elpa] master dd6de11 15/50: minor change, Michael Heerdegen, 2015/11/08
- [elpa] master 38b4a11 19/50: add missing autoload for global-on-screen-mode alias, Michael Heerdegen, 2015/11/08
- [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 <=
- [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, 2015/11/08
- [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