unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#39663: 27.1; ebnf2ps bugs
@ 2020-02-18 14:11 Mattias Engdegård
  2020-02-18 16:35 ` Stefan Monnier
  2021-08-30  1:15 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 26+ messages in thread
From: Mattias Engdegård @ 2020-02-18 14:11 UTC (permalink / raw)
  To: 39663; +Cc: Vinicius Jose Latorre, Stefan Monnier

A few bugs and other things noticed in ebnf2ps:

* The code resides in lisp/progmodes but isn't actually a mode at all: it converts BNF into railway diagrams in Postscript. It looks a bit out of place. What about moving it to ELPA?

* Prose values in ABNF don't seem to work. Guilty line:

	    (or (looking-at ebnf-abn-non-terminal-letter-chars)

where 'ebnf-abn-non-terminal-letter-chars' is not a regexp but a skip-set used in skip-chars-{forward,backward}. This was found by a relint scan.

* Despite a lot of effort been spent on making it work with Latin-1, I get UTF-8 mojibake in the PostScript output when using chars in the U+00A0..U+00FF range in the rules, eg in nonterminals. Unibyte/multibyte confusion, perhaps?

* The 'ebnf-range-regexp' function is misnamed -- it doesn't return a regexp -- and triggers relint's bad-regexp-o-meter. Moreover, it is only there to compensate for a bug in Emacs 20, long ago fixed. Calls to the function could be replaced by string literals.






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

* bug#39663: 27.1; ebnf2ps bugs
  2020-02-18 14:11 bug#39663: 27.1; ebnf2ps bugs Mattias Engdegård
@ 2020-02-18 16:35 ` Stefan Monnier
  2020-02-20 15:11   ` Mattias Engdegård
  2021-08-30  1:15 ` Lars Ingebrigtsen
  1 sibling, 1 reply; 26+ messages in thread
From: Stefan Monnier @ 2020-02-18 16:35 UTC (permalink / raw)
  To: Mattias Engdegård; +Cc: 39663, Vinicius Jose Latorre

> * The code resides in lisp/progmodes but isn't actually a mode at all: it
> converts BNF into railway diagrams in Postscript. It looks a bit out of place.

Agreed, tho it's harmless.

> What about moving it to ELPA?

No opinion about that,


        Stefan






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

* bug#39663: 27.1; ebnf2ps bugs
  2020-02-18 16:35 ` Stefan Monnier
@ 2020-02-20 15:11   ` Mattias Engdegård
  2020-02-24 16:31     ` Stefan Monnier
  0 siblings, 1 reply; 26+ messages in thread
From: Mattias Engdegård @ 2020-02-20 15:11 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 39663, Vinicius Jose Latorre

A refactoring that removes ebnf-range-regexp has now been pushed to master. The bugs (Latin-1 mojibake, ABNF prose values) remain. Maybe Vinicius would have a look?






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

* bug#39663: 27.1; ebnf2ps bugs
  2020-02-20 15:11   ` Mattias Engdegård
@ 2020-02-24 16:31     ` Stefan Monnier
  2020-02-24 16:53       ` Mattias Engdegård
  0 siblings, 1 reply; 26+ messages in thread
From: Stefan Monnier @ 2020-02-24 16:31 UTC (permalink / raw)
  To: Mattias Engdegård; +Cc: 39663, Vinicius Jose Latorre

> A refactoring that removes ebnf-range-regexp has now been pushed to
> master.  The bugs (Latin-1 mojibake, ABNF prose values) remain.  Maybe
> Vinicius would have a look?

Not sure if Vinicius is still paying attention.
I can probably help with the mojibake (I suspect it's a result
of the code being written for Emacs<23), but I'd need a recipe to
reproduce the problem.


        Stefan






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

* bug#39663: 27.1; ebnf2ps bugs
  2020-02-24 16:31     ` Stefan Monnier
@ 2020-02-24 16:53       ` Mattias Engdegård
  0 siblings, 0 replies; 26+ messages in thread
