On Tue, Jul 20, 2021 at 07:12:14PM +0800, Hongyi Zhao wrote: > I adapted the examples given on > > to the following: > > ;;; > (setq colors '(("rose merry" . red) (lily (belladonna . yellow)))) > > (let-alist colors > (if (eq ."rose merry" 'red) > .lily.belladonna)) > ;;; > > When I try to evaluate the above code snippet, the following error is triggered: It's not the space. It's the dot ".". This is wrong Lisp syntax: (eq ."rose merry" 'red) Also the dots in .lily.belladonna look strange. This will be the next syntax error. BTW., if you take the dot out, like so (eq "rose merry" 'red) the syntax will be correct, but the expression itself won't make much sense, because it will always be false. The string "rose merry" can't ever be `eq' to the symbol 'red. What are you trying to achieve? Cheers - t