From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#28759: 26.0.60; Bovine apparently generates Elisp code with oldstyle backquotes Date: Sat, 09 Dec 2017 20:17:00 +0000 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114f1f027e7c13055fedfc48" X-Trace: blaine.gmane.org 1512850693 19449 195.159.176.226 (9 Dec 2017 20:18:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 9 Dec 2017 20:18:13 +0000 (UTC) To: 28759-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 09 21:18:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNlZX-0004ql-HJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Dec 2017 21:18:07 +0100 Original-Received: from localhost ([::1]:42473 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNlZe-0001la-Sn for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Dec 2017 15:18:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNlZX-0001lS-Hh for bug-gnu-emacs@gnu.org; Sat, 09 Dec 2017 15:18:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eNlZU-0007T5-Cw for bug-gnu-emacs@gnu.org; Sat, 09 Dec 2017 15:18:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45449) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eNlZU-0007Sq-7D for bug-gnu-emacs@gnu.org; Sat, 09 Dec 2017 15:18:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eNlZT-0000hz-R4 for bug-gnu-emacs@gnu.org; Sat, 09 Dec 2017 15:18:03 -0500 Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Dec 2017 20:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 28759 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 28759@debbugs.gnu.org, p.stephani2@gmail.com, p.stephani2@gmail.com Original-Received: via spool by 28759-done@debbugs.gnu.org id=D28759.15128506392671 (code D ref 28759); Sat, 09 Dec 2017 20:18:02 +0000 Original-Received: (at 28759-done) by debbugs.gnu.org; 9 Dec 2017 20:17:19 +0000 Original-Received: from localhost ([127.0.0.1]:54128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNlYl-0000h0-DZ for submit@debbugs.gnu.org; Sat, 09 Dec 2017 15:17:19 -0500 Original-Received: from mail-qk0-f180.google.com ([209.85.220.180]:35408) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNlYj-0000gn-8K for 28759-done@debbugs.gnu.org; Sat, 09 Dec 2017 15:17:18 -0500 Original-Received: by mail-qk0-f180.google.com with SMTP id c13so2788990qke.2 for <28759-done@debbugs.gnu.org>; Sat, 09 Dec 2017 12:17:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=HW2DNaMzHXrBCMp2YSTo2VR8jmMprh34eLOMrjEL1As=; b=XBHKK8tFYD7YUlHv60ilFLOYwOEpOF5uq9TnWcg6q6eygn64sYcxm7DOPj7uSTbN1c fElKwHWEE1p/ZVeOBeiURd3xfwer0gsgpaRDQd9ZiO+gwJbdrHLnjCAM1RHWBrRGfLKn /qvRcR82irD3QdJnQpLlG4Xy8LI7e246JJQLZXLgEkgBqToA2ENmJQ7uGZkoefcbtADF jUFP8Zt1dGHBoUttDPqmVIY1VaYXIqeibyARhzKIxb+1jjbMbvX4aHEjc6snfbq6NtF/ as9l4iEh8QaaB3y2G34ApeMmn+ehX4SodsEBiXagjzwyHVkNCSzkhSmaJWk3ezxg8pvq +1fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=HW2DNaMzHXrBCMp2YSTo2VR8jmMprh34eLOMrjEL1As=; b=ILS/VBOCpBuUSgvZWLoiXr3ar+VhQ1+IQHWabhIn7AoQiBSCZ70VQjS/H68NFQxn+E o5Q4rCRLgG87fw4LiiIqu1LSSHSmGHlDDAyFPvwjvOs+HAs60uAGg06eCm5llYg081i/ S3UAnt0ypg7Mi8TuRT5l56DAtPW0mJn3g/W7CheAZKo2+Pj6/M++q2uGTbINxa0jnErG UgAgoyCjRg+0bDUCkKH9FHhMB0kcl1yM/EU6T+kzJ2Ug+diZHFK9iJsJX20bIDz45tmG evU+x9YWbVV2QNRl5Ci2FSSAQ377C5vkL4FtzjQq5dxjPcIobx1tJPWurNAbCuZ//Kmg 4BqQ== X-Gm-Message-State: AKGB3mL8EVVjuBDGx5JgWu2Z79fOnzaiXLJ51rdhYA1873ZxWTP2WqPO AdwP6pjF5jseAaUo8eQXX07C9zqO8qyFUUev5cc+iQ== X-Google-Smtp-Source: AGs4zMZ7ygeyfutSCNlxXZ5qFiQcy1rbAPKXCHEqayMLRI0PFDTVETHBP9JFEvWZn8+tKibcBYfMwfs/kBq8YehmJKw= X-Received: by 10.233.235.207 with SMTP id b198mr42529167qkg.55.1512850631587; Sat, 09 Dec 2017 12:17:11 -0800 (PST) In-Reply-To: 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: 208.118.235.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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:140872 Archived-At: --001a114f1f027e7c13055fedfc48 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Philipp Stephani schrieb am So., 29. Okt. 2017 um 20:38 Uhr: > Philipp Stephani schrieb am So., 15. Okt. 2017 um > 21:41 Uhr: > >> Philipp schrieb am Mo., 9. Okt. 2017 um >> 16:20 Uhr: >> >>> >>> See https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00313.htm= l >>> >>> The backtrace I got was >>> >>> $ (cd admin/grammars && EMACSLOADPATH=3D "../../src/emacs" -batch >>> --no-site-file --no-site-lisp -eval '(setq debug-on-error t)' -l >>> semantic/bovine/grammar -f bovine-batch-make-parser -o >>> "../../lisp/cedet/semantic/bovine/make-by.el" make.by) >>> ../../lisp/emacs-lisp/eieio.el: =E2=80=98eieio-object-name-string=E2=80= =99 is an >>> obsolete generic function (as of 25.1); use =E2=80=98eieio-named=E2=80= =99 instead. >>> ../../lisp/emacs-lisp/eieio.el: =E2=80=98object-print=E2=80=99 is an ob= solete generic >>> function (as of 26.1); use =E2=80=98cl-print-object=E2=80=99 instead. >>> ../../lisp/emacs-lisp/eieio-base.el: =E2=80=98eieio-object-name-string= =E2=80=99 is an >>> obsolete generic function (as of 25.1); use =E2=80=98eieio-named=E2=80= =99 instead. >>> Debugger entered--Lisp error: (error "Loading =E2=80=98nil=E2=80=99: ol= d-style >>> backquotes detected!") >>> read("( ,@$2 )") >>> >> >> I looked a bit around, and found that these strings are copied verbatim >> from the *.by files. >> Looking at the comments of lread.c, this seems to be a limitation of the >> reader: "Because it's more difficult to peek 2 chars ahead, a new-style = ,@ >> can still not be used outside of a `, unless it's in the middle of a lis= t." >> Not sure what to do with this, though. Changing the reader would >> introduce a breaking change for no good reason, since we're trying to ge= t >> rid of old-style backquotes. So I think this should rather be fixed in >> Bovine, either by escaping the offending commas, or by removing the spac= e >> between ( and ,. >> > > Here is a minimal patch. > Since there were no comments and the patch is small, I've pushed it to master as 6fc0397388. --001a114f1f027e7c13055fedfc48 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Philip= p Stephani <p.stephani2@gmail.c= om> schrieb am So., 29. Okt. 2017 um 20:38=C2=A0Uhr:
Philipp Stephani <p.stephani2@gmail.com> schrieb am So., 15. Okt. 2017= um 21:41=C2=A0Uhr:
Philipp <p.stephani2@gmail.com> sch= rieb am Mo., 9. Okt. 2017 um 16:20=C2=A0Uhr:

