(xterm-remove-modify-other-keys): Fix error in terminal variable
authorChong Yidong <cyd@stupidchicken.com>
Wed, 10 Dec 2008 15:02:42 +0000 (15:02 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Wed, 10 Dec 2008 15:02:42 +0000 (15:02 +0000)
assignment.

lisp/term/xterm.el

index e893f88..aaa935e 100644 (file)
@@ -642,7 +642,7 @@ versions of xterm."
 
 (defun xterm-remove-modify-other-keys (&optional terminal)
   "Turn off the modifyOtherKeys feature of xterm for good."
-  (setq terminal (and terminal (frame-terminal (selected-frame))))
+  (setq terminal (or terminal (frame-terminal (selected-frame))))
   (when (and (terminal-live-p terminal)
             (memq terminal xterm-modify-other-keys-terminal-list))
     (setq xterm-modify-other-keys-terminal-list