1 ;;; -*- Mode: Emacs-Lisp -*-
5 ;;; This file is part of ILISP.
6 ;;; Please refer to the file COPYING for copyrights and licensing
8 ;;; Please refer to the file ACKNOWLEGDEMENTS for an (incomplete) list
9 ;;; of present and past contributors.
11 ;;; $Id: ilfsf18.el,v 1.3 2001-07-02 09:40:45 youngs Exp $
14 ;;;============================================================================
17 (if (string-match "2\.03" comint-version)
18 (fset 'comint-mem 'member))
21 ;;;============================================================================
24 (defun add-hook (hook function)
25 " Add FUNCTION to HOOK's list.
26 Arguments are HOOK and FUNCTION. FUNCTION is not added if it's already
30 (let ((value (symbol-value hook)))
31 (if (and value (or (not (consp value)) (eq (car value) 'lambda)))
32 (setq value (cons value nil)))
33 (if (not (comint-mem function value))
34 (setq value (append value (list function))))
39 (defun ilisp-get-input-ring ()
40 "Use instead of get-input-ring coming-input-ring or input-ring."
44 (defun ilisp-ring-insert (ring input)
46 (ring-insert ring input))
49 (defun ilisp-temp-buffer-show-function-symbol ()
50 "See 'temp-buffer-show-hook'."
51 'temp-buffer-show-hook)
54 (defun set-ilisp-temp-buffer-show-function (val)
55 "See 'temp-buffer-show-hook' set function."
56 (setq temp-buffer-show-hook val))
59 (defun ilisp-temp-buffer-show-function ()
60 "See 'temp-buffer-show-hook'."
61 temp-buffer-show-hook)
64 (defun ilisp-input-ring-index ()
65 "See 'input-ring-index'."
69 (defun set-ilisp-input-ring-index (n)
70 "See 'input-ring-index' set function."
71 (setq input-ring-index n))
74 (defun ilisp-input-ring-size ()
75 "See 'input-ring-size'."
79 (defun set-ilisp-input-ring-size (n)
80 "See 'input-ring-size' set function."
81 (setq input-ring-size n))
84 ;;;============================================================================
87 (provide 'compat-fsf18)
89 ;;; end of file -- il-fsf18.el --