From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#5851: 24.0.50; first character after opening quote often gets eaten in CC modes Date: Mon, 25 Nov 2019 18:59:26 +0000 Message-ID: <20191125185926.GB4496@ACM> References: <201004062321.07973.pogonyshev@gmx.net> <874kyukvmz.fsf@marxist.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="4981"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: 5851@debbugs.gnu.org, Noam Postavsky , Paul Pogonyshev To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 25 20:00:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iZJas-00018m-Bh for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Nov 2019 20:00:18 +0100 Original-Received: from localhost ([::1]:47492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZJaq-0000yW-Mv for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Nov 2019 14:00:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41243) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZJah-0000wV-HT for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2019 14:00:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZJag-0004lA-EP for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2019 14:00:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43708) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iZJac-0004kC-VA; Mon, 25 Nov 2019 14:00:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iZJac-0006yg-UN; Mon, 25 Nov 2019 14:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 25 Nov 2019 19:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5851 X-GNU-PR-Package: emacs,cc-mode Original-Received: via spool by 5851-submit@debbugs.gnu.org id=B5851.157470837426758 (code B ref 5851); Mon, 25 Nov 2019 19:00:02 +0000 Original-Received: (at 5851) by debbugs.gnu.org; 25 Nov 2019 18:59:34 +0000 Original-Received: from localhost ([127.0.0.1]:49681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZJa9-0006xW-Sm for submit@debbugs.gnu.org; Mon, 25 Nov 2019 13:59:34 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:12180 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1iZJa8-0006xL-1j for 5851@debbugs.gnu.org; Mon, 25 Nov 2019 13:59:32 -0500 Original-Received: (qmail 97982 invoked by uid 3782); 25 Nov 2019 18:59:30 -0000 Original-Received: from acm.muc.de (p4FE15ACF.dip0.t-ipconnect.de [79.225.90.207]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 25 Nov 2019 19:59:26 +0100 Original-Received: (qmail 4522 invoked by uid 1000); 25 Nov 2019 18:59:26 -0000 Content-Disposition: inline In-Reply-To: <874kyukvmz.fsf@marxist.se> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172373 Archived-At: Hello, Stefan. On Sun, Nov 24, 2019 at 00:42:12 +0100, Stefan Kangas wrote: > Stefan Kangas writes: > > npostavs@gmail.com writes: > >> Paul Pogonyshev writes: > >>> FWIW the bug is still present. I get this backtrace (2011-02-19 > >>> build): > >>> (error "Invalid search bound (wrong side of point)") > >>> signal(error ("Invalid search bound (wrong side of point)")) > >>> byte-code(" b\210\302 @ A\"\207" [start err signal] 3) > >>> c-syntactic-re-search-forward("[;{}]" 8510 end) > >>> c-before-change-check-<>-operators(6462 6462) > >>> #[(fn) " \n\"\207" [fn beg end] 3](c-before-change-check-<>-operators) > >>> mapc(#[(fn) " \n\"\207" [fn beg end] 3] (c-extend-region-for-CPP c-before-change-check-<>-operators)) > >>> c-before-change(6462 6462) > >>> self-insert-command(1) > >>> call-interactively(self-insert-command nil nil) > >>> I cannot find a reliable way to reproduce, but it happens often > >>> enough. Apparently, buffers not touched in quite a while are more > >>> prone. I.e. open a C++ file and leave it alone for 5 minutes. Then > >>> switch to the buffer and type outside any string a double quote > >>> following by any other character --- the second character will likely > >>> get eaten with an error as above. M-x toggle-debug-on-error helps > >>> spotting it. > >> Maybe this is fixed in master now, along with Bug#28850? (the error > >> there is the same, though the backtrace is a bit different) > > Indeed, it looks like this has been fixed on master -- or at least I > > can't reproduce it. Alan, what do you think? > No further comments within 6 weeks. I'll give it a couple of more > weeks, and if no one objects within that time, I'll just assume that > this has indeed been fixed and close this bug report. I think the time has come to close the bug. I think it highly likely it's been fixed, probably quite some while ago. There have been quite a few bugs with similar symptoms over the years. > Meanwhile, if anyone has been seeing this issue, please try it on > current master to see if the issue persists, then report back your > findings. > Best regards, > Stefan Kangas -- Alan Mackenzie (Nuremberg, Germany).