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 0c15c0d3a4 52/82: s/adob--ignore-bu


From: ELPA Syncer
Subject: [nongnu] elpa/auto-dim-other-buffers 0c15c0d3a4 52/82: s/adob--ignore-buffer/adob--never-dim-p/
Date: Mon, 12 Dec 2022 20:58:43 -0500 (EST)

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

    s/adob--ignore-buffer/adob--never-dim-p/
    
    ‘adob--never-dim-p’ name is more descriptive as it clearly states what
    shouldn’t happen to a buffer whereas ‘ignore’ is context-dependent.
---
 auto-dim-other-buffers.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/auto-dim-other-buffers.el b/auto-dim-other-buffers.el
index 02f0f3f8a0..e42bed2a5f 100644
--- a/auto-dim-other-buffers.el
+++ b/auto-dim-other-buffers.el
@@ -71,8 +71,8 @@
 (defvar adob--last-buffer nil
   "Selected buffer before command finished.")
 
-(defun adob--ignore-buffer (buffer)
-  "Return whether to ignore BUFFER and do not affect its state.
+(defun adob--never-dim-p (buffer)
+  "Return whether to never dim BUFFER.
 Currently only mini buffer and echo areas are ignored."
   (or (null buffer)
       (minibufferp buffer)
@@ -104,7 +104,7 @@ Currently only mini buffer and echo areas are ignored."
                (not (minibufferp buf))))
       ;; Dim last buffer if it’s live and not ignored.
       (and (buffer-live-p adob--last-buffer)
-           (not (adob--ignore-buffer adob--last-buffer))
+           (not (adob--never-dim-p adob--last-buffer))
            (with-current-buffer adob--last-buffer
              (adob--dim-buffer t)))
       ;; Undim the new buffer.
@@ -125,11 +125,11 @@ Currently only mini buffer and echo areas are ignored."
 
 (defun adob--dim-all-buffers (dim)
   "Dim (if DIM is non-nil) or undim all buffers which are not to be ignored.
-Whether buffer should be ignored is determined by `adob--ignore-buffer'
+Whether buffer should be ignored is determined by `adob--never-dim-p'
 function."
   (save-current-buffer
     (dolist (buffer (buffer-list))
-      (unless (adob--ignore-buffer buffer)
+      (unless (adob--never-dim-p buffer)
         (set-buffer buffer)
         (adob--dim-buffer dim)))))
 



reply via email to

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