Skip to content

Commit

Permalink
feat: Add no redisplay
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jun 6, 2024
1 parent 779a3ca commit 813b9f9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions elenv.el
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,25 @@ For argument REMOTE, see function `executable-find' description."
"Return non-nil when debugging."
(bound-and-true-p edebug-active))

;;
;; (@* "Display" )
;;

;;;###autoload
(defmacro elenv-with-no-redisplay (&rest body)
"Execute BODY without any redisplay execution."
(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
window-scroll-functions
window-size-change-functions
window-state-change-hook)
,@body))

(provide 'elenv)
;;; elenv.el ends here

0 comments on commit 813b9f9

Please sign in to comment.