From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: [External] : Re: cond construct for situation when a variable is t Date: Wed, 23 Aug 2023 19:49:45 +0000 Message-ID: References: <87o7j2d6yd.fsf@dataswamp.org> <874jkq98m0.fsf@dataswamp.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40285"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 23 21:51:14 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qYtsn-000AAu-Iw for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 23 Aug 2023 21:51:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYtry-0002eZ-Gr; Wed, 23 Aug 2023 15:50:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYtrw-0002eN-0F for help-gnu-emacs@gnu.org; Wed, 23 Aug 2023 15:50:20 -0400 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYtru-0007YK-4L for help-gnu-emacs@gnu.org; Wed, 23 Aug 2023 15:50:19 -0400 Original-Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37NHx0Xs002555; Wed, 23 Aug 2023 19:49:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=q8iNK9xDsNzUtqBi+56XgxfZk1s0paODTss9X8OTsyc=; b=ZA1mawi+m5BE08+dZ45YaKNuegkomP0jR7Sw9II/yH9r3V2gVk928eO6QDRRtfao7Z47 S19tM5HIkeunxA879rhNcM+HAPyJ+mAuMm60GBAOo8VOgQtMbBvFJw1+uscNj2Yw0kwp gkGu0k0wk9+guydJU+V+EYZwV3a1pGMTpfIKf42yTaGRtTF794dQWff9YqHWj42I1pAc wnHY7TZlu1Bax+Yr53H05+D55af3OMXMaKk3e1HmmOwRl/yHtzf/WCUlFmnBxKvj0dt3 hQborsuqpGl8/JkB/aoFAnmwelvA7rjW3R1GBoPHOd3WX0fOwEMiBi8c+jcQLN7W1oUq Qg== Original-Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3sn1yv2pvc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 Aug 2023 19:49:50 +0000 Original-Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 37NJ0oVn005767; Wed, 23 Aug 2023 19:49:49 GMT Original-Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2103.outbound.protection.outlook.com [104.47.70.103]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3sn1ys9r3n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 Aug 2023 19:49:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OXuk1hTBMjrexYQ+yV+Ug1eUFk8n7MwuXByHi58EcsKZCBMNhnqgHkR8ecqDKX3L/kgE9cXCg7xA+we1RUgk1xbP3hiRgCLuz4t4aJxJvF2LjEULR+Pd+JTWs0NPjh7HTGdjv5Wq0bDzOJjFnPbZ/8T1SFEtf8LHG7TjSSZIySj0phaIonpvbGXXVfbGYQ3wvEgkJtL6HjcVPtWKoEkF3QJzhaP9enthIg/vxRpfvQxTqShtj1ZY0LW8xhygEAKTPtFwYd3aOQfLRoXXc6h/MTZ5TUubPv8ph3PqAHj6cDBAX1e+hrP+h/yAjVWBf2KK7Jf91iYNkodXinFRcErzlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=q8iNK9xDsNzUtqBi+56XgxfZk1s0paODTss9X8OTsyc=; b=UBLN4Cg8C6ugd+LGHhfJE9U1m83x3ZJPdNgqwRJTx/wk39HL5fQ6lwXZLSgz5S8r5aZ5LuzDDndnhc2azf0v9Sj0OduKhCz68eQqMLpUoIyxjQBCVlra5dPUGQLIjzh8hi6aBwQr6F08ku1BFgSiezGSgqEKqd/4ZS7PE04Pz+xWLxZJdJVc1fBigYDrjCLApTdRTcGyX/TkBGy5em+eroKN9HUOa23aCrLWIeDm9wyYflrnaSCz0W5wi0GTvYg1yOb4krICWSjIzyUjsKVqjIm3THpWsiMmrxGlPuweznMBkfwNbvL8ga/VZ71pr12jW2g3XBB6DbFXAFOa1zO3Kw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q8iNK9xDsNzUtqBi+56XgxfZk1s0paODTss9X8OTsyc=; b=CYVF+i6osLGl5aoagAknsp8//lAdSESLPs82WJqJLHO1gjT8QZkTD8Bm0wvdQINHDDGr2gSp9PseCFXApayfmgQTmDNUnlq+e/SKcXkDyDmFZLR5cb1doPXxfusypXERzMUEdsorF0cRlwMSvhgqQ+p3OkBdHQ3L2JVMEU3gAzs= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by CH2PR10MB4392.namprd10.prod.outlook.com (2603:10b6:610:79::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.25; Wed, 23 Aug 2023 19:49:47 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::cfea:8a38:7719:1dee]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::cfea:8a38:7719:1dee%4]) with mapi id 15.20.6699.026; Wed, 23 Aug 2023 19:49:45 +0000 Thread-Topic: [External] : Re: cond construct for situation when a variable is t Thread-Index: AQHZ1S9MBu2frYR/4UqLKDD9p6ldL6/4SkWg In-Reply-To: <874jkq98m0.fsf@dataswamp.org> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|CH2PR10MB4392:EE_ x-ms-office365-filtering-correlation-id: c786ea39-0d40-42be-2f64-08dba41219eb x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xBTrWd+TET/V2T+ZkzScJhx2nGJ9xUYL3a/RswikEjB5oc2KExjvD97AtrT7PWywDhaahp++Cv/BUkovYWeSDjhpJXn3ZVt4dljSRnRBH88vK1Frd3vuuYJ2/7HG6rc+CTuDnL8yM9vYCoqsEr2JMdfA5OLJpo4fZcU6v4UxdZ88xepfQdYiU3sw9fysgusaoyahd6xpUOmZtnSwRT8rdyj3uijlxadr7cVOPYYW+UvwxREaomDV3r0dQdDUfc3wdj47mO7xrFTbgm6/kM0WyQM/lB/m7h4No8NW+FXT/HoKxlge6r9aRxYyp/LTixG0mHkoptFDEVfEPPpKJUBaQsEgWd30cw/pwxe4rAmc9wE22kqCcgPe1Ve15G/9yKuRTdmmuqZ+H0QBf6x9D7yIXpD/N2jeSOQdffrcOzFWAiCYNhfcgmpLnD00eR3IHBuxnK3f6xYBA19mwdviq3YAsT2rrF2hDdjhtclCKucZHEQEJYdi+OL2upLATVej9oIanV3syvNRurARGXxShQDM/R6AwuNOzhQ9JQEvgXWwoYD0z8xsC2ZdGXcedk1n490+prgxS8R6DwCCc9yt3GntdYclElKIbwju+jZzWkoDEOExAL1lWu0m5sjLT1nMc5DiZm/zvOBBecti3JryIpGEEA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366004)(136003)(376002)(39860400002)(396003)(346002)(1800799009)(451199024)(186009)(66946007)(66446008)(64756008)(66556008)(66476007)(76116006)(8676002)(8936002)(71200400001)(7696005)(6506007)(52536014)(26005)(110136005)(478600001)(316002)(9686003)(5660300002)(44832011)(41300700001)(2906002)(33656002)(55016003)(38100700002)(122000001)(86362001)(38070700005)(129723003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?84+7iuFNT0EKeXcKkp+ue0Hx1mn8qrMbvrFbaiqnDU9tUGSXAADzV10C9URi?= =?us-ascii?Q?fO7Tuu+uD4MPj3F/6DYsCtLyK92N1Qc/e8VH0KroASTqdRU8saOJhrl39F7x?= =?us-ascii?Q?D+GTx9peOULQw2XKAO8em2V+NwXoMKSvSNOKrLrqs/MQTNyf0AiXyYK3Muh8?= =?us-ascii?Q?cJRp+eqpaumMg9ydsMiY0SXV0JJLOJ9WxiTkMnqk1sRovLl09NL+mI34482+?= =?us-ascii?Q?0PAPtB+wZZC9BV71+FBq1vlG9/ITBNH+Sk95ihiiyo5RJ845gxMkyrLZ4lHN?= =?us-ascii?Q?PWi4Iql2ae6Wic1UKlIJVe8tqsiXRJ/wexUI3IRZsC7kvpOM66F28XQFhQkY?= =?us-ascii?Q?NUAv9X5YVjZ4i+fIFBYUP9q3zuExkY4fLVWP1kqUsCLW1ZddszQzjvaAVMhy?= =?us-ascii?Q?XtlEz/WW2Dq1r5lK11XFjcI10Y0nnu7LsJVZkcjPDCHGHUh8mtwYEqttKVcq?= =?us-ascii?Q?AcORjdnc8tsuwcllWSMWlFdTNH6piL4RE2adfAZWrgXamYa16xGwCeyb2YLS?= =?us-ascii?Q?mk0yyasbB6lGkSZyK3+WU2wAmojKFf6VqpUQo2QIm/4pzefkOB+4HKXi8Hd+?= =?us-ascii?Q?vztae06S/Ui0dwADcVczmPyNqJPO6RuxJ1y8QPn8mwLczgWnAVUafBgMbyi2?= =?us-ascii?Q?CH X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: WOKh8+T2EqUHvKTKHsMvIDm22kaY45GdxKSNCBLoT6RUydFQKTRUx40x42PhLE6KRmmNJGNsyc6HrhLNJBTRIpMrqwZyS3X6//tLSbpmdSMoDbqaRJ8IB5qNtvaiAawyyfH56WAb1nzjiIT7wB0AhWlKMibqoLR4GmbLinOFd+CHKEcktqeSrV4WpFMQOGegc84vbr9Q0ZcfLNc83+/jqArWCsFT4M62yTTRIb5VFGu6xtSDZEqEgRdyUq+KIkrRWGdBY6yHN4mV46E0w6Q5E3W5c8f40qDrfIRsrvSUfeE2qeNZCyaYS22cv87yYeRABdmJ0VskIvXD7xJvNwB4mk1kg5Povrs2mH3+0QJ3sDduyLx/CxFr9L3VAqvl+ykSf5Y5zC/h7oHPe/tGh3UGKr/e0nXPCUAEvDGEch+7bqPNiwrdb+ksOVRR2nlQQIKVNn48AvmcWg70y3zS6FYdhjkRI7ZNkJKER7Nnc5Bg7ghsKJ/8ttY0DAv6TsZHJxBRFfYxe8QAOvs8QGP1IFCbOHlTy95Y6TUGah3Q04+Zeu+5BSxMimmhMOuqqF4CRYpYtg87I8QdVUuejDuTXA/tJmmhAq9r/Ulb3hpzrqbpr4S2vkSvTgFejycbCPivOJbf4Az1gHHW6aAXQ8ucjK+pef6RRdyicdhkNXqPKBN6R2diwl1UrEwWxjcwd/3gXcBt9AynEAmc3RtTtP8HFgZ2aESlIbz0eqbYvP645XWMLVBLw6 XBmohE73TOYuRZovqrCayctHPMl2ycQRwliNo/kg== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c786ea39-0d40-42be-2f64-08dba41219eb X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Aug 2023 19:49:45.3754 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: I0kEnKMa6v8nlHdJ+Xf0PUnwYOi6Sgw1LIG8IkaEWKf/nO5EcCEI7j5Ibq0eXB8CQDKB9S4VSFRuDJND5w0zXw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR10MB4392 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-08-23_14,2023-08-22_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 bulkscore=0 mlxscore=0 adultscore=0 phishscore=0 mlxlogscore=532 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2308230180 X-Proofpoint-GUID: YYqEBxXPn-5VGUQev6MPpFl-a5PfauVK X-Proofpoint-ORIG-GUID: YYqEBxXPn-5VGUQev6MPpFl-a5PfauVK Received-SPF: pass client-ip=205.220.177.32; envelope-from=drew.adams@oracle.com; helo=mx0b-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144945 Archived-At: > >> Right, because one can set the letter t to something which > >> would then screw up the idea that t means > >> a truth condition. > > > > (setq t 42) > > > > Debugger entered--Lisp error: (setting-constant t) > > signal(setting-constant (t)) > > (progn (signal 'setting-constant (list 't))) > > (progn (progn (signal 'setting-constant (list 't)))) > > elisp--eval-last-sexp(nil) > > eval-last-sexp(nil) > > funcall-interactively(eval-last-sexp nil) > > command-execute(eval-last-sexp) > > > > And `t' is not a "letter" here; it's a _symbol_ whose name > > is "t". >=20 > Okay, so they don't allow that anymore. Good, I guess. Anymore? It's true at least as far back as Emacs 20: Signaling: (setting-constant t) (setq t 42) eval((setq t 42)) eval-last-sexp((4)) call-interactively(eval-last-sexp) You can't even try to get around it by first unsetting `t': (makunbound 't) Debugger entered--Lisp error: (setting-constant t) makunbound(t) (progn (makunbound 't)) elisp--eval-last-sexp((4)) eval-last-sexp((4)) funcall-interactively(eval-last-sexp (4)) command-execute(eval-last-sexp) > Or maybe I did it in another way than using `setq', I say this > because I remember it very well that suddenly nothing worked. `M-x report-emacs-bug'