tm 7.49.
[elisp/apel.git] / emu-xemacs.el
index 7be0fc7..bc94124 100644 (file)
@@ -1,7 +1,33 @@
 ;;;
-;;; emu-xemacs: Emacs 19 emulation module for XEmacs
+;;; emu-xemacs.el --- Emacs 19 emulation module for XEmacs
 ;;;
-;;; $Id: emu-xemacs.el,v 2.0 1995/09/08 17:47:54 morioka Exp $
+;;; Copyright (C) 1995 Free Software Foundation, Inc.
+;;; Copyright (C) 1995 MORIOKA Tomohiko
+;;;
+;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
+;;; Version:
+;;;    $Id: emu-xemacs.el,v 7.2 1996/04/11 01:05:58 morioka Exp $
+;;; Keywords: emulation, compatibility, XEmacs
+;;;
+;;; This file is part of tl (Tiny Library).
+;;;
+;;; This program is free software; you can redistribute it and/or
+;;; modify it under the terms of the GNU General Public License as
+;;; published by the Free Software Foundation; either version 2, or
+;;; (at your option) any later version.
+;;;
+;;; This program is distributed in the hope that it will be useful,
+;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;;; General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with This program.  If not, write to the Free Software
+;;; Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+;;;
+;;; Code:
+
+;;; @ text property
 ;;;
 
 (or (fboundp 'face-list)
@@ -16,8 +42,8 @@
 (or (face-differs-from-default-p 'underline)
     (set-face-underline-p 'underline t))
 
-(or (fboundp 'set-text-properties)
-    (defun set-text-properties (start end props &optional buffer)
+(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
            )))
     )
 
-(defalias 'make-overlay 'make-extent)
-(defalias 'overlay-put 'set-extent-property)
+(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 move-overlay (extent start end &optional buffer)
+(defun tl:move-overlay (extent start end &optional buffer)
   (set-extent-endpoints extent start end)
   )
 
+
+;;; @ mouse
+;;;
+
+(defvar mouse-button-1 'button1)
+(defvar mouse-button-2 'button2)
+(defvar mouse-button-3 'button3)
+
+
+;;; @ dired
+;;;
+
+(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))
+      )
+    )
+
+
+;;; @ string
+;;;
+
+(defmacro char-list-to-string (char-list)
+  "Convert list of character CHAR-LIST to string. [emu-xemacs.el]"
+  `(mapconcat #'char-to-string ,char-list ""))
+
+
+;;; @ end
+;;;
+
 (provide 'emu-xemacs)
+
+;;; emu-xemacs.el ends here