Skip to content

Commit

Permalink
Make the 'create-listener' macro a bit more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
mwitmer committed Aug 27, 2013
1 parent dbebd7c commit 4b93b33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xcb/event-loop.scm
Expand Up @@ -31,6 +31,7 @@
#:use-module (flow event-loop)
#:export (with-replies create-listener
with-connection loop-with-connection
screen-info
create-tagged-listener
event-loop-prepare!)
#:re-export (solicit notify make-tag post-to-event-loop notify-map unsolicit))
Expand Down Expand Up @@ -284,10 +285,10 @@

(define-syntax make-listener
(syntax-rules (=>)
((_ event-struct tag extraguard ... (guard guard* ...) => proc)
((_ event-struct tag extraguard ... (guard ...) => proc)
(listen! event-struct tag
proc
(lambda (name) (verify-fields name extraguard ... guard guard* ...))))
(lambda (name) (verify-fields name extraguard ... guard ...))))
((_ event-struct tag extraguard ... () => proc)
(listen! event-struct tag proc))
((_ event-struct tag name (guard guard* ...) expr expr* ...)
Expand Down

0 comments on commit 4b93b33

Please sign in to comment.