2 ;;; emu-xemacs.el --- Emacs 19 emulation module for XEmacs
4 ;;; Copyright (C) 1995 Free Software Foundation, Inc.
5 ;;; Copyright (C) 1995 MORIOKA Tomohiko
7 ;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
9 ;;; $Id: emu-xemacs.el,v 5.0 1995/09/21 00:08:50 morioka Exp $
10 ;;; Keywords: emulation, compatibility, XEmacs
12 ;;; This file is part of tl and tm (Tools for MIME).
15 (or (fboundp 'face-list)
16 (defalias 'face-list 'list-faces)
19 (or (memq 'underline (face-list))
20 (and (fboundp 'make-face)
21 (make-face 'underline)
24 (or (face-differs-from-default-p 'underline)
25 (set-face-underline-p 'underline t))
27 (or (fboundp 'tl:set-text-properties)
28 (defun tl:set-text-properties (start end props &optional buffer)
29 (if (or (null buffer) (bufferp buffer))
33 start end (car props) (nth 1 props) buffer)
34 (setq props (nthcdr 2 props)))
35 (remove-text-properties start end ())
39 (defun tl:add-text-properties (start end properties)
40 (add-text-properties start end
41 (append properties (list 'highlight t))
45 (defalias 'tl:make-overlay 'make-extent)
46 (defalias 'tl:overlay-put 'set-extent-property)
47 (defalias 'tl:overlay-buffer 'extent-buffer)
49 (defun tl:move-overlay (extent start end &optional buffer)
50 (set-extent-endpoints extent start end)
53 (defvar mouse-button-2 'button2)