]> code.delx.au - gnu-emacs/blob - lisp/mail/mh-xemacs-compat.el
(rmail-reply): Don't call mail-strip-quoted-names.
[gnu-emacs] / lisp / mail / mh-xemacs-compat.el
1 ;;; mh-xemacs-compat.el --- GNU Emacs Functions needed by XEmacs
2
3 ;; Copyright (C) 2001, 2002 Free Software Foundation, Inc.
4
5 ;; Author: FSF
6 ;; Maintainer: Bill Wohler <wohler@newt.com>
7 ;; Keywords: mail
8 ;; See: mh-e.el
9
10 ;; This file is part of GNU Emacs.
11
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)
15 ;; any later version.
16
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.
21
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.
26
27 ;;; Commentary:
28
29 ;;; Change Log:
30
31 ;; $Id: mh-xemacs-compat.el,v 1.12 2002/11/02 19:56:50 wohler Exp $
32
33 ;;; Code:
34
35 ;;; Some requires:
36 (require 'rfc822)
37
38 ;;; Simple compatibility:
39
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))))
44
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))
49
50 (unless (fboundp 'timerp)
51 (defalias 'timerp 'itimerp))
52 (unless (fboundp 'cancel-timer)
53 (defalias 'cancel-timer 'delete-itimer))
54
55
56 (provide 'mh-xemacs-compat)
57
58 ;;; Local Variables:
59 ;;; sentence-end-double-space: nil
60 ;;; End:
61
62 ;;; mh-xemacs-compat.el ends here