all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#70039: 30.0.50; list-packages install: Invalid read syntax: "#"
@ 2024-03-27 21:10 Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-03-28 19:34 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-03-27 21:10 UTC (permalink / raw)
  To: 70039; +Cc: Stefan Monnier

[-- Attachment #1: Type: text/plain, Size: 525 bytes --]


Hello,

got this new error today when trying to install a package with M-x
list-packages.

When I revert this commit:

  7e32e8392ab "Fix recent test regressions"
  (Stefan Monnier <monnier@iro.umontreal.ca> 2024-03-22)

the problem disappears.  This commit causes a destruction of my custom
file when it gets pp-filled, by adding newlines into #N# syntaxes, like
#1# => #1\n#.

Attached is a test file.  If you (pp-fill (point-min) (point-max))
you will see this effect happen near the end of that file.


TIA,

Michael.



[-- Attachment #2: pp-fill-test.el --]
[-- Type: application/emacs-lisp, Size: 4394 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#70039: 30.0.50; list-packages install: Invalid read syntax: "#"
  2024-03-27 21:10 bug#70039: 30.0.50; list-packages install: Invalid read syntax: "#" Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-03-28 19:34 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-03-29 11:51   ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-03-28 19:34 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: 70039

> got this new error today when trying to install a package with M-x
> list-packages.
>
> When I revert this commit:
>
>   7e32e8392ab "Fix recent test regressions"
>   (Stefan Monnier <monnier@iro.umontreal.ca> 2024-03-22)
>
> the problem disappears.  This commit causes a destruction of my custom
> file when it gets pp-filled, by adding newlines into #N# syntaxes, like
> #1# => #1\n#.

I pushed a patch to `master` which should fix this problem, but ... this
is nasty.  I was thinking "how quickly one forgets how hard it is to
parse backward" (thinking back to the time where I worked on
`comment-backward`), but while testing I came across a similar problem
that occurs because of the (forward) `scan-sexps` behavior, so it's even
worse than that.


        Stefan






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#70039: 30.0.50; list-packages install: Invalid read syntax: "#"
  2024-03-28 19:34 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-03-29 11:51   ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-03-29 11:51 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 70039

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

> > the problem disappears.  This commit causes a destruction of my custom
> > file when it gets pp-filled, by adding newlines into #N# syntaxes, like
> > #1# => #1\n#.
>
> I pushed a patch to `master` which should fix this problem

Works for me, thanks.

> , but ... this is nasty.  I was thinking "how quickly one forgets how
> hard it is to parse backward" (thinking back to the time where I
> worked on `comment-backward`), but while testing I came across a
> similar problem that occurs because of the (forward) `scan-sexps`
> behavior, so it's even worse than that.

We call this a "wasps' nest" in Germany (of course using German words),
and I make this experience often.

Anyway, if you come along fixing Bug#24542, that would be - it would be
one more wasp less...


Michael.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-03-29 11:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-27 21:10 bug#70039: 30.0.50; list-packages install: Invalid read syntax: "#" Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-28 19:34 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-29 11:51   ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.