From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#48100: 28.0.50; inserting too many lines into a fresh cpp file breaks the buffer Date: Sun, 2 May 2021 15:01:05 +0000 Message-ID: References: <87a6pd45w6.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32076"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 48100@debbugs.gnu.org, Paul Nelson To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 02 17:20:52 2021 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 1ldDts-0008GU-83 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 May 2021 17:20:52 +0200 Original-Received: from localhost ([::1]:46062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldDtr-0003JZ-9E for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 May 2021 11:20:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldDbf-0002HX-8Y for bug-gnu-emacs@gnu.org; Sun, 02 May 2021 11:02:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59898) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldDbf-0006ZR-0W for bug-gnu-emacs@gnu.org; Sun, 02 May 2021 11:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldDbe-0003uj-FW for bug-gnu-emacs@gnu.org; Sun, 02 May 2021 11:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 May 2021 15:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48100 X-GNU-PR-Package: emacs Original-Received: via spool by 48100-submit@debbugs.gnu.org id=B48100.161996767615037 (code B ref 48100); Sun, 02 May 2021 15:02:02 +0000 Original-Received: (at 48100) by debbugs.gnu.org; 2 May 2021 15:01:16 +0000 Original-Received: from localhost ([127.0.0.1]:43209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldDau-0003uT-1I for submit@debbugs.gnu.org; Sun, 02 May 2021 11:01:16 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:41238 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1ldDar-0003uN-H0 for 48100@debbugs.gnu.org; Sun, 02 May 2021 11:01:15 -0400 Original-Received: (qmail 71239 invoked by uid 3782); 2 May 2021 15:01:06 -0000 Original-Received: from acm.muc.de (p4fe153df.dip0.t-ipconnect.de [79.225.83.223]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 02 May 2021 17:01:06 +0200 Original-Received: (qmail 4603 invoked by uid 1000); 2 May 2021 15:01:05 -0000 Content-Disposition: inline In-Reply-To: <87a6pd45w6.fsf@tcd.ie> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:205432 Archived-At: Hello, Basil. On Sun, May 02, 2021 at 14:33:29 +0100, Basil L. Contovounesios wrote: > Alan Mackenzie writes: > >> Incidentally, "C-u C-M-x" applied to c-guess-basic-syntax gives a long and > >> complicated backtrace that starts with: > >> Debugger entered--Lisp error: (invalid-read-syntax "Expected" "lambda") > >> edebug-syntax-error("Expected" "lambda") > > That, I can reproduce. After a bit of experimentation, it would appear > > that this is due to the lack of an edebug-spec for the macro > > c-save-buffer-state. > Or rather, a recent change in its Edebug spec. > > To confirm this in the most basic manner, type > > M-: (def-edebug-spec c-save-buffer-state let*) > Until recently, the Edebug spec of c-save-buffer-state was set twice: > once by its declare form (as 't'), and later by def-edebug-spec (as > 'let*'). The latter was recently removed: > CC Mode: Put debug specs inside declare forms. Add missing debug specs. > 31f8ae53be 2021-04-15 10:11:20 +0000 > https://git.sv.gnu.org/cgit/emacs.git/commit/?id=31f8ae53beb9bada58750160c1bf7f867ecd442e > This suggests that the remaining declare form is at fault. Thank you indeed for clearing this up. The standalone CC Mode version was actually OK here, which made it harder to find. I think I'm still right about not being able to instrument c-guess-basic-syntax and friends until the correct debug spec has been loaded. But who's going to be doing that, anyway? I will correct this bug soon. Thank you again. > Thanks, > -- > Basil -- Alan Mackenzie (Nuremberg, Germany).