Skip to content

Commit

Permalink
Move command-specific procedures to command language spec, remove
Browse files Browse the repository at this point in the history
spurious procedure from top of (guile-wm command)
  • Loading branch information
mwitmer committed Feb 3, 2014
1 parent f3a6d09 commit 9757b05
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion module/guile-wm/command.scm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
>;; This file is part of Guile-WM.
;; This file is part of Guile-WM.

;; Guile-WM is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
Expand Down
9 changes: 0 additions & 9 deletions module/guile-wm/shared.scm
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,6 @@ modules."
((cdr kv)))
(hash-map->list cons module-init-thunks)))

(define-public commands (make-hash-table))
(define-public (get-command key)
"Retrieve a window manager command with key KEY. Returns #f is
none exists."
(hashq-ref commands key))

(define-public reparents (make-hash-table))

;; This procedure is redefined so that we can rewind delimited
;; continuations through it

Expand Down Expand Up @@ -143,4 +135,3 @@ the cdr is the xid of the child."
((null? reparented) #f)
((xid= (car reparented) win) #t)
(else (lp (cdr reparented))))))

5 changes: 5 additions & 0 deletions module/language/command/spec.scm
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
#:use-module (guile-wm shared)
#:export (command))

(define-public commands (make-hash-table))

(define-public (get-command key)
(hashq-ref commands key))

(define-public arg-missing (make-parameter #f))

(define (string-convert arg type)
Expand Down

0 comments on commit 9757b05

Please sign in to comment.