/
emu-xemacs.el
69 lines (57 loc) · 1.75 KB
/
emu-xemacs.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
;;;
;;; emu-xemacs.el --- Emacs 19 emulation module for XEmacs
;;;
;;; Copyright (C) 1995 Free Software Foundation, Inc.
;;; Copyright (C) 1995 MORIOKA Tomohiko
;;;
;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;;; Version:
;;; $Id$
;;; Keywords: emulation, compatibility, XEmacs
;;;
;;; This file is part of tl and tm (Tools for MIME).
;;;
(or (fboundp 'face-list)
(defalias 'face-list 'list-faces)
)
(or (memq 'underline (face-list))
(and (fboundp 'make-face)
(make-face 'underline)
))
(or (face-differs-from-default-p 'underline)
(set-face-underline-p 'underline t))
(or (fboundp 'tl:set-text-properties)
(defun tl:set-text-properties (start end props &optional buffer)
(if (or (null buffer) (bufferp buffer))
(if props
(while props
(put-text-property
start end (car props) (nth 1 props) buffer)
(setq props (nthcdr 2 props)))
(remove-text-properties start end ())
)))
)
(defun tl:add-text-properties (start end properties)
(add-text-properties start end
(append properties (list 'highlight t))
)
)
(defalias 'tl:make-overlay 'make-extent)
(defalias 'tl:overlay-put 'set-extent-property)
(defalias 'tl:overlay-buffer 'extent-buffer)
(defun tl:move-overlay (extent start end &optional buffer)
(set-extent-endpoints extent start end)
)
(defvar mouse-button-1 'button1)
(defvar mouse-button-2 'button2)
(defvar mouse-button-3 'button3)
(or (fboundp 'dired-other-frame)
(defun dired-other-frame (dirname &optional switches)
"\"Edit\" directory DIRNAME. Like `dired' but makes a new frame."
(interactive (dired-read-dir-and-switches "in other frame "))
(switch-to-buffer-other-frame (dired-noselect dirname switches))
)
)
;;; @ end
;;;
(provide 'emu-xemacs)