GNU bug report logs - #64391
30.0.50; buffer narrowing slowdown regression in emacs 29

Previous Next

Packages: gnus, emacs;

Reported by: Andrew Cohen <acohen <at> ust.hk>

Date: Sat, 1 Jul 2023 00:21:02 UTC

Severity: normal

Found in version 30.0.50

Full log


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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Gregory Heytings <gregory <at> heytings.org>
Cc: acohen <at> ust.hk, 64391 <at> debbugs.gnu.org, eliz <at> gnu.org,
 mattias.engdegard <at> gmail.com, bugs <at> gnus.org
Subject: Re: bug#64391: buffer narrowing slowdown regression in emacs 29
Date: Sun, 09 Jul 2023 15:42:04 -0400
> Whoops, indeed.  (symbolp (eval (cadr rest))) would work,

No, it wouldn't work: we can't (in general) decide at macroexpansion
time whether the expression will return a symbol at runtime.

> but somehow I think it's not TRT and there's a more idiomatic way to
> do that.

Yes: don't do it, or do it via a runtime check rather than
a compile-time check.  But here I don't see any benefit to imposing that
LABEL evaluates to a symbol.


        Stefan





This bug report was last modified 1 year and 342 days ago.

Previous Next


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