branch: elpa/magit commit d9d2f6c312019c6056c6b771c190bf72ab6feaa7 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
magit-after-save-refresh-status: Consult correct inhibit variable --- CHANGELOG | 2 ++ lisp/magit-mode.el | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 5ab8e3c011..851c3bf86a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -33,6 +33,8 @@ Bugfixes: - ~magit-save-repository-buffers~ errored on older Emacs releases, if the value of the variable by the same name is ~ask~. #5399 +- ~magit-after-save-refresh-status~ did not honor ~magit-inhibit-refresh~. + * v4.3.6 2025-06-01 - Generalized and heavily refactored the code, previously used only to diff --git a/lisp/magit-mode.el b/lisp/magit-mode.el index 12d594c65f..ddca229bad 100644 --- a/lisp/magit-mode.el +++ b/lisp/magit-mode.el @@ -1213,7 +1213,7 @@ Note that refreshing a Magit buffer is done by re-creating its contents from scratch, which can be slow in large repositories. If you are not satisfied with Magit's performance, then you should obviously not add this function to that hook." - (when-let (((and (not magit--disable-save-buffers) + (when-let (((and (not magit-inhibit-refresh) (magit-inside-worktree-p t))) (buf (ignore-errors (magit-get-mode-buffer 'magit-status-mode)))) (cl-pushnew buf magit-after-save-refresh-buffers)