From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#39663: 27.1; ebnf2ps bugs Date: Tue, 18 Feb 2020 15:11:23 +0100 Message-ID: <631D6235-82DE-46FE-9264-453F00ED77F7@acm.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="12827"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Vinicius Jose Latorre , Stefan Monnier To: 39663@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 18 16:11:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j44Wm-0003AY-9E for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Feb 2020 16:11:12 +0100 Original-Received: from localhost ([::1]:36884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j44Wl-00021W-BI for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Feb 2020 10:11:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34746) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j44Wd-00021F-Q1 for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 10:11:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j44Wc-0001p6-Rk for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 10:11:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35143) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j44Wc-0001ou-Oo for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 10:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j44Wc-000298-HO for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 10:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Feb 2020 15:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39663 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15820386208178 (code B ref -1); Tue, 18 Feb 2020 15:11:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Feb 2020 15:10:20 +0000 Original-Received: from localhost ([127.0.0.1]:41116 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j44Vv-00027q-T6 for submit@debbugs.gnu.org; Tue, 18 Feb 2020 10:10:20 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:57891) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j44Vu-00027i-Ej for submit@debbugs.gnu.org; Tue, 18 Feb 2020 10:10:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34665) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j44Vt-0001dU-7x for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 10:10:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j44Vs-0001NU-9p for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 10:10:17 -0500 Original-Received: from mail1469c50.megamailservers.eu ([91.136.14.69]:55598 helo=mail102c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j44Vr-0001Kg-L8 for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 10:10:16 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1582035087; bh=w2Y2WbjpSNt9qJZrMz4e8a2FJHbkJcT5aOV+IHWMdGQ=; h=From:Subject:Date:Cc:To:From; b=CIaJSfbW2knYHCafW+fAw3Em6TaLtJrSqLLwQS8ise+HgmlxTNXlPfdNmsmOQSM4a qgdePyFwJnu+UdYMXK+475MBsuFhD68WGj/sRHruD1ABi7MEJri/WCUE0IB9oU33pe 0UgSrq1xUVzZvQzhblson4WD7P+ugf3N38bQ5Q/Y= Feedback-ID: mattiase@acm.or Original-Received: from stanniol.lan (c-6f4fe655.032-75-73746f71.bbcust.telenor.se [85.230.79.111]) (authenticated bits=0) by mail102c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 01IEBN2o016054; Tue, 18 Feb 2020 14:11:25 +0000 X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0210.5E4BF08F.0022, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=Q8qsHL+a c=1 sm=1 tr=0 a=fHaj9vQUQVKQ4sUldAaXuQ==:117 a=fHaj9vQUQVKQ4sUldAaXuQ==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=hur9Vz20vqRnVYQmJXoA:9 a=CjuIK1q_8ugA:10 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:176191 Archived-At: 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.