1 ;;; mh-xemacs-compat.el --- GNU Emacs Functions needed by XEmacs
3 ;; Copyright (C) 2001, 2002 Free Software Foundation, Inc.
6 ;; Maintainer: Bill Wohler <wohler@newt.com>
10 ;; This file is part of GNU Emacs.
12 ;; GNU Emacs is free software; you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation; either version 2, or (at your option)
17 ;; GNU Emacs is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs; see the file COPYING. If not, write to the
24 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
25 ;; Boston, MA 02111-1307, USA.
31 ;; $Id: mh-xemacs-compat.el,v 1.12 2002/11/02 19:56:50 wohler Exp $
38 ;;; Simple compatibility:
40 (unless (fboundp 'match-string-no-properties)
41 (defsubst match-string-no-properties (match)
42 (buffer-substring-no-properties
43 (match-beginning match) (match-end match))))
45 (unless (fboundp 'line-beginning-position)
46 (defalias 'line-beginning-position 'point-at-bol))
47 (unless (fboundp 'line-end-position)
48 (defalias 'line-end-position 'point-at-eol))
50 (unless (fboundp 'timerp)
51 (defalias 'timerp 'itimerp))
52 (unless (fboundp 'cancel-timer)
53 (defalias 'cancel-timer 'delete-itimer))
56 (provide 'mh-xemacs-compat)
59 ;;; sentence-end-double-space: nil
62 ;;; mh-xemacs-compat.el ends here