|
From: | Andreas Röhler |
Subject: | Re: pcase and minus-sign |
Date: | Thu, 1 Dec 2016 14:59:39 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.4.0 |
On 30.11.2016 16:48, Joost Kremers wrote:
On Wed, Nov 30 2016, Andreas Röhler wrote:But what make the char `a' so special WRT char `1'?: (defun foo (arg) (interactive "P") (pcase arg (1 (message "%s" "ARG was `1'")) (a (message "%s" "ARG was `a'")) ('- (message "%s" "ARG was minus-sign")) (_ (message "%s" "ARG not minus-sign"))))The same thing that makes it different in "normal" Lisp code. 1 is read as an integer, not as a symbol.
Thanks all again!
[Prev in Thread] | Current Thread | [Next in Thread] |