1 ;;; riece-compat.el --- compatibility functions
2 ;; Copyright (C) 1998-2003 Daiki Ueno
4 ;; Author: Daiki Ueno <ueno@unixuser.org>
6 ;; Keywords: IRC, riece, APEL
8 ;; This file is part of Riece.
10 ;; This program is free software; you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 2, or (at your option)
15 ;; This program is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;; GNU 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.
27 (defalias 'riece-mode-line-buffer-identification
30 (defun riece-simplify-mode-line-format ()
31 "Remove unnecessary information from `mode-line-format'."
32 (let ((value (rassq 'mode-line-modified mode-line-format)))
34 (setq mode-line-format (delq value (copy-sequence mode-line-format)))
37 (defun riece-line-beginning-position ()
42 (defun riece-line-end-position ()
47 (defvar riece-read-passwd nil)
48 (defun riece-read-passwd (prompt)
49 (if (not riece-read-passwd)
50 (if (functionp 'read-passwd)
51 (setq riece-read-passwd 'read-passwd)
53 (setq riece-read-passwd 'read-passwd)
54 (autoload 'ange-ftp-read-passwd "ange-ftp")
55 (setq riece-read-passwd 'ange-ftp-read-passwd))))
56 (funcall riece-read-passwd prompt))
58 (provide 'riece-compat)
60 ;;; riece-compat.el ends here