GNU bug report logs - #38872
27.0.50; Keywords can be let-bound

Previous Next

Package: emacs;

Reported by: Thibault Polge <thibault <at> thb.lt>

Date: Thu, 2 Jan 2020 17:16:01 UTC

Severity: normal

Tags: fixed

Found in version 27.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: thibault <at> thb.lt, stefan <at> marxist.se, 38872 <at> debbugs.gnu.org
Subject: Re: bug#38872: 27.0.50; Keywords can be let-bound
Date: Fri, 17 Jan 2020 09:47:30 +0200
> From: Andreas Schwab <schwab <at> linux-m68k.org>
> Date: Thu, 16 Jan 2020 21:06:27 +0100
> Cc: Thibault Polge <thibault <at> thb.lt>, 38872 <at> debbugs.gnu.org
> 
> On Jan 16 2020, Stefan Kangas wrote:
> 
> > diff --git a/src/eval.c b/src/eval.c
> > index 4559a0e1f6..9a3f703f40 100644
> > --- a/src/eval.c
> > +++ b/src/eval.c
> > @@ -972,8 +972,11 @@ DEFUN ("let", Flet, Slet, 1, UNEVALLED, 0,
> >        if (!NILP (lexenv) && SYMBOLP (var)
> >  	  && !XSYMBOL (var)->u.s.declared_special
> >  	  && NILP (Fmemq (var, Vinternal_interpreter_environment)))
> > -	/* Lexically bind VAR by adding it to the lexenv alist.  */
> > -	lexenv = Fcons (Fcons (var, tem), lexenv);
> > +	if (XSYMBOL (var)->u.s.trapped_write == SYMBOL_NOWRITE)
> 
> I think that should use the same condition as set_internal, so that (let
> ((:k :k))) still works.

Adding Stefan Monnier to the discussion.  Stefan, any comments on this
issue?

Thanks.




This bug report was last modified 4 years and 239 days ago.

Previous Next


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