From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: pcase and minus-sign Date: Wed, 30 Nov 2016 16:48:25 +0100 Message-ID: <87oa0xas0j.fsf@fastmail.fm> References: <87r35tb0se.fsf@fastmail.fm> <87poldax6l.fsf@fastmail.fm> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1480521121 14672 195.159.176.226 (30 Nov 2016 15:52:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 30 Nov 2016 15:52:01 +0000 (UTC) User-Agent: mu4e 0.9.17; emacs 25.1.50.3 Cc: Michael Heerdegen , Help Gnu Emacs mailing list To: Andreas =?utf-8?Q?R=C3=B6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 30 16:51:57 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 1cC7Ar-00035v-0T for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Nov 2016 16:51:57 +0100 Original-Received: from localhost ([::1]:44772 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cC7Au-0006XY-SL for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Nov 2016 10:52:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cC77e-0004p8-84 for help-gnu-emacs@gnu.org; Wed, 30 Nov 2016 10:48:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cC77Z-00086M-Cv for help-gnu-emacs@gnu.org; Wed, 30 Nov 2016 10:48:38 -0500 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:34061) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cC77Z-000857-6S for help-gnu-emacs@gnu.org; Wed, 30 Nov 2016 10:48:33 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 5238B20862; Wed, 30 Nov 2016 10:48:32 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Wed, 30 Nov 2016 10:48:32 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=FsjJTRuuWlQAAEI GvUZiKzw3MIY=; b=aBEEBVPwsLJK8QEtbbKvoTiHqLGKZfm4Kf03M1wTglLdYB0 3W+Pz646DIbNsogQjTM6Jy7Z2U756DLR8ULjynuldEP5rD+efUKBJqvMWHTDCH5i E8Va3Oq5WDnbXMnori7+fwA6WnWt34T3sBTreSeTkPmHXJXT7H71fNgxAz7k= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=FsjJTRuuWlQAAEIGvUZiKzw3MIY=; b=foKwnIM4y1B7YZ0wH+9L 5OyGTEDWI/TLaDfRcRUMbpvRqByuZHgqJVE6R3wGfObtgCrzhLlltqYxMp8SpwWB lkDlUIoY6vJfSndQHxS7TqAuNMytDEepEcTS9YgdRywN33xDMb9r3ovYGH3OaUDs suUbEpHxtyhXWSnc3PvsKAc= X-ME-Sender: X-Sasl-enc: ZYhZLJncR0IjPVgoB9NAXeHsEusSs2KaVPXIakoGrQZx 1480520911 Original-Received: from IdeaPad.messagingengine.com (x4d0aed8b.dyn.telefonica.de [77.10.237.139]) by mail.messagingengine.com (Postfix) with ESMTPA id 7818E7E7F1; Wed, 30 Nov 2016 10:48:31 -0500 (EST) In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.29 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:111837 Archived-At: 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. -- Joost Kremers Life has its moments