3 (defvar byte-compile-default-warnings)
5 (defun maybe-fbind (args)
7 (or (fboundp (car args))
8 (fset (car args) 'ignore))
9 (setq args (cdr args))))
11 (if (string-match "XEmacs" emacs-version)
13 (defvar track-mouse nil)
14 (maybe-fbind '(posn-point event-start x-popup-menu
15 facemenu-get-face window-at
16 coordinates-in-window-p compute-motion
17 x-defined-colors easy-menu-create-keymaps))
18 ;; XEmacs thinks writting compatible code is obsolete.
20 (setq byte-compile-default-warnings
21 (delq 'obsolete byte-compile-default-warnings)))
22 (defvar browse-url-browser-function nil)
23 (maybe-fbind '(color-instance-rgb-components make-color-instance
24 color-instance-name specifier-instance device-type
25 device-class get-popup-menu-response event-object
26 x-defined-colors read-color add-submenu set-font-family
27 font-create-object set-font-size frame-device find-face
28 set-extent-property make-extent characterp display-error)))
30 (setq load-path (cons "." load-path))