Need to take care of NIL, which is also a SYMBOL.
This commit is contained in:
parent
19297ce111
commit
e31bbd56f7
@ -59,6 +59,7 @@
|
|||||||
:IALLP "Internal-ALgebraic LooP"
|
:IALLP "Internal-ALgebraic LooP"
|
||||||
:ICMBN "Internal-CoMBiNation"
|
:ICMBN "Internal-CoMBiNation"
|
||||||
:IDNM "IDentification NuMber"
|
:IDNM "IDentification NuMber"
|
||||||
|
:IDNT "IDeNTity"
|
||||||
:ILOOP "Internal LOOP"
|
:ILOOP "Internal LOOP"
|
||||||
:INTR "INTeRnal-"
|
:INTR "INTeRnal-"
|
||||||
|
|
||||||
@ -110,9 +111,10 @@
|
|||||||
|
|
||||||
(DEFUN what-is (kwd)
|
(DEFUN what-is (kwd)
|
||||||
(declare (type (or keyword string symbol) kwd))
|
(declare (type (or keyword string symbol) kwd))
|
||||||
"WHAT-IS returns the full word or term for an abbreviation provided as a keyword
|
"WHAT-IS returns the full word or term for an abbreviation provided as a
|
||||||
string, or symbol. It returns NIL for unknown abbreviations."
|
keyword, string, or symbol. It returns NIL for unknown abbreviations."
|
||||||
|
(unless (null kwd)
|
||||||
(getf +ABBREVIATIONS+
|
(getf +ABBREVIATIONS+
|
||||||
(cond ((keywordp kwd) kwd)
|
(cond ((keywordp kwd) kwd)
|
||||||
((stringp kwd) (intern (string-upcase kwd) 'keyword))
|
((stringp kwd) (intern (string-upcase kwd) 'keyword))
|
||||||
((symbolp kwd) (intern (symbol-name kwd) 'keyword)))))
|
((symbolp kwd) (intern (symbol-name kwd) 'keyword))))))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user