Skip to content

Commit

Permalink
Update no redisplay
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Mar 9, 2022
1 parent 1532e94 commit f34db57
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions line-reminder.el
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,14 @@
(declare (indent 0) (debug t))
`(let ((inhibit-redisplay t)
(inhibit-modification-hooks t)
(inhibit-point-motion-hooks t)
after-focus-change-function
buffer-list-update-hook
display-buffer-alist
window-configuration-change-hook
after-focus-change-function)
window-scroll-functions
window-size-change-functions
window-state-change-hook)
,@body))

(defun line-reminder--goto-line (line)
Expand Down Expand Up @@ -369,7 +373,7 @@ LINE : pass in by `linum-format' variable."
(add-hook 'post-command-hook #'line-reminder--post-command nil t)
(advice-add 'save-buffer :after #'line-reminder--save-buffer)
(add-hook 'window-scroll-functions #'line-reminder--start-show-thumb nil t)
(add-hook 'window-configuration-change-hook #'line-reminder--start-show-thumb nil t))
(add-hook 'window-size-change-functions #'line-reminder--start-show-thumb nil t))

(defun line-reminder--disable ()
"Disable `line-reminder' in current buffer."
Expand All @@ -379,7 +383,7 @@ LINE : pass in by `linum-format' variable."
(advice-remove 'save-buffer #'line-reminder--save-buffer)
(line-reminder-clear-reminder-lines-sign)
(remove-hook 'window-scroll-functions #'line-reminder--start-show-thumb t)
(remove-hook 'window-configuration-change-hook #'line-reminder--start-show-thumb t))
(remove-hook 'window-size-change-functions #'line-reminder--start-show-thumb t))

;;;###autoload
(define-minor-mode line-reminder-mode
Expand Down

0 comments on commit f34db57

Please sign in to comment.