From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Andreas_R=c3=b6hler?= Newsgroups: gmane.emacs.help Subject: Re: pcase and minus-sign Date: Sat, 3 Dec 2016 09:04:02 +0100 Message-ID: References: <87r35tb0se.fsf@fastmail.fm> <87poldax6l.fsf@fastmail.fm> <87oa0xas0j.fsf@fastmail.fm> <1a633aa5-75e4-f18f-ef97-7adb10589e79@easy-emacs.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1480751735 11343 195.159.176.226 (3 Dec 2016 07:55:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 3 Dec 2016 07:55:35 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.4.0 Cc: Stefan Monnier To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 03 08:55:30 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cD5AP-0001si-TN for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Dec 2016 08:55:30 +0100 Original-Received: from localhost ([::1]:38147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cD5AT-0001yl-KM for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Dec 2016 02:55:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cD5A2-0001ww-Dn for help-gnu-emacs@gnu.org; Sat, 03 Dec 2016 02:55:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cD59x-0003Z3-Ij for help-gnu-emacs@gnu.org; Sat, 03 Dec 2016 02:55:06 -0500 Original-Received: from mout.kundenserver.de ([212.227.126.187]:53651) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cD59x-0003Yo-9j for help-gnu-emacs@gnu.org; Sat, 03 Dec 2016 02:55:01 -0500 Original-Received: from [192.168.178.35] ([77.12.186.185]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MRyOs-1c5op01odu-00THci; Sat, 03 Dec 2016 08:54:56 +0100 In-Reply-To: X-Provags-ID: V03:K0:uXkDQUKDDll6yqRj1CxR43twhEvvIoyCIxyVuChNHGXGhVUdyvk UhDF7olP1K5sIAWbNFuR5Tu4Pg3MviaPEUTgh/qgXA5f/XzIv9LP1VbJwGGT9oQyw203pLT v4rq5kamOkT4NLUv+MAkrrxFJYnaTetmuYDfc2oerprE11AyML81RVDn3F/s5bMOYRtsFyc +vFj4ZyPyqUMBwlMoo1fg== X-UI-Out-Filterresults: notjunk:1;V01:K0:YlGwDlXKugc=:fM5ga3Naw8s8i+ol/yXosh PVDz47/xhWzgENvnpyQ25D1j77g3L+5EzyXibLCCF8/vNBlS3mjYunEPGb/oFNRwEYSQ37QCD KNE+d0EHYXBpzJcPp5BnY0kng7k95tUDMHZqZgDWM4YhgkfKZg7pWsixHhG3K2rxfBcxGmEWt 8TwNU5J7PUP5BCoq8vvv6bBkSbi7TMaLHpEIwIAxSifppKu95WnUkySuCcGNECW658joS0iqt MschSVif+l+uq3/gHqBata/7cBd8AxqFc62Nq5JeVgWpOV6htwgCrDAmNT+rNwF6kUkiD+Lad eO8LVKseOyb+XHAi0BuoyiR9CqDig6hhi8wV2yIuXnT0Axl9iy9s6ucJJpwopBnBtTKhupvFi jmpg3xX4658j0PlJUAM+gvW8HJv8cvWDOOenp8ZUWGv7qB5vxRadRaX5a5kGHZEi5pSUQPCEE L5jB5siN3FewOJqV/f0/4hGzsfmqS9JwosfwSSGT1bnWYMrepLCpQAh8P04yIPEGP+oGEYGMK jBJ3jNmVXfqcXRuf4HOD7M3IHQiJQ0suw4tVp43S8AVMQFn+OZSMMbbQgooqh737w/+qo/yOL bzYUO57Kj8dUlY5gd5Wzh//fehGPQh/SYtlCm1KDjoas541JfRqyG4GFR+GbxlVQqXFE4r1SD W8T8cGEoBneJGBT9NGdyNlbgqgfyrroG77CKJsec/qwGyqNAQLRmgjTEPl+XKWXgFI6zQTzt1 qMKhqxO6YsNwKmu5 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.126.187 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111863 Archived-At: On 02.12.2016 03:30, Stefan Monnier 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! > BTW, the driving idea behind the shape of pcase patterns is more or less > that a pattern PAT matches the value V if an expression PAT could > evaluate to the value V. Must confess some hardship of understanding. If an expression may evaluate to a certain value or not, that depends resp. may depend on the state at run-time. Can't see how that makes sense here. >