about summary refs log tree commit diff
path: root/exwm-workspace.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2015-09-06T09·18+0800
committerChris Feng <chris.w.feng@gmail.com>2015-09-06T09·18+0800
commit637ac157192dcae0785cc27a613bc59626950592 (patch)
tree2647b58b0d83aed51490104176a6fcca73a5cc1a /exwm-workspace.el
parent6d63c712808bcb12ce7190999d17c4a0d6959cdb (diff)
Code cleanups
* exwm-workspace.el (exwm-workspace--update-switch-history): use `aref' instead
  of `elt' to index vectors
* .elpaignore: ignore README.md
Diffstat (limited to 'exwm-workspace.el')
-rw-r--r--exwm-workspace.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/exwm-workspace.el b/exwm-workspace.el
index 9cf1ff0509..2ea8d1fb16 100644
--- a/exwm-workspace.el
+++ b/exwm-workspace.el
@@ -72,7 +72,7 @@
     (dolist (i exwm--id-buffer-alist)
       (with-current-buffer (cdr i)
         (when exwm--frame
-          (setf (elt not-empty (cl-position exwm--frame exwm-workspace--list))
+          (setf (aref not-empty (cl-position exwm--frame exwm-workspace--list))
                 t))))
     (setq exwm-workspace--switch-history
           (mapcar
@@ -86,7 +86,7 @@
                          (cond ((frame-parameter (elt exwm-workspace--list j)
                                                  'exwm--urgency)
                                 '(:foreground "orange"))
-                               ((elt not-empty j) '(:foreground "green"))
+                               ((aref not-empty j) '(:foreground "green"))
                                (t nil)))))
               sequence ""))
            sequence))))