[Sawfish] Why does my configure file report Warning ?

[ Thread Index | Date Index | More lists.tuxfamily.org/sawfish Archives ]


cat ~/.sawfish/my-init.jl
(setq load-path (cons "~/.sawfish/lisp" load-path))
(setq workspace-names '("Work"))
(setq apps-menu-autogen nil)
(setq decorate-transients t)

(require 'sawfish.wm.menus)

(setq restart-menu
    '(("ok" (system "sudo /sbin/shutdown -r now &"))
      ("cancel" (no-operation))))

(setq logout-menu
    '(("ok" (quit)) ("cancel" (no-operation))))

(setq quit-menu
    '(("ok" (system "sudo /sbin/shutdown -p now &"))
      ("cancel" (no-operation))))

(setq main-menu
    '(("WindowsXP"  (system "VBoxManage startvm winxp &"))
      ("Terminal"       (system "urxvt &"))
      ("Web"       (system "opera &"))
 ()
("Go" (system "wine \"c:/Program Files/eweiqi/LiveBaduk.exe\" &"))
      ()
      ("Picture"       (system "gqview &"))
      ("PDF"    (system "evince &"))
      ()
      ("Run"       (system "gmrun &"))
      ()
      ("Logout"       (popup-menu logout-menu))
      ("Reboot"       (popup-menu restart-menu))
      ("Shutdown"       (popup-menu quit-menu))))

(bind-keys global-keymap "Super-p" '(popup-menu main-menu))
(bind-keys global-keymap "Super-F2" '(system "gmrun &"))
(bind-keys global-keymap "Super-F3" '(maximize-window-toggle (current-event-window))) (bind-keys global-keymap "Super-F4" '(delete-window (current-event-window))) (bind-keys global-keymap "Super-F12" '(system "sudo /sbin/shutdown -p now &"))

(bind-keys root-window-keymap "button2-click" '(popup-root-menu))
(bind-keys root-window-keymap "Button3-Click" '(popup-menu main-menu))

(define startup-programs
    '(("fcitx")("urxvt")))

(mapc (lambda (program)
(apply start-process (make-process standard-output) program)) startup-programs)

(add-hook 'before-exit-hook
    (lambda () (mapc stop-process (active-processes))))

(require 'sawfish.wm.commands.jump-or-exec)

(bind-keys global-keymap "Super-t"
    `(jump-or-exec "rxvt"
        ,(lambda () (system "urxvt &"))
 (bind-keys root-window-keymap "button2-click" '(popup-root-menu))
(bind-keys root-window-keymap "Button3-Click" '(popup-menu main-menu))

(define startup-programs
    '(("fcitx")("urxvt")))

(mapc (lambda (program)
(apply start-process (make-process standard-output) program)) startup-programs)

(add-hook 'before-exit-hook
    (lambda () (mapc stop-process (active-processes))))

(require 'sawfish.wm.commands.jump-or-exec)

(bind-keys global-keymap "Super-t"
    `(jump-or-exec "rxvt"
        ,(lambda () (system "urxvt &"))
        ,(lambda (wind) (display-window wind))))

(bind-keys global-keymap "Super-w"
    `(jump-or-exec "Opera"
        ,(lambda () (system "opera &"))
        ,(lambda (wind) (display-window wind))))

(bind-keys global-keymap "Super-1" '(activate-workspace 1))
(bind-keys global-keymap "Super-2" '(activate-workspace 2))
(bind-keys global-keymap "Super-3" '(activate-workspace 3))

sawfisawfish --batch -l compiler -f compile-batch my-init.jl
my-init.jl:36: At top-level:
my-init.jl:36: warning: referencing undeclared free variable `restart-menu'
my-init.jl:40: warning: referencing undeclared free variable `logout-menu'
my-init.jl:43: warning: referencing undeclared free variable `quit-menu'
my-init.jl:52: warning: referencing undeclared free variable `main-menu'

It works but i want to know why sawfish warns me ?

Sincerely!


---
--
Sawfish ML


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/