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

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).