1 ;;; -*- Mode: Emacs-Lisp -*-
4 ;;; ILISP buffer value interface
6 ;;; This file is part of ILISP.
7 ;;; Please refer to the file COPYING for copyrights and licensing
9 ;;; Please refer to the file ACKNOWLEGDEMENTS for an (incomplete) list
10 ;;; of present and past contributors.
12 ;;; $Id: ilisp-val.el,v 1.3 2001-07-02 09:40:49 youngs Exp $
14 (defun ilisp-value (variable &optional no-error-p)
15 "Return the value of VARIABLE in the ILISP buffer.
16 If NO-ERROR-P is NIL, then an error will be signalled if VARIABLE is nil."
18 (set-buffer (ilisp-buffer))
19 (let ((value (eval variable)))
24 (error "%s is not defined." variable))))))
27 (defun set-ilisp-value (variable value)
28 "Set the value of VARIABLE in the ILISP buffer."
30 (set-buffer (ilisp-buffer))
31 (set variable value)))
33 ;;; end of file -- ilisp-val.el --