Mercurial > hg > xemacs-beta
comparison lisp/cl-compat.el @ 406:b8cc9ab3f761 r21-2-33
Import from CVS: tag r21-2-33
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:17:09 +0200 |
parents | 41ff10fd062f |
children | 697ef44129c6 023b83f4e54b |
comparison
equal
deleted
inserted
replaced
405:0e08f63c74d2 | 406:b8cc9ab3f761 |
---|---|
54 ;;; Keyword routines not supported by new package. | 54 ;;; Keyword routines not supported by new package. |
55 | 55 |
56 (defmacro defkeyword (x &optional doc) | 56 (defmacro defkeyword (x &optional doc) |
57 (list* 'defconst x (list 'quote x) (and doc (list doc)))) | 57 (list* 'defconst x (list 'quote x) (and doc (list doc)))) |
58 | 58 |
59 (defun keywordp (sym) | 59 ;; XEmacs change. |
60 (and (symbolp sym) (eq (aref (symbol-name sym) 0) ?\:) (set sym sym))) | 60 ;; We have built-in function. |
61 ;;(defun keywordp (sym) | |
62 ;; (and (symbolp sym) (eq (aref (symbol-name sym) 0) ?\:) (set sym sym))) | |
61 | 63 |
62 (defun keyword-of (sym) | 64 (defun keyword-of (sym) |
63 (or (keywordp sym) (keywordp (intern (format ":%s" sym))))) | 65 (or (keywordp sym) (keywordp (intern (format ":%s" sym))))) |
64 | 66 |
65 | 67 |