From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.devel Subject: Re: Test your ELisp knowledge Date: Fri, 09 Feb 2024 13:10:14 +0100 Message-ID: <86r0hl6dea.fsf@p200300d627023a52b3232b89dd6e9cc5.dip0.t-ipconnect.de> References: <87bk8p6haz.fsf@ledu-giraud.fr> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11986"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.7; emacs 29.2 Cc: emacs-devel@gnu.org To: tomas@tuxteam.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 09 13:18:05 2024 Return-path: Envelope-to: ged-emacs-devel@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 1rYPpT-0002l5-AQ for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Feb 2024 13:18:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYPoU-0002gn-3C; Fri, 09 Feb 2024 07:17:02 -0500 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 1rYPoS-0002gP-5N for emacs-devel@gnu.org; Fri, 09 Feb 2024 07:17:00 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rYPoM-0006nP-8n for emacs-devel@gnu.org; Fri, 09 Feb 2024 07:16:59 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 60A405C0179; Fri, 9 Feb 2024 07:16:51 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 09 Feb 2024 07:16:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1707481011; x=1707567411; bh=rvaESP4qFc YihmUMj++j9UW/E+kpKppaDt8PnO7696c=; b=dNF1jmoc809lH4sSA8EJbqwq+T aEFl2u3Ud/ThEVg0sOWd0juw271waAfaNvR0rdBzUo59IHnK0Xbpcjpb5QX7uozn I8OqAcni+vhzn9Ngf+3QpknfLsVWJuLAgUgZaHYJmlYMMp9bw4P4HBTdH/S1i/ug t7i846cekL5YyBm58/gEoeN4QWvnlzSQJAWacqtTFWAf8wApIK1nrxgdda4QDk3p N04YxDQ+ysKwrIsy5TPJiMNGpcDbSu8lsBhgkCgA6QOALPUxCWXhw4aAV8ABK1z+ 8KRyym8XRmSWQmR93heHOGtjNq228xton6h0+Y5k3mSNIkPV2674u+5f8aiw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1707481011; x=1707567411; bh=rvaESP4qFcYihmUMj++j9UW/E+kp KppaDt8PnO7696c=; b=a/AHY9biu4NrOgdJVX1rIlX5FIWfl6Klr28rBLJJ/Ue1 t3BrCFHZbAsZH5yAWzlYWfsxKT2UKdHfJTvny016QnPgBmrt58bHvORjR723+4Ck jp8jVmbiTnmtFc58RKwMHZSh8/lsdQoRqv1ppYXTLoQmWRJgd4GB3gbkcEsWg+tG FPru2uON/dKXQSfrNzFseKtGLV83aky/DOhf4RyqEDPgm7VWDVmHJFaM1bDGnBzp 3ezqg7YwD3XWQJwpBpFJOEdK9oNnR2h2P/MO53gjN6P9KOqLYt23BOQFsvyClXN0 HCdu8NOevk4KKL9/OtujJCopRAa1MxpOnqcHW8PWQg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrtdeigdefjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvvefuffgjkfggtgesthdtre dttdertdenucfhrhhomheplfhoohhsthcumfhrvghmvghrshcuoehjohhoshhtkhhrvghm vghrshesfhgrshhtmhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhepgfeihfdutdetle ejheevkeejtdffueehfffhffefteeiteefhedtkedtiedtkeffnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhoohhsthhkrhgvmhgvrhhsse hfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 9 Feb 2024 07:16:49 -0500 (EST) In-reply-to: Received-SPF: pass client-ip=66.111.4.25; envelope-from=joostkremers@fastmail.fm; helo=out1-smtp.messagingengine.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:316067 Archived-At: On Fri, Feb 09 2024, tomas@tuxteam.de wrote: > [[PGP Signed Part:Undecided]] > On Fri, Feb 09, 2024 at 11:52:20AM +0100, Manuel Giraud via Emacs development > discussions. wrote: >> Stefan Monnier writes: >> >> > OK, >> > >> > Here's a test for you: without trying to run it, guess what error will >> > be signaled when you do: >> > >> > M-: (their-fun (/ my-x 0)) RET >> >> I'd say: my-x not defined. > > I'd side with Yuri Khan and Po Lu: what if `their-fun' was a macro call, > after all? I initially thought, "well duh, their-fun is not defined", but then I figured, if Stefan Monnier is asking, it's probably not so obvious, so I went with the division-by-zero instead... Which only goes to show that I never thought about the function vs. macro thingie... :D -- Joost Kremers Life has its moments