bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#71367: 30.0.50; ELPA package breadcrumb causes Emacs freeze when edi


From: Eli Zaretskii
Subject: bug#71367: 30.0.50; ELPA package breadcrumb causes Emacs freeze when editing json file
Date: Thu, 06 Jun 2024 15:08:15 +0300

> From: João Távora <joaotavora@gmail.com>
> Date: Thu, 6 Jun 2024 12:47:13 +0100
> Cc: acorallo@gnu.org, tsdh@gnu.org, 71367@debbugs.gnu.org, theo@thornhill.no
> 
> On Thu, Jun 6, 2024 at 12:33 PM Eli Zaretskii <eliz@gnu.org> wrote:
> 
> > I'd say allocate some initial space with make-vector, and then enlarge
> > using vconcat or something?
> 
> That amounts to implementing VECTOR-PUSH/VECTOR-PUSH-EXTEND
> for a new "dynamic vector" data type, very common in other languages.
> Doesn't belong in breadcrumb at all, in fact doesn't even belong in
> Elisp IMO, but
> I don't  mind if someone contributes it there (after confirming
> this is the culprit, of course).  Could even be some other package already
> has it.

I don't see why using make-vector and vconcat, two existing
primitives, would qualify as implementing something more general than
what is needed here.  But if we want this functionality as a
primitive, we could perhaps expose larger_vector to Lisp.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]