1 ;;; emu-e19.el --- emu API implementation for Emacs 19.*
3 ;; Copyright (C) 1995,1996,1997,1998 Free Software Foundation, Inc.
5 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
6 ;; Keywords: emulation, compatibility
8 ;; This file is part of emu.
10 ;; This program is free software; you can redistribute it and/or
11 ;; modify it under the terms of the GNU General Public License as
12 ;; published by the Free Software Foundation; either version 2, or (at
13 ;; your option) any later version.
15 ;; This program is distributed in the hope that it will be useful, but
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ;; General Public License for more details.
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
30 (defun-maybe find-face (face)
31 (car (memq face (face-list)))
38 (defalias 'tl:make-overlay 'make-overlay)
39 (defalias 'tl:overlay-put 'overlay-put)
40 (defalias 'tl:overlay-buffer 'overlay-buffer)
42 (make-obsolete 'tl:make-overlay 'make-overlay)
43 (make-obsolete 'tl:overlay-put 'overlay-put)
44 (make-obsolete 'tl:overlay-buffer 'overlay-buffer)
47 ;;; @ visible/invisible
50 (defmacro enable-invisible ())
52 (defmacro end-of-invisible ())
54 (defun invisible-region (start end)
57 (eq (following-char) ?\n)
61 (put-text-property start end 'invisible t)
64 (defun visible-region (start end)
65 (put-text-property start end 'invisible nil)
68 (defun invisible-p (pos)
69 (get-text-property pos 'invisible)
72 (defun next-visible-point (pos)
74 (goto-char (next-single-property-change pos 'invisible))
75 (if (eq (following-char) ?\n)
84 (defvar mouse-button-1 [mouse-1])
85 (defvar mouse-button-2 [mouse-2])
86 (defvar mouse-button-3 [down-mouse-3])
92 (defmacro char-list-to-string (char-list)
93 "Convert list of character CHAR-LIST to string."
94 (` (mapconcat (function char-to-string)
104 ;;; emu-e19.el ends here