branch: elpa/eglot-inactive-regions commit 13cef75886a18d656ad79bf042ba3ffcd4aa37ad Author: Filippo Argiolas <filippo.argio...@gmail.com> Commit: Filippo Argiolas <filippo.argio...@gmail.com>
invalidate opacity cache on refresh-all Clear opacity hash table on refresh-all to be able invalidate face cache and trigger a refresh without changing the opacity (e.g. in a load-theme hook). Make refresh-all interactive. --- eglot-inactive-regions.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eglot-inactive-regions.el b/eglot-inactive-regions.el index 724fcbd2ea..6adc5e6f42 100644 --- a/eglot-inactive-regions.el +++ b/eglot-inactive-regions.el @@ -280,8 +280,10 @@ Useful to update colors after a face or theme change." (run-hook-with-args 'eglot-inactive-regions-refresh-hook beg end))))) (defun eglot-inactive-regions-refresh-all () - "Refresh all buffers where this mode is enabled." + "Invalidate face cache and refresh all buffers where mode is enabled." + (interactive) (when eglot-inactive-regions-mode + (clrhash eglot-inactive-regions-opacity-table) (dolist (buffer (buffer-list)) (with-current-buffer buffer (eglot-inactive-regions-refresh)))))