emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/auto-dim-other-buffers 37085cf479 28/82: Consistently use


From: ELPA Syncer
Subject: [nongnu] elpa/auto-dim-other-buffers 37085cf479 28/82: Consistently use “buffers” in function names, not “windows”.
Date: Mon, 12 Dec 2022 20:58:40 -0500 (EST)

branch: elpa/auto-dim-other-buffers
commit 37085cf479c3083a150cdc10a5d9492a2216fab3
Author: Michal Nazarewicz <mina86@mina86.com>
Commit: Michal Nazarewicz <mina86@mina86.com>

    Consistently use “buffers” in function names, not “windows”.
    
    The `adob--undim-all-windows' and `adob--dim-all-windows'
    functions did not operate on windows but on buffers so the name
    was a bit misleading.
---
 auto-dim-other-buffers.el | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/auto-dim-other-buffers.el b/auto-dim-other-buffers.el
index c20fd8a796..b12a5f45bb 100644
--- a/auto-dim-other-buffers.el
+++ b/auto-dim-other-buffers.el
@@ -47,28 +47,28 @@
         (set-buffer buffer)
         (buffer-face-set face)))))
 
-(defun adob--undim-all-windows ()
+(defun adob--undim-all-buffers ()
   (adob--set-face-on-all-buffers nil))
 
-(defun adob--dim-all-windows ()
+(defun adob--dim-all-buffers ()
   (adob--set-face-on-all-buffers 'auto-dim-other-buffers-face))
 
 (defun turn-off-auto-dim-other-buffers ()
   (remove-hook 'pre-command-hook 'adob--pre-command-hook)
   (remove-hook 'post-command-hook 'adob--post-command-hook)
-  (remove-hook 'focus-out-hook 'adob--dim-all-windows)
+  (remove-hook 'focus-out-hook 'adob--dim-all-buffers)
   (remove-hook 'focus-in-hook 'adob--after-change-major-mode-hook)
   (remove-hook 'after-change-major-mode-hook
                'adob--after-change-major-mode-hook)
   (remove-hook 'next-error-hook 'adob--after-change-major-mode-hook)
-  (adob--undim-all-windows))
+  (adob--undim-all-buffers))
 
 (defun turn-on-auto-dim-other-buffers ()
   (setq adob--last-buffer nil)
-  (adob--dim-all-windows)
+  (adob--dim-all-buffers)
   (add-hook 'pre-command-hook 'adob--pre-command-hook)
   (add-hook 'post-command-hook 'adob--post-command-hook)
-  (add-hook 'focus-out-hook 'adob--dim-all-windows)
+  (add-hook 'focus-out-hook 'adob--dim-all-buffers)
   (add-hook 'focus-in-hook 'adob--after-change-major-mode-hook)
   (add-hook 'after-change-major-mode-hook 'adob--after-change-major-mode-hook)
   (add-hook 'next-error-hook 'adob--after-change-major-mode-hook))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]