* riece-button.el (riece-button-requires): Abolish.
[riece] / lisp / riece-xemacs.el
index d1ea150..119cabe 100644 (file)
 (defalias 'riece-simplify-mode-line-format
   'riece-xemacs-simplify-modeline-format)
 
-(if (fboundp 'put-case-table-pair)
-    (defalias 'riece-set-case-syntax-pair
-      'put-case-table-pair)
-  ;; In XEmacs 21.1, case-table is a list of strings.
-  (defun riece-set-case-syntax-pair (uc lc case-table)
-    (aset (car case-table) (char-to-int uc) lc)
-    (if (nth 1 case-table)
-       (aset (nth 1 case-table) (char-to-int lc) uc))
-    (if (nth 2 case-table)
-       (aset (nth 2 case-table) (char-to-int uc) lc))))
-
-(if (fboundp 'copy-case-table)
-    (defalias 'riece-copy-case-table 'copy-case-table)
-  ;; In XEmacs 21.1, case-table is a list of strings.
-  (defun riece-copy-case-table (case-table)
-    (mapcar #'copy-sequence case-table)))
-
 ;;; stolen (and renamed) from gnus-xmas.el.
 ;;; In GNU Emacs, user can intercept whole mouse tracking events by
 ;;; assigning [mouse-X].  In XEmacs, however, which causes different
 
 (defalias 'riece-cancel-timer 'delete-itimer)
 
+(defun riece-match-string-no-properties (number &optional string)
+  (format "%s" (match-string number string)))
+
+(defun riece-propertize-modeline-string (string &rest properties)
+  (let ((extent (make-extent nil nil)))
+    (set-extent-properties extent properties)
+    (cons extent string)))
+
 (provide 'riece-xemacs)
 
 ;;; riece-xemacs.el ends here