From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#5851: 24.0.50; first character after opening quote often gets eaten in CC modes Date: Sun, 6 Oct 2019 13:36:52 +0200 Message-ID: References: <201004062321.07973.pogonyshev@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="70232"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Alan Mackenzie , Paul Pogonyshev , 5851@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 06 13:38:14 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 1iH4rd-000I2V-IS for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Oct 2019 13:38:13 +0200 Original-Received: from localhost ([::1]:32958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iH4rb-0001vo-TE for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Oct 2019 07:38:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52298) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iH4rT-0001ve-Oi for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2019 07:38:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iH4rS-0005Go-QM for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2019 07:38:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36841) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iH4rS-0005Gj-NY; Sun, 06 Oct 2019 07:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iH4rS-0003BH-II; Sun, 06 Oct 2019 07:38:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <201004062321.07973.pogonyshev@gmx.net> Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sun, 06 Oct 2019 11:38: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.157036183012170 (code B ref 5851); Sun, 06 Oct 2019 11:38:02 +0000 Original-Received: (at 5851) by debbugs.gnu.org; 6 Oct 2019 11:37:10 +0000 Original-Received: from localhost ([127.0.0.1]:45662 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iH4qc-0003AE-Jf for submit@debbugs.gnu.org; Sun, 06 Oct 2019 07:37:10 -0400 Original-Received: from mail-pg1-f175.google.com ([209.85.215.175]:45510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iH4qb-00039z-EX for 5851@debbugs.gnu.org; Sun, 06 Oct 2019 07:37:09 -0400 Original-Received: by mail-pg1-f175.google.com with SMTP id q7so6453309pgi.12 for <5851@debbugs.gnu.org>; Sun, 06 Oct 2019 04:37:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=W4j9vwp7MjhP5ISFXwEJvGInDHAlJMyGw47Zh2UH0bs=; b=Wr47+wQZNqA7RE2g3PFhpEWmAxvOPu/pYTbP+wF4CgJAnc0YUYwK7nrfw6XrKgieK2 MVhyl+hZMq2dC9clqxIjhzD6ss4U6s3CWp//Ylnoq3M1pZ5f2t5h/PDnoByNEdN0BquT xl4lahWxNGx0d+CntU+EECnHh+cLZF+eOlWCJhbK2jyBzFVUyt1GeJm5lgi27AEhNE/J gafMD4G++aaSoZE/81cgUGLy0oqQmyFuVdGRBs3g3eWNPFs0reqk+jfz5qIM20zieVbU v95QFc+mMQQdcvmGJXYHTbnrZi+uMi+YBEbZZ2+YHY+t24IA9EHp5d6cNmlmOxRUM2B+ rkmg== X-Gm-Message-State: APjAAAXoUIO92FYyITpyQ5N0VWB6dZNls7jtbfDN57CXIVSHQC2qam13 VrLNm4DIMa9ia+wf2Q6V++n+G5ecDRWqmFYzKOw= X-Google-Smtp-Source: APXvYqzKMqb273sq2RWxhMRS/ny54GM6gpzWKHz2uBVkP9ibvb3ZulCqHRaKqjVJOsDA9YvrX4uF0Vs2OmbR7E/apqs= X-Received: by 2002:a62:e917:: with SMTP id j23mr27251342pfh.50.1570361823417; Sun, 06 Oct 2019 04:37:03 -0700 (PDT) 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:168420 Archived-At: 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? Best regards, Stefan Kangas