X-Git-Url: https://cgit.sxemacs.org/?p=riece;a=blobdiff_plain;f=lisp%2Friece-xemacs.el;h=9a5cc6a59bdc866810e61645123dd9d6552a22b7;hp=f6b12625f769f4581515e550928bc2578a005e1c;hb=9f0f8e8f7c1fefd0ae6712872f9dcb78ae3ea11c;hpb=005a2a7642c9f43d699922799801124a77d56f5d diff --git a/lisp/riece-xemacs.el b/lisp/riece-xemacs.el index f6b1262..9a5cc6a 100644 --- a/lisp/riece-xemacs.el +++ b/lisp/riece-xemacs.el @@ -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))) @@ -73,6 +71,22 @@ Modify whole identification by side effect." (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