See https://lists.gnu.org/archiv= e/html/emacs-devel/2017-10/msg00313.html

The backtrace I got was

$ (cd admin/grammars && EMACSLOADPATH=3D "../../src/emacs"= ; -batch --no-site-file --no-site-lisp -eval '(setq debug-on-error t)&#= 39; -l semantic/bovine/grammar=C2=A0 -f bovine-batch-make-parser -o ".= ./../lisp/cedet/semantic/bovine/make-by.el" make.by)
../../lisp/emacs-lisp/eieio.el: =E2=80=98eieio-object-name-string=E2=80=99 = is an obsolete generic function (as of 25.1); use =E2=80=98eieio-named=E2= =80=99 instead.
../../lisp/emacs-lisp/eieio.el: =E2=80=98object-print=E2=80=99 is an obsole= te generic function (as of 26.1); use =E2=80=98cl-print-object=E2=80=99 ins= tead.
../../lisp/emacs-lisp/eieio-base.el: =E2=80=98eieio-object-name-string=E2= =80=99 is an obsolete generic function (as of 25.1); use =E2=80=98eieio-nam= ed=E2=80=99 instead.
Debugger entered--Lisp error: (error "Loading =E2=80=98nil=E2=80=99: o= ld-style backquotes detected!")
=C2=A0 read("( ,@$2 )")

I looked a bit around, and found that these strings are copie= d verbatim from the *.by files.
Looking at the comments of lread.= c, this seems to be a limitation of the reader: "Because it's more= difficult to peek 2 chars ahead, a new-style=C2=A0,@ can still not be used= outside of a `, unless it's in the middle=C2=A0of a list."
<= div>Not sure what to do with this, though. Changing the reader would introd= uce a breaking change for no good reason, since we're trying to get rid= of old-style backquotes. So I think this should rather be fixed in Bovine,= either by escaping the offending commas, or by removing the space between = ( and ,.

Here is a minimal patch.=C2=A0

Since there were no comments= and the patch is small, I've pushed it to master as 6fc0397388.=C2=A0<= /div>
--001a114f1f027e7c13055fedfc48--