From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59710: Wrong type argument when editing a multisession variable Date: Fri, 02 Dec 2022 17:06:17 +0200 Message-ID: <835yetg80m.fsf@gnu.org> References: <83mt86eyyx.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11821"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59710@debbugs.gnu.org To: Juanma Barranquero , Stefan Monnier , Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 02 16:07:48 2022 Return-path: Envelope-to: geb-bug-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 1p17dk-0002r9-68 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Dec 2022 16:07:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p17dP-0008WU-3r; Fri, 02 Dec 2022 10:07:37 -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 1p17d1-0008Ry-AK for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 10:07:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p17d1-0004QJ-1g for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 10:07:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p17d0-0006Rt-Tl for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 10:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Dec 2022 15:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59710 X-GNU-PR-Package: emacs Original-Received: via spool by 59710-submit@debbugs.gnu.org id=B59710.166999361624776 (code B ref 59710); Fri, 02 Dec 2022 15:07:02 +0000 Original-Received: (at 59710) by debbugs.gnu.org; 2 Dec 2022 15:06:56 +0000 Original-Received: from localhost ([127.0.0.1]:47238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p17cu-0006RY-8w for submit@debbugs.gnu.org; Fri, 02 Dec 2022 10:06:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p17cl-0006RC-Nk for 59710@debbugs.gnu.org; Fri, 02 Dec 2022 10:06:54 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p17cf-0004IP-J9; Fri, 02 Dec 2022 10:06:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=tT6SJLWcDhVtKeA0TvuTckKh6MvjnKoBucPhilxhJH4=; b=P/U2RME/cVsH YphzBQrzQDYLyXirlPCyYkSHGrbIzIwAn6O/ONgOBE0scRmFQJwD7bLyJTeTu6a3uixn6XfkBFmda t6C8Ir4e1QWaoeJB2PQ9Vnl6jlpSHPK5/qhvUirBjJfdvnuhnZLYxLCUTVl9yVkkK0R9PDRFcPs1/ uYaf4CspCIxyEZW0dvc4Sre8oPMHawEc2Oxay2MkuIK9jWl8Ow7T5IfunUIqLpDFaAPCj4A7ikYrG mIMQNNaSf7KTLjH6V+aiNSpvwls5JfRDVDrSqiF0FesSMe6IIWiiIkFrtHr3uPrU4V5GS7YczKepR 4DkJ/sXDUZfIjLAXPw5jfg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p17ce-0005uM-L9; Fri, 02 Dec 2022 10:06:40 -0500 In-Reply-To: (message from Juanma Barranquero on Fri, 2 Dec 2022 14:30:52 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:249759 Archived-At: > From: Juanma Barranquero > Date: Fri, 2 Dec 2022 14:30:52 +0100 > Cc: larsi@gnus.org, 59710-done@debbugs.gnu.org > > BTW, I wonder if it would make sense to make bound-and-true-p to check that it gets a symbol: > > diff --git i/lisp/bindings.el w/lisp/bindings.el > index c1ad5f7520..6ee730af58 100644 > --- i/lisp/bindings.el > +++ w/lisp/bindings.el > @@ -671,4 +671,6 @@ bound-and-true-p > Note that if `lexical-binding' is in effect, this function isn't > meaningful if it refers to a lexically bound variable." > + (unless (symbolp var) > + (error "Wrong type argument: symbolp, %S" var)) > `(and (boundp (quote ,var)) ,var)) I have no opinion on that. Lars, Stefan: WDYT?