comparison lisp/tl/emu-xemacs.el @ 32:e04119814345 r19-15b99

Import from CVS: tag r19-15b99
author cvs
date Mon, 13 Aug 2007 08:52:56 +0200
parents ec9a17fef872
children 131b0175ea99
comparison
equal deleted inserted replaced
31:b9328a10c56c 32:e04119814345
1 ;;; emu-xemacs.el --- emu API implementation for XEmacs 1 ;;; emu-xemacs.el --- emu API implementation for XEmacs
2 2
3 ;; Copyright (C) 1995 Free Software Foundation, Inc. 3 ;; Copyright (C) 1995 Free Software Foundation, Inc.
4 ;; Copyright (C) 1995,1996 MORIOKA Tomohiko 4 ;; Copyright (C) 1995,1996,1997 MORIOKA Tomohiko
5 5
6 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp> 6 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
7 ;; Version: 7 ;; Version:
8 ;; $Id: emu-xemacs.el,v 1.3 1997/03/09 02:37:47 steve Exp $ 8 ;; $Id: emu-xemacs.el,v 1.4 1997/03/16 05:55:39 steve Exp $
9 ;; Keywords: emulation, compatibility, XEmacs 9 ;; Keywords: emulation, compatibility, XEmacs
10 10
11 ;; This file is part of emu. 11 ;; This file is part of XEmacs.
12 12
13 ;; This program is free software; you can redistribute it and/or 13 ;; This program is free software; you can redistribute it and/or
14 ;; modify it under the terms of the GNU General Public License as 14 ;; modify it under the terms of the GNU General Public License as
15 ;; published by the Free Software Foundation; either version 2, or (at 15 ;; published by the Free Software Foundation; either version 2, or (at
16 ;; your option) any later version. 16 ;; your option) any later version.
25 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 25 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
26 ;; 02111-1307, USA. 26 ;; 02111-1307, USA.
27 27
28 ;;; Code: 28 ;;; Code:
29 29
30 ;;; @ text property 30 ;;; @ face
31 ;;; 31 ;;;
32 32
33 (or (fboundp 'face-list) 33 (or (fboundp 'face-list)
34 (defalias 'face-list 'list-faces) 34 (defalias 'face-list 'list-faces)
35 ) 35 )
40 )) 40 ))
41 41
42 (or (face-differs-from-default-p 'underline) 42 (or (face-differs-from-default-p 'underline)
43 (set-face-underline-p 'underline t)) 43 (set-face-underline-p 'underline t))
44 44
45 (or (fboundp 'tl:set-text-properties)
46 (defun tl:set-text-properties (start end props &optional buffer)
47 (if (or (null buffer) (bufferp buffer))
48 (if props
49 (while props
50 (put-text-property
51 start end (car props) (nth 1 props) buffer)
52 (setq props (nthcdr 2 props)))
53 (remove-text-properties start end ())
54 )))
55 )
56 45
57 (defun tl:add-text-properties (start end properties &optional object) 46 ;;; @ overlay
58 (add-text-properties start end 47 ;;;
59 (append properties (list 'highlight t))
60 object)
61 )
62 48
63 (defalias 'tl:make-overlay 'make-extent) 49 (defalias 'tl:make-overlay 'make-extent)
64 (defalias 'tl:overlay-put 'set-extent-property) 50 (defalias 'tl:overlay-put 'set-extent-property)
65 (defalias 'tl:overlay-buffer 'extent-buffer) 51 (defalias 'tl:overlay-buffer 'extent-buffer)
66 52