From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Barbier Newsgroups: gmane.emacs.devel Subject: Re: edebug-spec of setf: why is the getter evaluated on set? Date: Sat, 22 Jan 2022 23:59:58 +0100 Message-ID: <61ec8844.1c69fb81.36c75.8497@mx.google.com> References: <61ebe1d2.1c69fb81.8e10c.e9d3@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14968"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 22 23:43:08 2022 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 1nBP6A-0003iG-Qv for ged-emacs-devel@m.gmane-mx.org; Sat, 22 Jan 2022 23:43:06 +0100 Original-Received: from localhost ([::1]:54256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBP69-0005Bo-Ia for ged-emacs-devel@m.gmane-mx.org; Sat, 22 Jan 2022 17:43:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBP5M-0004VZ-Kx for emacs-devel@gnu.org; Sat, 22 Jan 2022 17:42:16 -0500 Original-Received: from [2a00:1450:4864:20::332] (port=51189 helo=mail-wm1-x332.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBP5L-0005Jg-3w for emacs-devel@gnu.org; Sat, 22 Jan 2022 17:42:16 -0500 Original-Received: by mail-wm1-x332.google.com with SMTP id i8so63797wma.0 for ; Sat, 22 Jan 2022 14:42:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:from:to:cc:subject:in-reply-to:references:date :mime-version; bh=re+JKcb/ZWzeWDzuof/OExaZcaUtpOaQzcAYe66Vz14=; b=Ix9hk1v3hZkIPcx0x5CZirUFpfoJ8iADVioSnZv9BR2TEZXXZ7lyUhjjpVLPBk9rRV dWFqPujfCSIgVWUPAQ9NTz1sbRTzD9Mqxvyv7NCXoim8qeOFigFWWbF/1cTy5iE7uzLJ VG5cNRLFiqrVxEHtT4FUBhuu9W0Ag4/PXYvMQAZ5cCKmImcqDmhz0RSC2Ax6OuMdYpU4 Lr0K/V9njpl+jbD83K2w7/gyX6kjyXX6pdd2fTDARX/Buy5AuevdIJX0g8h3veCOlnYu bSja4OH+UVKOCTsEcukJnkMuqRivGGzgvKo69p0whF1iCLYKSRB+iqa/h0VP+D7xhflT Zebg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:from:to:cc:subject:in-reply-to :references:date:mime-version; bh=re+JKcb/ZWzeWDzuof/OExaZcaUtpOaQzcAYe66Vz14=; b=E4idqR0pzY2aej1O+TlMX240WQIjD1eDfkv9WW847aVKH7YyDR1Hzrnb60zmDRzL/Q D4lMes5tISnoSjwYsUJ49s/OQcEhPioYBdVc9ejK02AH9BxPWe+mp3qAbFkGSU1gB456 pShtZ5YF2s4nnMK85m71WAnCqYY+heR7nxPpjKsPPBd0b+PGMitr4TgofvYmPkywtAyp gu3gKhuWYfaW/zB0ifcYNTn5BGg+EUtXcyrgSj92d27jXNBQgyHpQ6Es98e3/BHpYOGi WP5bYLITXymJZoigMsAOtfYpp/22QGwndTMecUAuM3TSZNgsUDAM2mITahirdXKHrVOK QoVA== X-Gm-Message-State: AOAM531htbBEMz3rRpl5gTsL5/WT4xlP21pC1sy7yd6dCqvF8qsaAm8b 74jUTBXPKOCrgcY04kQ0GXw= X-Google-Smtp-Source: ABdhPJxXg8nm5qkFkTeGpqBbzYUroOI5wOSQE891WooyArkWSl4CHwCtyJnDomM4PsR9Ij/afl0Efg== X-Received: by 2002:a05:600c:510b:: with SMTP id o11mr327539wms.145.1642891333247; Sat, 22 Jan 2022 14:42:13 -0800 (PST) Original-Received: from tosh-laptop ([2a01:e0a:505:3460:1a16:a0c4:3f89:c0d9]) by smtp.gmail.com with ESMTPSA id n10sm11438827wrf.96.2022.01.22.14.42.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jan 2022 14:42:12 -0800 (PST) Original-Received: by tosh-laptop (sSMTP sendmail emulation); Sat, 22 Jan 2022 23:59:58 +0100 In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::332 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=brubar.cs@gmail.com; helo=mail-wm1-x332.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, MSGID_FROM_MTA_HEADER=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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" Xref: news.gmane.io gmane.emacs.devel:285233 Archived-At: Hi Stefan, Stefan Monnier writes: >> Evaluating that expression with edebug raises the error: >> >> Symbol's value as variable is void: my:undefined >> >> Evaluating that same expression outside of edebug, just sets the >> variable, as expected. > > Please report this as a bug. You've already fixed it a while ago ... :-) It seems it is bug 46573. And, it's not in emacs 27 (my mistake). Sorry for the noise. Bruno >> >> In other words, the debug spec of 'setf' currently is: >> >> (&rest [gv-place form]) >> >> shouldn't it be something like: >> >> (&rest [sexp form]) >> >> or is it a bug in how 'gv-place' is handled ? > > We'll see, > > > Stefan