branch: elpa/auto-dim-other-buffers
commit b1562a12000298008a8f94208365cc41a69d1b9e
Author: 7696122 <[email protected]>
Commit: Michal Nazarewicz <[email protected]>
Wrap `adob--dim-all-buffers' into a lambda when adding as a hook
`focus-out-hook's are called with no arguments but since commit
[e64bdbd: Use `face-remap-add-relative' to not interfere with
`buffer-face-mode'], `adob--dim-all-buffers' function requires
one. To make it work as a `focus-out-hook', it needs to be
wrapped inside of a lambda.
[[email protected]: reworded commit message]
---
auto-dim-other-buffers.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/auto-dim-other-buffers.el b/auto-dim-other-buffers.el
index e6f18f0e21..67ed07d987 100644
--- a/auto-dim-other-buffers.el
+++ b/auto-dim-other-buffers.el
@@ -8,7 +8,7 @@
;; Michal Nazarewicz <[email protected]>
;; Maintainer: Michal Nazarewicz <[email protected]>
;; URL: https://github.com/mina86/auto-dim-other-buffers.el
-;; Version: 1.6.1
+;; Version: 1.6.2
;; This file is not part of GNU Emacs.
@@ -114,7 +114,7 @@ function."
"Add (if CALLBACK is `add-hook') or remove (if `remove-hook') adob hooks."
(dolist (args
'((post-command-hook adob--post-command-hook)
- (focus-out-hook adob--dim-all-buffers)
+ (focus-out-hook (lambda () (adob--dim-all-buffers t)))
(focus-in-hook adob--after-change-major-mode-hook)
(after-change-major-mode-hook adob--after-change-major-mode-hook)
(next-error-hook 'adob--after-change-major-mode-hook)))