From: Mattias Engdegård @ 2020-02-24 16:53 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 39663, Vinicius Jose Latorre

24 feb. 2020 kl. 17.31 skrev Stefan Monnier <monnier@iro.umontreal.ca>:

> Not sure if Vinicius is still paying attention.
> I can probably help with the mojibake (I suspect it's a result
> of the code being written for Emacs<23), but I'd need a recipe to
> reproduce the problem.

Thanks -- I'm not sure it's worth the effort, but thought it was worth reporting since the author obviously went to some trouble to make Latin-1 work, and that it in fact does not.

Write this line in a buffer:

naïve = façade.

and then run (ebnf-print-buffer "out.ps"). Look at the generated file.

'ebnf-eps-string' looks like an attempt to do it right, but it's not used for productions, only page headers and footer comments. Other strings just end up in... ps-output-string-prim?

'ps-print-buffer' does seem to work, at least up to U+00FF. Anything beyond that becomes '?'.






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

* bug#39663: 27.1; ebnf2ps bugs
  2020-02-18 14:11 bug#39663: 27.1; ebnf2ps bugs Mattias Engdegård
  2020-02-18 16:35 ` Stefan Monnier
@ 2021-08-30  1:15 ` Lars Ingebrigtsen
  2021-08-30 11:39   ` Mattias Engdegård
  2021-08-30 12:53   ` Eli Zaretskii
  1 sibling, 2 replies; 26+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-30  1:15 UTC (permalink / raw)
  To: Mattias Engdegård; +Cc: 39663, Vinicius Jose Latorre, Stefan Monnier

Mattias Engdegård <mattiase@acm.org> writes:

