Mercurial > hg > xemacs-beta
comparison lisp/cl-compat.el @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | b8cc9ab3f761 |
children |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
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 ;; XEmacs change. | 59 (defun keywordp (sym) |
60 ;; We have built-in function. | 60 (and (symbolp sym) (eq (aref (symbol-name sym) 0) ?\:) (set sym sym))) |
61 ;;(defun keywordp (sym) | |
62 ;; (and (symbolp sym) (eq (aref (symbol-name sym) 0) ?\:) (set sym sym))) | |
63 | 61 |
64 (defun keyword-of (sym) | 62 (defun keyword-of (sym) |
65 (or (keywordp sym) (keywordp (intern (format ":%s" sym))))) | 63 (or (keywordp sym) (keywordp (intern (format ":%s" sym))))) |
66 | 64 |
67 | 65 |