GNU bug report logs - #59710
Wrong type argument when editing a multisession variable

Previous Next

Package: emacs;

Reported by: Juanma Barranquero <lekktu <at> gmail.com>

Date: Wed, 30 Nov 2022 01:51:02 UTC

Severity: normal

Found in version 29.0.60

Done: Juanma Barranquero <lekktu <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 59710 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Juanma Barranquero <lekktu <at> gmail.com>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>,
 Lars Ingebrigtsen <larsi <at> gnus.org> 
Cc: 59710 <at> debbugs.gnu.org
Subject: Re: bug#59710: Wrong type argument when editing a multisession
 variable
Date: Fri, 02 Dec 2022 17:06:17 +0200
> From: Juanma Barranquero <lekktu <at> gmail.com>
> Date: Fri, 2 Dec 2022 14:30:52 +0100
> Cc: larsi <at> gnus.org, 59710-done <at> 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?




This bug report was last modified 2 years and 228 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.