> * Prose values in ABNF don't seem to work. Guilty line:
>
> 	    (or (looking-at ebnf-abn-non-terminal-letter-chars)
>
> where 'ebnf-abn-non-terminal-letter-chars' is not a regexp but a
> skip-set used in skip-chars-{forward,backward}. This was found by a
> relint scan.

Do you have a test case for this?

> * Despite a lot of effort been spent on making it work with Latin-1, I
> get UTF-8 mojibake in the PostScript output when using chars in the
> U+00A0..U+00FF range in the rules, eg in
> nonterminals. Unibyte/multibyte confusion, perhaps?

This now works for the non-ASCII test case.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#39663: 27.1; ebnf2ps bugs
  2021-08-30  1:15 ` Lars Ingebrigtsen
@ 2021-08-30 11:39   ` Mattias Engdegård
  2021-08-31  1:11     ` Lars Ingebrigtsen
  2021-08-31  1:17     ` Lars Ingebrigtsen
  2021-08-30 12:53   ` Eli Zaretskii
  1 sibling, 2 replies; 26+ messages in thread
From: Mattias Engdegård @ 2021-08-30 11:39 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 39663, Vinicius Jose Latorre, Stefan Monnier

30 aug. 2021 kl. 03.15 skrev Lars Ingebrigtsen <larsi@gnus.org>:

> Do you have a test case for this?

Write this line in a buffer:

nisse = <totte>

and then run

 (let ((ebnf-syntax 'abnf)) (ebnf-print-buffer "out.ps"))

The result is a syntax error. (It works without the <>.)

> This now works for the non-ASCII test case.

Thank you! Doesn't seem to work with ABNF though (set `ebnf-syntax` to `abnf`, and remove the full stop).

Although it could still be useful, the ebnf2ps package does show its age in many respects: non-Unicode, output in EPS rather than PDF or SVG, no interactive preview, etc. It's also misplaced (in 'progmodes' despite not being a programming mode) and, in effect, abandoned. Does it really belong in Emacs core?

(And does anyone use railway diagrams these days?)






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

* bug#39663: 27.1; ebnf2ps bugs
  2021-08-30  1:15 ` Lars Ingebrigtsen
  2021-08-30 11:39   ` Mattias Engdegård
@ 2021-08-30 12:53   ` Eli Zaretskii
  2021-08-31  1:19     ` Lars Ingebrigtsen
  1 sibling, 1 reply; 26+ messages in thread
From: Eli Zaretskii @ 2021-08-30 12:53 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 39663, mattiase, viniciusjl.gnu, monnier

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Mon, 30 Aug 2021 03:15:00 +0200
> Cc: 39663@debbugs.gnu.org, Vinicius Jose Latorre <viniciusjl.gnu@gmail.com>,
>  Stefan Monnier <monnier@iro.umontreal.ca>
> 
> Mattias Engdegård <mattiase@acm.org> writes:
> 
> > * Despite a lot of effort been spent on making it work with Latin-1, I
> > get UTF-8 mojibake in the PostScript output when using chars in the
> > U+00A0..U+00FF range in the rules, eg in
> > nonterminals. Unibyte/multibyte confusion, perhaps?
> 
> This now works for the non-ASCII test case.

Can you explain the change you installed?  I don't understand why you
need to decode the input -- isn't that text from an Emacs Lisp string
or from a buffer?





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

* bug#39663: 27.1; ebnf2ps bugs
  2021-08-30 11:39   ` Mattias Engdegård
@ 2021-08-31  1:11     ` Lars Ingebrigtsen
  2021-08-31  2:21       ` bug#39663: [External] : " Drew Adams
  2021-08-31  1:17     ` Lars Ingebrigtsen
  1 sibling, 1 reply; 26+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-31  1:11 UTC (permalink / raw)
  To: Mattias Engdegård; +Cc: 39663, Vinicius Jose Latorre, Stefan Monnier

Mattias Engdegård <mattiase@acm.org> writes:

> Thank you! Doesn't seem to work with ABNF though (set `ebnf-syntax` to
> `abnf`, and remove the full stop).

I tried

naïve = façade

(setq ebnf-syntax 'abnf)
(ebnf-print-buffer "/tmp/out.ps")

and it seemed to work?

(Is it apparent that I've never even heard of this package before?  :-))

> Although it could still be useful, the ebnf2ps package does show its
> age in many respects: non-Unicode, output in EPS rather than PDF or
> SVG, no interactive preview, etc. It's also misplaced (in 'progmodes'
> despite not being a programming mode) and, in effect, abandoned. Does
> it really belong in Emacs core?
>
> (And does anyone use railway diagrams these days?)

Yeah, it does seem a bit long in the tooth...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#39663: 27.1; ebnf2ps bugs
  2021-08-30 11:39   ` Mattias Engdegård
  2021-08-31  1:11     ` Lars Ingebrigtsen
@ 2021-08-31  1:17     ` Lars Ingebrigtsen
  1 sibling, 0 replies; 26+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-31  1:17 UTC (permalink / raw)
  To: Mattias Engdegård; +Cc: 39663, Vinicius Jose Latorre, Stefan Monnier

Mattias Engdegård <mattiase@acm.org> writes:

>> Do you have a test case for this?
>
> Write this line in a buffer:
>
> nisse = <totte>
>
> and then run
>
>  (let ((ebnf-syntax 'abnf)) (ebnf-print-buffer "out.ps"))
>
> The result is a syntax error. (It works without the <>.)

Thanks; this now works in Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#39663: 27.1; ebnf2ps bugs
  2021-08-30 12:53   ` Eli Zaretskii
@ 2021-08-31  1:19     ` Lars Ingebrigtsen
  2021-08-31 12:33       ` Eli Zaretskii
  0 siblings, 1 reply; 26+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-31  1:19 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 39663, mattiase, viniciusjl.gnu, monnier

Eli Zaretskii <eliz@gnu.org> writes:

> Can you explain the change you installed?  I don't understand why you
> need to decode the input -- isn't that text from an Emacs Lisp string
> or from a buffer?

The decoding is unnecessary -- but it gives marginally less wrong
results if you have raw bytes in the buffer, I think?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#39663: [External] : bug#39663: 27.1; ebnf2ps bugs
  2021-08-31  1:11     ` Lars Ingebrigtsen
@ 2021-08-31  2:21       ` Drew Adams
  2021-08-31  3:28         ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 26+ messages in thread
From: Drew Adams @ 2021-08-31  2:21 UTC (permalink / raw)
  To: Lars Ingebrigtsen, Mattias Engdegård
  Cc: 39663@debbugs.gnu.org, Vinicius Jose Latorre, Stefan Monnier

> > Although it could still be useful, the ebnf2ps package does show its
> > age in many respects: non-Unicode, output in EPS rather than PDF or
> > SVG, no interactive preview, etc. It's also misplaced (in 'progmodes'
> > despite not being a programming mode) and, in effect, abandoned. Does
> > it really belong in Emacs core?
> >
> > (And does anyone use railway diagrams these days?)

Yes, docs still use railroad diagrams.
And BNF (lots of flavors).

And EPS figures are still used in
technical doc production (of PDFs).

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

* bug#39663: [External] : bug#39663: 27.1; ebnf2ps bugs
  2021-08-31  2:21       ` bug#39663: [External] : " Drew Adams
@ 2021-08-31  3:28         ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-08-31  9:14           ` Mattias Engdegård
  2021-08-31 15:59           ` Drew Adams
  0 siblings, 2 replies; 26+ messages in thread
From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-08-31  3:28 UTC (permalink / raw)
  To: Drew Adams
  Cc: 39663@debbugs.gnu.org, Mattias Engdegård, Lars Ingebrigtsen,
	Vinicius Jose Latorre

>> > (And does anyone use railway diagrams these days?)
> Yes, docs still use railroad diagrams.

I'd be surprised if anything else ever used railroad diagrams, so this
is not very helpful.  Which kinds of "docs" would use railroad diagrams?

> And BNF (lots of flavors).

That, yes.

> And EPS figures are still used in
> technical doc production (of PDFs).

Embedded PDF seems to have completely replaced it around here.


        Stefan






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

* bug#39663: [External] : bug#39663: 27.1; ebnf2ps bugs
  2021-08-31  3:28         ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-08-31  9:14           ` Mattias Engdegård
  2021-08-31 13:08             ` Eli Zaretskii
                               ` (2 more replies)
  2021-08-31 15:59           ` Drew Adams
  1 sibling, 3 replies; 26+ messages in thread
From: Mattias Engdegård @ 2021-08-31  9:14 UTC (permalink / raw)
  To: Stefan Monnier
  Cc: 39663@debbugs.gnu.org, Lars Ingebrigtsen, Vinicius Jose Latorre

31 aug. 2021 kl. 05.28 skrev Stefan Monnier <monnier@iro.umontreal.ca>:

> Embedded PDF seems to have completely replaced it around here.

Yes, with SVG seen now and then. EPS are occasionally spotted in LaTeX document builds but there is at least one native *TeX package for railway diagrams for those who really want them.

I hereby propose that ebnf2ps be moved to GNU ELPA. This is not a change of status or maintainership, just packaging. It is also not a comment on the quality of the package: it now seems to work as originally intended. ELPA didn't exist in the current form when ebnf2ps was originally added to Emacs.

Would such a move be acceptable?






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

* bug#39663: 27.1; ebnf2ps bugs
  2021-08-31  1:19     ` Lars Ingebrigtsen
@ 2021-08-31 12:33       ` Eli Zaretskii
  2021-09-01  8:05         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 26+ messages in thread
From: Eli Zaretskii @ 2021-08-31 12:33 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 39663, mattiase, viniciusjl.gnu, monnier

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: mattiase@acm.org,  39663@debbugs.gnu.org,  viniciusjl.gnu@gmail.com,
>   monnier@iro.umontreal.ca
> Date: Tue, 31 Aug 2021 03:19:09 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Can you explain the change you installed?  I don't understand why you
> > need to decode the input -- isn't that text from an Emacs Lisp string
> > or from a buffer?
> 
> The decoding is unnecessary -- but it gives marginally less wrong
> results if you have raw bytes in the buffer, I think?

The raw bytes in the buffer, if they are present, are already in their
"decoded" multibyte form.  So I don't think I see how the decoding
could help there.  Do you have an example?





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

* bug#39663: [External] : bug#39663: 27.1; ebnf2ps bugs
  2021-08-31  9:14           ` Mattias Engdegård
@ 2021-08-31 13:08             ` Eli Zaretskii
  2021-08-31 16:13             ` Drew Adams
  2021-09-01  7:53             ` Lars Ingebrigtsen
  2 siblings, 0 replies; 26+ messages in thread
From: Eli Zaretskii @ 2021-08-31 13:08 UTC (permalink / raw)
  To: Mattias Engdegård; +Cc: 39663, larsi, viniciusjl.gnu, monnier

> From: Mattias Engdegård <mattiase@acm.org>
> Date: Tue, 31 Aug 2021 11:14:24 +0200
> Cc: Drew Adams <drew.adams@oracle.com>, Lars Ingebrigtsen <larsi@gnus.org>,
>         Eli Zaretskii <eliz@gnu.org>,
>         "39663@debbugs.gnu.org" <39663@debbugs.gnu.org>,
>         Vinicius Jose Latorre <viniciusjl.gnu@gmail.com>
> 
> I hereby propose that ebnf2ps be moved to GNU ELPA. This is not a change of status or maintainership, just packaging. It is also not a comment on the quality of the package: it now seems to work as originally intended. ELPA didn't exist in the current form when ebnf2ps was originally added to Emacs.
> 
> Would such a move be acceptable?

Do we want it to be part of an Emacs release tarball, or don't we?

If the latter, what would we tell users who may still be using it?

(I don't use this package, so I personally have nothing against
removing it from Emacs.  But maybe others do use it.)





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

* bug#39663: [External] : bug#39663: 27.1; ebnf2ps bugs
  2021-08-31  3:28         ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-08-31  9:14           ` Mattias Engdegård
@ 2021-08-31 15:59           ` Drew Adams
  1 sibling, 0 replies; 26+ messages in thread
From: Drew Adams @ 2021-08-31 15:59 UTC (permalink / raw)
  To: Stefan Monnier
  Cc: 39663@debbugs.gnu.org, Mattias Engdegård, Lars Ingebrigtsen,
	Vinicius Jose Latorre

> >> > (And does anyone use railway diagrams these days?)
> > Yes, docs still use railroad diagrams.
> 
> I'd be surprised if anything else ever used railroad diagrams, so this
> is not very helpful.  Which kinds of "docs" would use railroad diagrams?

1. There are websites (such as bottlecaps.de/rr/ui)
that let anyone create railroad diagrams, and they
let you do so with many different forms of BNF.
Why do they exist?

2. Here's one set of doc that uses both railroad
diagrams and BNF (which is both more accessible
and usable by code).  This page is just for the
syntax of a single (giant) command: CREATE TABLE.

https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/CREATE-TABLE.html#GUID-F9CE0CC3-13AE-4744-A43C-EAC7A71AAAB6

> > And EPS figures are still used in
> > technical doc production (of PDFs).
> 
> Embedded PDF seems to have completely replaced it around here.

OK! A sample of one.  What docs does "around here"
produce?  Is the syntax they document complex?
Are some of their users (doc readers) disinclined
to read other syntax spec presentations?





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

* bug#39663: [External] : bug#39663: 27.1; ebnf2ps bugs
  2021-08-31  9:14           ` Mattias Engdegård
  2021-08-31 13:08             ` Eli Zaretskii
@ 2021-08-31 16:13             ` Drew Adams
  2021-09-01  7:53             ` Lars Ingebrigtsen
  2 siblings, 0 replies; 26+ messages in thread
From: Drew Adams @ 2021-08-31 16:13 UTC (permalink / raw)
  To: Mattias Engdegård, Stefan Monnier
  Cc: 39663@debbugs.gnu.org, Lars Ingebrigtsen, Vinicius Jose Latorre

> I hereby propose that ebnf2ps be moved to GNU ELPA. This is not a change of
> status or maintainership, just packaging. It is also not a comment on the
> quality of the package: it now seems to work as originally intended. ELPA
> didn't exist in the current form when ebnf2ps was originally added to Emacs.
> 
> Would such a move be acceptable?

FWIW, that makes sense to me.






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

* bug#39663: [External] : bug#39663: 27.1; ebnf2ps bugs
  2021-08-31  9:14           ` Mattias Engdegård
  2021-08-31 13:08             ` Eli Zaretskii
  2021-08-31 16:13             ` Drew Adams
@ 2021-09-01  7:53             ` Lars Ingebrigtsen
  2021-09-01  8:23               ` Mattias Engdegård
  2021-09-01 12:08               ` Eli Zaretskii
  2 siblings, 2 replies; 26+ messages in thread
From: Lars Ingebrigtsen @ 2021-09-01  7:53 UTC (permalink / raw)
  To: Mattias Engdegård
  Cc: 39663@debbugs.gnu.org, Vinicius Jose Latorre, Stefan Monnier

Mattias Engdegård <mattiase@acm.org> writes:

> I hereby propose that ebnf2ps be moved to GNU ELPA. This is not a
> change of status or maintainership, just packaging. It is also not a
> comment on the quality of the package: it now seems to work as
> originally intended. ELPA didn't exist in the current form when
> ebnf2ps was originally added to Emacs.

We've only moved one package from Emacs to ELPA so far, and that was not
well received, so I don't think we should repeat that experiment.  (At
least not until we've got the ELPA-bunding stuff actually implemented.)

(And in general, I think moving things to ELPA generally only makes
sense if it's a package that somebody wants to work on a lot outside of
the Emacs release schedule -- not because it's an outdated package.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#39663: 27.1; ebnf2ps bugs
  2021-08-31 12:33       ` Eli Zaretskii
@ 2021-09-01  8:05         ` Lars Ingebrigtsen
  2021-09-01 12:09           ` Eli Zaretskii
  0 siblings, 1 reply; 26+ messages in thread
From: Lars Ingebrigtsen @ 2021-09-01  8:05 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 39663, mattiase, viniciusjl.gnu, monnier

Eli Zaretskii <eliz@gnu.org> writes:

> The raw bytes in the buffer, if they are present, are already in their
> "decoded" multibyte form.  So I don't think I see how the decoding
> could help there.  Do you have an example?

Uhm...  no, I think that was a thinko -- the decode is a NOOP here,
isn't it?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#39663: [External] : bug#39663: 27.1; ebnf2ps bugs
  2021-09-01  7:53             ` Lars Ingebrigtsen
@ 2021-09-01  8:23               ` Mattias Engdegård
  2021-09-01  8:38                 ` Lars Ingebrigtsen
  2021-09-01 12:10                 ` Eli Zaretskii
  2021-09-01 12:08               ` Eli Zaretskii
  1 sibling, 2 replies; 26+ messages in thread
From: Mattias Engdegård @ 2021-09-01  8:23 UTC (permalink / raw)
  To: Lars Ingebrigtsen
  Cc: 39663@debbugs.gnu.org, Vinicius Jose Latorre, Stefan Monnier

1 sep. 2021 kl. 09.53 skrev Lars Ingebrigtsen <larsi@gnus.org>:

> We've only moved one package from Emacs to ELPA so far, and that was not
> well received, so I don't think we should repeat that experiment.  (At
> least not until we've got the ELPA-bunding stuff actually implemented.)

Very well, I will not pursue the matter further. (What I write below is not an attempt to contradict that claim.)

I still think that the likely small user base of ebnf2ps would make negative reactions unlikely -- we have been talking about moving packages to ELPA for along time, and if we can't do it with this package then when?

> (And in general, I think moving things to ELPA generally only makes
> sense if it's a package that somebody wants to work on a lot outside of
> the Emacs release schedule -- not because it's an outdated package.)

Not sure I agree with that principle -- we'd have to be awfully careful with what we allow in Emacs then, because once in, it can never be removed, even if it didn't really belong in the tree in the first place. Shouldn't we be more forgiving of the past mistakes of others (and of our own)?

In any case this bug can be closed as far as I'm concerned -- once again, thanks for the help.






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

* bug#39663: [External] : bug#39663: 27.1; ebnf2ps bugs
  2021-09-01  8:23               ` Mattias Engdegård
@ 2021-09-01  8:38                 ` Lars Ingebrigtsen
  2021-09-01 12:10                 ` Eli Zaretskii
  1 sibling, 0 replies; 26+ messages in thread
From: Lars Ingebrigtsen @ 2021-09-01  8:38 UTC (permalink / raw)
  To: Mattias Engdegård
  Cc: 39663@debbugs.gnu.org, Vinicius Jose Latorre, Stefan Monnier

Mattias Engdegård <mattiase@acm.org> writes:

> Not sure I agree with that principle -- we'd have to be awfully
> careful with what we allow in Emacs then, because once in, it can
> never be removed, even if it didn't really belong in the tree in the
> first place. Shouldn't we be more forgiving of the past mistakes of
> others (and of our own)?

We do deprecate (and remove) stuff from Emacs if we don't think it's
useful.  I don't think it's useful to think of ELPA as a cemetery for
dead code.  :-)

But I understand that there's many different opinions on this, and I'm
not opposing moving stuff to ELPA on principle -- when we finally get
ELPA bundling, then it's time to re-start the discussions about specific
packages.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#39663: [External] : bug#39663: 27.1; ebnf2ps bugs
  2021-09-01  7:53             ` Lars Ingebrigtsen
  2021-09-01  8:23               ` Mattias Engdegård
@ 2021-09-01 12:08               ` Eli Zaretskii
  1 sibling, 0 replies; 26+ messages in thread
From: Eli Zaretskii @ 2021-09-01 12:08 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 39663, mattiase, viniciusjl.gnu, monnier

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: Stefan Monnier <monnier@iro.umontreal.ca>,  Drew Adams
>  <drew.adams@oracle.com>,  Eli Zaretskii <eliz@gnu.org>,
>   "39663@debbugs.gnu.org" <39663@debbugs.gnu.org>,  Vinicius Jose Latorre
>  <viniciusjl.gnu@gmail.com>
> Date: Wed, 01 Sep 2021 09:53:12 +0200
> 
> We've only moved one package from Emacs to ELPA so far, and that was not
> well received, so I don't think we should repeat that experiment.  (At
> least not until we've got the ELPA-bunding stuff actually implemented.)
> 
> (And in general, I think moving things to ELPA generally only makes
> sense if it's a package that somebody wants to work on a lot outside of
> the Emacs release schedule -- not because it's an outdated package.)

Agreed.





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

* bug#39663: 27.1; ebnf2ps bugs
  2021-09-01  8:05         ` Lars Ingebrigtsen
@ 2021-09-01 12:09           ` Eli Zaretskii
  2021-09-02  7:20             ` Lars Ingebrigtsen
  0 siblings, 1 reply; 26+ messages in thread
From: Eli Zaretskii @ 2021-09-01 12:09 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 39663, mattiase, viniciusjl.gnu, monnier

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: mattiase@acm.org,  39663@debbugs.gnu.org,  viniciusjl.gnu@gmail.com,
>   monnier@iro.umontreal.ca
> Date: Wed, 01 Sep 2021 10:05:00 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > The raw bytes in the buffer, if they are present, are already in their
> > "decoded" multibyte form.  So I don't think I see how the decoding
> > could help there.  Do you have an example?
> 
> Uhm...  no, I think that was a thinko -- the decode is a NOOP here,
> isn't it?

I think so.  And quite an expensive one, because I don't see any test
anywhere that would return without doing anything.





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

* bug#39663: [External] : bug#39663: 27.1; ebnf2ps bugs
  2021-09-01  8:23               ` Mattias Engdegård
  2021-09-01  8:38                 ` Lars Ingebrigtsen
@ 2021-09-01 12:10                 ` Eli Zaretskii
  1 sibling, 0 replies; 26+ messages in thread
From: Eli Zaretskii @ 2021-09-01 12:10 UTC (permalink / raw)
  To: Mattias Engdegård; +Cc: 39663, larsi, viniciusjl.gnu, monnier

> From: Mattias Engdegård <mattiase@acm.org>
> Date: Wed, 1 Sep 2021 10:23:28 +0200
> Cc: Stefan Monnier <monnier@iro.umontreal.ca>,
>         Drew Adams <drew.adams@oracle.com>, Eli Zaretskii <eliz@gnu.org>,
>         "39663@debbugs.gnu.org" <39663@debbugs.gnu.org>,
>         Vinicius Jose Latorre <viniciusjl.gnu@gmail.com>
> 
> > (And in general, I think moving things to ELPA generally only makes
> > sense if it's a package that somebody wants to work on a lot outside of
> > the Emacs release schedule -- not because it's an outdated package.)
> 
> Not sure I agree with that principle -- we'd have to be awfully careful with what we allow in Emacs then, because once in, it can never be removed, even if it didn't really belong in the tree in the first place.

No, we can move such packages to lisp/obsolete/, and after some time
there delete them.  It happened in the past.





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

* bug#39663: 27.1; ebnf2ps bugs
  2021-09-01 12:09           ` Eli Zaretskii
@ 2021-09-02  7:20             ` Lars Ingebrigtsen
  0 siblings, 0 replies; 26+ messages in thread
From: Lars Ingebrigtsen @ 2021-09-02  7:20 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 39663, mattiase, viniciusjl.gnu, monnier

Eli Zaretskii <eliz@gnu.org> writes:

> I think so.  And quite an expensive one, because I don't see any test
> anywhere that would return without doing anything.

Yup.  Now fixed on the trunk.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2021-09-02  7:20 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-18 14:11 bug#39663: 27.1; ebnf2ps bugs Mattias Engdegård
2020-02-18 16:35 ` Stefan Monnier
2020-02-20 15:11   ` Mattias Engdegård
2020-02-24 16:31     ` Stefan Monnier
2020-02-24 16:53       ` Mattias Engdegård
2021-08-30  1:15 ` Lars Ingebrigtsen
2021-08-30 11:39   ` Mattias Engdegård
2021-08-31  1:11     ` Lars Ingebrigtsen
2021-08-31  2:21       ` bug#39663: [External] : " Drew Adams
2021-08-31  3:28         ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-31  9:14           ` Mattias Engdegård
2021-08-31 13:08             ` Eli Zaretskii
2021-08-31 16:13             ` Drew Adams
2021-09-01  7:53             ` Lars Ingebrigtsen
2021-09-01  8:23               ` Mattias Engdegård
2021-09-01  8:38                 ` Lars Ingebrigtsen
2021-09-01 12:10                 ` Eli Zaretskii
2021-09-01 12:08               ` Eli Zaretskii
2021-08-31 15:59           ` Drew Adams
2021-08-31  1:17     ` Lars Ingebrigtsen
2021-08-30 12:53   ` Eli Zaretskii
2021-08-31  1:19     ` Lars Ingebrigtsen
2021-08-31 12:33       ` Eli Zaretskii
2021-09-01  8:05         ` Lars Ingebrigtsen
2021-09-01 12:09           ` Eli Zaretskii
2021-09-02  7:20             ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).