* riece-xemacs.el (riece-mouse-2): New variable.
[riece] / lisp / riece-xemacs.el
index 055fa7c..9a5cc6a 100644 (file)
@@ -23,8 +23,6 @@
 
 ;;; Code:
 
-(require 'riece-compat)
-
 (defun riece-xemacs-hide-modeline ()
   "Remove modeline from current window."
   (set-specifier has-modeline-p nil (current-buffer)))
@@ -70,6 +68,25 @@ Modify whole identification by side effect."
 (defalias 'riece-simplify-mode-line-format
   'riece-xemacs-simplify-modeline-format)
 
+(defalias 'riece-set-case-syntax-pair
+  'put-case-table-pair)
+
+;;; stolen (and renamed) from gnus-ems.el.
+
+;;; In GNU Emacs, user can intercept whole mouse tracking events by
+;;; assigning [mouse-X].  In XEmacs, however, which causes different
+;;; effect, that is, the command assigned to [mouse-X] only catches
+;;; button-release events.
+(defvar riece-mouse-2 [button2])
+
+;;; popup-menu compatibility stuff, stolen (and renamed) from
+;;; semi-def.el.
+(defun riece-popup-menu-popup (menu event)
+  (let ((response (get-popup-menu-response menu event)))
+    (set-buffer (event-buffer event))
+    (goto-char (event-point event))
+    (funcall (event-function response) (event-object response))))
+
 (provide 'riece-xemacs)
 
 ;;; riece-xemacs.el ends here