From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: npostavs@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#5851: 24.0.50; first character after opening quote often gets eaten in CC modes Date: Fri, 17 May 2019 13:11:36 -0400 Message-ID: <851s0xdn07.fsf@gmail.com> References: <201004062321.07973.pogonyshev@gmx.net> <201102222339.31284.pogonyshev@gmx.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="230515"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) Cc: 5851@debbugs.gnu.org To: Paul Pogonyshev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 17 19:12:11 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRgOx-000xqP-4v for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 May 2019 19:12:11 +0200 Original-Received: from localhost ([127.0.0.1]:51393 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRgOv-00079u-OR for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 May 2019 13:12:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRgOp-00078j-DY for bug-gnu-emacs@gnu.org; Fri, 17 May 2019 13:12:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRgOo-0002jj-GY for bug-gnu-emacs@gnu.org; Fri, 17 May 2019 13:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45336) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hRgOo-0002jV-Cr; Fri, 17 May 2019 13:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hRgOo-0005j2-5T; Fri, 17 May 2019 13:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 17 May 2019 17:12: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.155811310621987 (code B ref 5851); Fri, 17 May 2019 17:12:02 +0000 Original-Received: (at 5851) by debbugs.gnu.org; 17 May 2019 17:11:46 +0000 Original-Received: from localhost ([127.0.0.1]:58880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRgOY-0005iZ-Hg for submit@debbugs.gnu.org; Fri, 17 May 2019 13:11:46 -0400 Original-Received: from mail-it1-f171.google.com ([209.85.166.171]:40039) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRgOV-0005iK-Co for 5851@debbugs.gnu.org; Fri, 17 May 2019 13:11:45 -0400 Original-Received: by mail-it1-f171.google.com with SMTP id g71so13165294ita.5 for <5851@debbugs.gnu.org>; Fri, 17 May 2019 10:11:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=V++2Qg9S6zsZlzFvi1+Y9amYe5IXVfUyE2gTi8Ac7DI=; b=uxmA5RQsSmN5WBt+6xhnQkqdICIfu9D+2x6yuyaSuNDrC+nmneuSsE9ks7ZdUK7NhR veylQmlwq4vxR+9inPL3wt76cCCBxsD6xVCoPcXv9g0DBmXV0IWRQfCocF0dFLadrgjB +rM8yPf4a2Dy4bT4qjtsdA/Yml3+ocWhW5zziM9tJY9kpKMDnsoTBoUuEyoqEc+WDLx6 7rHMQvHlLAx6ol4pyAIGG2Ljs8HMOMOd0KSOzBU7RFv8fDdqevHABVIffMn0Rnw0bHKz QwgtQm2t6EL5hqJdYSBHmZIzE3HQmq/I0TIGu/8dQsC+ZM/pxY/dJ3IHzjODP348832h BNEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=V++2Qg9S6zsZlzFvi1+Y9amYe5IXVfUyE2gTi8Ac7DI=; b=SHz8ToghPwgCABgk9tx7XIrs4jZtVhVW6dY8cZBIL3a+Q3FzCzvBWoj0jx71saCU/Y eXXe338JAxaI2dYp37m5Bt+VV+gRS/j1Pn3bu7KP6e89FE0SIk43VgnKXaVsCieiaMjX mGoiDTze4VZTo2ej4QXUWCTROS6uld/1gQgIZ93GSHACaIRrPBkOFL6ps3lQpC3rBzQN rigdF/wOdCgd9GP/hl5sbIt9fc9KtA6uJFid2cXZsCDzC7NqLzOdiZAhV1V2+EG6oGTj s/9zNLMBCJ3QVX0RcVgVAunH4faW6etPnjik+OlcGH4oPYmx+TWk/iMAKBYEfGV5NsQt MMyA== X-Gm-Message-State: APjAAAUDPC/ncpEQoCWw8SybtN1MgWgm1z62a7VsUJTIckwRzbPg7P5f i0cVonXpJk73mAtPujcwaSEY0RAg X-Google-Smtp-Source: APXvYqys9URx5/7RNTa8xwumgjokClDNR6c5AI12VJmuoAAj+dgbFQRDWiF8g5GuFqLq1LghAlGscw== X-Received: by 2002:a05:660c:492:: with SMTP id a18mr1289081itk.48.1558113097534; Fri, 17 May 2019 10:11:37 -0700 (PDT) Original-Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196]) by smtp.gmail.com with ESMTPSA id k7sm2914117ioh.36.2019.05.17.10.11.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 May 2019 10:11:37 -0700 (PDT) In-Reply-To: <201102222339.31284.pogonyshev@gmx.net> (Paul Pogonyshev's message of "Tue, 22 Feb 2011 23:39:31 +0200") 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:159462 Archived-At: 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)