]> git.eshelyaron.com Git - emacs.git/commitdiff
(idlwave-xemacs-hack-mouse-track): Avoid warnings.
authorRichard M. Stallman <rms@gnu.org>
Tue, 9 Aug 2005 11:41:11 +0000 (11:41 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 9 Aug 2005 11:41:11 +0000 (11:41 +0000)
lisp/progmodes/idlw-shell.el

index 7c1324c94af9a7c274990956bfa6c0775149ae71..3d6076cd52d56c7721b3c8d1fb5a1306e8386261 100644 (file)
@@ -2761,13 +2761,14 @@ Runs to the last statement and then steps 1 statement.  Use the .out command."
   t)
 
 (defun idlwave-xemacs-hack-mouse-track (event)
-  (let ((oldfunc (symbol-function 'default-mouse-track-event-is-with-button)))
-    (unwind-protect
-       (progn
-         (fset 'default-mouse-track-event-is-with-button 
-               'idlwave-default-mouse-track-event-is-with-button)
-         (mouse-track event))
-      (fset 'default-mouse-track-event-is-with-button oldfunc))))
+  (if (featurep 'xemacs) 
+      (let ((oldfunc (symbol-function 'default-mouse-track-event-is-with-button)))
+       (unwind-protect
+           (progn
+             (fset 'default-mouse-track-event-is-with-button 
+                   'idlwave-default-mouse-track-event-is-with-button)
+             (mouse-track event))
+         (fset 'default-mouse-track-event-is-with-button oldfunc)))))
 ;;; End terrible hack section
 
 (defun idlwave-shell-mouse-print (event)