Skip to content

Commit

Permalink
Code cleanups
Browse files Browse the repository at this point in the history
* exwm-workspace.el (exwm-workspace--update-switch-history): use `aref' instead
  of `elt' to index vectors
* .elpaignore: ignore README.md
  • Loading branch information
ch11ng committed Sep 6, 2015
1 parent 6d63c71 commit 637ac15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .elpaignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
README.md
4 changes: 2 additions & 2 deletions exwm-workspace.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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))))
Expand Down

0 comments on commit 637ac15

Please sign in to comment.