Mercurial > hg > xemacs-beta
view lisp/ilisp/ilisp-sym.el @ 124:9b50b4588a93 r20-1b15
Import from CVS: tag r20-1b15
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:26:39 +0200 |
parents | b82b59fe008d |
children |
line wrap: on
line source
;;; -*- Mode: Emacs-Lisp -*- ;;; ilisp-sym.el -- ;;; This file is part of ILISP. ;;; Version: 5.8 ;;; ;;; Copyright (C) 1990, 1991, 1992, 1993 Chris McConnell ;;; 1993, 1994 Ivan Vasquez ;;; 1994, 1995, 1996 Marco Antoniotti and Rick Busdiecker ;;; 1996 Marco Antoniotti and Rick Campbell ;;; ;;; Other authors' names for which this Copyright notice also holds ;;; may appear later in this file. ;;; ;;; Send mail to 'ilisp-request@naggum.no' to be included in the ;;; ILISP mailing list. 'ilisp@naggum.no' is the general ILISP ;;; mailing list were bugs and improvements are discussed. ;;; ;;; ILISP is freely redistributable under the terms found in the file ;;; COPYING. ;;; ;;; ILISP Lisp symbol utils. ;;; ;;;%%Symbol (defun lisp-symbol (package delimiter name) "Create a LISP symbol." (list package (if package (or delimiter "::")) name)) (defun lisp-symbol-name (symbol) "Return the name of SYMBOL." (car (cdr (cdr symbol)))) (defun lisp-symbol-package (symbol) "Return the package of SYMBOL." (car symbol)) (defun lisp-symbol-delimiter (symbol) "Return the qualifier of SYMBOL." (car (cdr symbol))) ;;; (defun lisp-symbol= (symbol1 symbol2) "Return T is SYMBOL1 is equal to SYMBOL2." (and (string= (lisp-symbol-name symbol1) (lisp-symbol-name symbol2)) (string= (lisp-symbol-package symbol1) (lisp-symbol-package symbol2)) (string= (lisp-symbol-delimiter symbol1) (lisp-symbol-delimiter symbol2))))