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

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

[elpa] externals/exwm 8905e85 04/11: Rename variable using ‘exwm-worksp


From: Adrin Medrao Calvo
Subject: [elpa] externals/exwm 8905e85 04/11: Rename variable using ‘exwm-workspace’ package prefix; add docstring
Date: Sat, 13 Nov 2021 16:51:01 -0500 (EST)

branch: externals/exwm
commit 8905e85d34082e6a0a175edc9954eb2d8d0e1473
Author: Matt Beshara <m@mfa.pw>
Commit: Adrián Medraño Calvo <adrian@medranocalvo.com>

    Rename variable using ‘exwm-workspace’ package prefix; add docstring
    
    * exwm-workspace.el (exwm-workspace--client-p-hash-table): Rename
    `exwm--client-p-hash-table'.
---
 exwm-workspace.el | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/exwm-workspace.el b/exwm-workspace.el
index c1de5da..ddf20ea 100644
--- a/exwm-workspace.el
+++ b/exwm-workspace.el
@@ -165,18 +165,20 @@ NIL if FRAME is not a workspace"
   "Return t if FRAME is a workspace."
   (memq frame exwm-workspace--list))
 
-(defvar exwm--client-p-hash-table
-  (make-hash-table :test 'eq :weakness 'key))
+(defvar exwm-workspace--client-p-hash-table
+  (make-hash-table :test 'eq :weakness 'key)
+  "Used to cache the results of calling ‘exwm-workspace--client-p’.")
 
 (defsubst exwm-workspace--client-p (&optional frame)
   "Return non-nil if FRAME is an emacsclient frame."
   (let* ((frame (or frame (selected-frame)))
-         (cached-value (gethash frame exwm--client-p-hash-table 'absent)))
+         (cached-value
+          (gethash frame exwm-workspace--client-p-hash-table 'absent)))
     (if (eq cached-value 'absent)
         (puthash frame
                  (or (frame-parameter frame 'client)
                      (not (display-graphic-p frame)))
-                 exwm--client-p-hash-table)
+                 exwm-workspace--client-p-hash-table)
         cached-value)))
 
 (defvar exwm-workspace--switch-map nil



reply via email to

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