1 ;;; emu-19.el --- emu API implementation for Emacs 19.*
3 ;; Copyright (C) 1995,1996,1997 Free Software Foundation, Inc.
5 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
6 ;; Version: $Id: emu-19.el,v 7.16 1997/04/05 06:46:09 morioka Exp $
7 ;; Keywords: emulation, compatibility
9 ;; This file is part of emu.
11 ;; This program is free software; you can redistribute it and/or
12 ;; modify it under the terms of the GNU General Public License as
13 ;; published by the Free Software Foundation; either version 2, or (at
14 ;; your option) any later version.
16 ;; This program is distributed in the hope that it will be useful, but
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 ;; General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 ;; Boston, MA 02111-1307, USA.
31 (defun-maybe find-face (face)
32 (car (memq face (face-list)))
36 ;;; @ visible/invisible
39 (defmacro enable-invisible ())
41 (defmacro end-of-invisible ())
43 (defun invisible-region (start end)
46 (eq (following-char) ?\n)
50 (put-text-property start end 'invisible t)
53 (defun visible-region (start end)
54 (put-text-property start end 'invisible nil)
57 (defun invisible-p (pos)
58 (get-text-property pos 'invisible)
61 (defun next-visible-point (pos)
63 (goto-char (next-single-property-change pos 'invisible))
64 (if (eq (following-char) ?\n)
74 (defvar mouse-button-1 [mouse-1])
75 (defvar mouse-button-2 [mouse-2])
76 (defvar mouse-button-3 [down-mouse-3])
82 (defmacro char-list-to-string (char-list)
83 "Convert list of character CHAR-LIST to string. [emu-19.el]"
84 (` (mapconcat (function char-to-string)
95 ;;; emu-19.el ends here