chiark / gitweb /
emacs: Ignore the magical XF86WakeUp keysym.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 4 May 2009 13:04:49 +0000 (14:04 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 5 May 2009 10:13:19 +0000 (11:13 +0100)
For some reason, the `Fn' key on crybaby generates this keysym.  Having
Emacs feep when I bounce on it is annoying, since it ought to be a
perfectly innocent modifier key.

I've bound the key to an empty string, since this acts as a keyboard
macro and does nothing.  No other particularly simple binding seems to
work (`nil' and `undefined' continue to feep; and there's no obvious
do-nothing function to bind to the key).

emacs

diff --git a/emacs b/emacs
index 4337d391d09d8b9b4893afd30f2ffcd4c6279717..f7b860db0ef352f6857568eef59d4f499601c7a3 100644 (file)
--- a/emacs
+++ b/emacs
      (add-hook 'dired-mode-hook 'turn-on-gnus-dired-mode))
 
 (or mdw-fast-startup
-    (trap (bbdb-initialize 'gnus 'sendmail 'vm 'message)))
+    (trap (bbdb-initialize 'gnus 'sendmail 'message)))
 (setq bbdb-north-american-phone-numbers-p nil)
 
 ;; --- Customization ---
                'mouse-drag-vertical-line)
 (global-set-key [vertical-scroll-bar C-mouse-1]
                #'(lambda () (interactive)))
+(global-set-key [XF86WakeUp] "")
 (and (not mdw-fast-startup) (fboundp 'hippie-expand)
      (global-set-key [?\M-/] 'hippie-expand))