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

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

bug#15998: 24.3; forward-sexp (scan-sexps) doesn't do well with some SEX


From: Noam Postavsky
Subject: bug#15998: 24.3; forward-sexp (scan-sexps) doesn't do well with some SEXPs
Date: Sun, 07 Jul 2019 09:47:04 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>> No, but I think syntax-propertize can take care of those things.
>> The patch below seems to work, no new sexp movement commands needed?
>
> It should work indeed, tho I'm not sure it'll fix the original problem,
> because I don't know *where* the original problem happened and this
> patch only fixes the case where we do such navigation in
> emacs-lisp-mode, but things #s(...) and #&"..." are *very* rare in
> those buffers.

I tend to end up with those things in my *scratch* buffer, after
evaluating various expressions (more so the #s(...) than #&"...", I
don't have much call for messing with bool vectors).  Michael bumped
into an instance of ## in org-list.el (see merged Bug#30132), although
that seems like a mistake in org.

> So I'm not completely sure the cost imposed by this patch is worth
> the benefit.

On the benefit side, it would allow removing the hack I put in for
indentation of #s(...) (that was for IELM, see Bug#31984).  On the other
hand, this seems to be breaking some edebug tests, so that needs more
investigation before it could be installed.






reply via email to

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