comparison lisp/tl/emu-xemacs.el @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents e04119814345
children 54cc21c15cbb
comparison
equal deleted inserted replaced
69:804d1389bcd6 70:131b0175ea99
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,1997 MORIOKA Tomohiko 4 ;; Copyright (C) 1995,1996 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.4 1997/03/16 05:55:39 steve Exp $ 8 ;; $Id: emu-xemacs.el,v 1.1.1.1 1996/12/18 22:43:38 steve Exp $
9 ;; Keywords: emulation, compatibility, XEmacs 9 ;; Keywords: emulation, compatibility, XEmacs
10 10
11 ;; This file is part of XEmacs. 11 ;; This file is part of emu.
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 ;;; @ face 30 ;;; @ text property
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 )
45 56
46 ;;; @ overlay 57 (defun tl:add-text-properties (start end properties)
47 ;;; 58 (add-text-properties start end
59 (append properties (list 'highlight t))
60 )
61 )
48 62
49 (defalias 'tl:make-overlay 'make-extent) 63 (defalias 'tl:make-overlay 'make-extent)
50 (defalias 'tl:overlay-put 'set-extent-property) 64 (defalias 'tl:overlay-put 'set-extent-property)
51 (defalias 'tl:overlay-buffer 'extent-buffer) 65 (defalias 'tl:overlay-buffer 'extent-buffer)
52 66