From unknown Wed Jun 25 00:26:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5851: 24.0.50; first character after opening quote often gets eaten in CC modes Resent-From: Paul Pogonyshev Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Apr 2010 20:23:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 5851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 5851@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.12705853804136 (code B ref -1); Tue, 06 Apr 2010 20:23:03 +0000 Received: (at submit) by debbugs.gnu.org; 6 Apr 2010 20:23:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzFIa-00014f-0q for submit@debbugs.gnu.org; Tue, 06 Apr 2010 16:23:00 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzFIX-00014a-Ui for submit@debbugs.gnu.org; Tue, 06 Apr 2010 16:22:59 -0400 Received: from lists.gnu.org ([199.232.76.165]:60351) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NzFIT-0003xe-Fd for submit@debbugs.gnu.org; Tue, 06 Apr 2010 16:22:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NzFIS-0004FJ-VP for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2010 16:22:53 -0400 Received: from [140.186.70.92] (port=60990 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzFIR-0004EO-8b for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2010 16:22:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_WEB, T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzFIP-0001X5-UG for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2010 16:22:51 -0400 Received: from mail.gmx.net ([213.165.64.20]:51367) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NzFIO-0001Wm-T9 for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2010 16:22:49 -0400 Received: (qmail invoked by alias); 06 Apr 2010 20:22:45 -0000 Received: from unknown (EHLO gonzo.localnet) [91.149.173.2] by mail.gmx.net (mp058) with SMTP; 06 Apr 2010 22:22:45 +0200 X-Authenticated: #16844820 X-Provags-ID: V01U2FsdGVkX1+XUEJHuBqXuAORGEmJvDwUBFA2b/HNVU6tmFf34g Q3m2TGaxJ3QRGp From: Paul Pogonyshev Date: Tue, 6 Apr 2010 23:21:07 +0300 User-Agent: KMail/1.12.4 (Linux/2.6.29-2-686; KDE/4.3.4; i686; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201004062321.07973.pogonyshev@gmx.net> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.44 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': As can be seen from 'recent input' section below, I typed a string in C++ mode like this: "{} However, due to an error in the Lisp code (byte-code: Invalid search bound (wrong side of point)), it ended up looking like this: "} i.e. the very first character after the opening quote got eaten and never inserted into the buffer. This does not happen always, but often enough. It has been happening for quite some time now, i.e. it is not something introduced very recently. Paul If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/local/share/emacs/24.0.50/etc/DEBUG. In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.18.9) of 2010-04-04 on gonzo Windowing system distributor `The X.Org Foundation', version 11.0.10706000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: C++/l Minor modes in effect: which-function-mode: t show-paren-mode: t server-mode: t auto-image-file-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: a r & * SPC d e l i m i t e r s . SPC , SPC C-e d e M-/ [ 0 ] C-M-k C-s C-s C-g C-M-k d e M-/ [ 1 ] M-/ [ 0 ] C-M-k C-M-k d e M-/ [ 1 ] C-x C-s C-s p r i n t _ r C-w C-s C-s C-s " [ ] " , SPC C-x C-s C-x C-f C-g C-x C-f s e t " { } " , SPC C-x C-s C-x C-f m a C-SPC C-w " { } { } " , SPC C-x C-s c o n s t SPC c h a r * SPC M-/ , SPC C-x C-s C-e " { } " , SPC y " { } M-x r e p o r Recent messages: Wrote /home/paul/mct/tests/map.cpp (No files need saving) Compilation exited abnormally with code 2 Saving file /home/paul/mct/tests/common.hpp... Wrote /home/paul/mct/tests/common.hpp (No files need saving) Compilation exited abnormally with code 2 Saving file /home/paul/mct/tests/map.cpp... Wrote /home/paul/mct/tests/map.cpp Compilation exited abnormally with code 2 byte-code: Invalid search bound (wrong side of point) Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr message sendmail rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug grep newcomment dabbrev multi-isearch vc-bzr sha1 hex-util cc-mode cc-fonts easymenu cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs compile comint ring which-func imenu eldoc saveplace paren server ido cus-start cus-load thumbs image-file dired regexp-opt advice help-fns advice-preload tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 09 03:35:30 2010 Received: (at control) by debbugs.gnu.org; 9 Apr 2010 07:35:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O08kU-0003Xi-CV for submit@debbugs.gnu.org; Fri, 09 Apr 2010 03:35:30 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O08kT-0003Xd-8n for control@debbugs.gnu.org; Fri, 09 Apr 2010 03:35:29 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1O08kP-0006Ni-4J; Fri, 09 Apr 2010 03:35:25 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19390.55485.81568.1029@fencepost.gnu.org> Date: Fri, 9 Apr 2010 03:35:25 -0400 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: red X-Ran: _P%M'F]N\9Q2aZCt{>Ve4BpngVQ^T=%zY!%lq*~0!#Oczz4~0|fLx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.1 (-----) merge 2423 5908 reassign 5860 emacs,ns severity 5910 wishlist severity 5854 wishlist severity 5853 wishlist reassign 5851 emacs,cc-mode tags 5842 patch severity 5842 wishlist severity 5844 wishlist From unknown Wed Jun 25 00:26:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5851: 24.0.50; first character after opening quote often gets eaten in CC modes Resent-From: Paul Pogonyshev Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Tue, 22 Feb 2011 21:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5851 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: To: 5851@debbugs.gnu.org Received: via spool by 5851-submit@debbugs.gnu.org id=B5851.129841088525593 (code B ref 5851); Tue, 22 Feb 2011 21:42:02 +0000 Received: (at 5851) by debbugs.gnu.org; 22 Feb 2011 21:41:25 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Przz2-0006ek-SI for submit@debbugs.gnu.org; Tue, 22 Feb 2011 16:41:25 -0500 Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Przyz-0006eV-2u for 5851@debbugs.gnu.org; Tue, 22 Feb 2011 16:41:22 -0500 Received: (qmail invoked by alias); 22 Feb 2011 21:41:14 -0000 Received: from unknown (EHLO gonzo.localnet) [91.149.173.100] by mail.gmx.net (mp053) with SMTP; 22 Feb 2011 22:41:14 +0100 X-Authenticated: #16844820 X-Provags-ID: V01U2FsdGVkX1/PCOJ9IefPJN3LImrahIcyIbM/r/IfXydHz17Os7 D1zvlGa6hBBVWp From: Paul Pogonyshev Date: Tue, 22 Feb 2011 23:39:31 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.37-1-amd64; KDE/4.4.5; x86_64; ; ) References: <201004062321.07973.pogonyshev@gmx.net> In-Reply-To: <201004062321.07973.pogonyshev@gmx.net> MIME-Version: 1.0 Message-Id: <201102222339.31284.pogonyshev@gmx.net> Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.4 (/) 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. Paul From unknown Wed Jun 25 00:26:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5851: 24.0.50; first character after opening quote often gets eaten in CC modes 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 X-GNU-PR-Keywords: To: Paul Pogonyshev Cc: 5851@debbugs.gnu.org Received: via spool by 5851-submit@debbugs.gnu.org id=B5851.155811310621987 (code B ref 5851); Fri, 17 May 2019 17:12:02 +0000 Received: (at 5851) by debbugs.gnu.org; 17 May 2019 17:11:46 +0000 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 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 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) 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) From: npostavs@gmail.com References: <201004062321.07973.pogonyshev@gmx.net> <201102222339.31284.pogonyshev@gmx.net> Date: Fri, 17 May 2019 13:11:36 -0400 In-Reply-To: <201102222339.31284.pogonyshev@gmx.net> (Paul Pogonyshev's message of "Tue, 22 Feb 2011 23:39:31 +0200") Message-ID: <851s0xdn07.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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) From unknown Wed Jun 25 00:26:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5851: 24.0.50; first character after opening quote often gets eaten in CC modes References: <201004062321.07973.pogonyshev@gmx.net> 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 X-GNU-PR-Keywords: To: Noam Postavsky Cc: Alan Mackenzie , 5851@debbugs.gnu.org, Paul Pogonyshev Received: via spool by 5851-submit@debbugs.gnu.org id=B5851.157036183012170 (code B ref 5851); Sun, 06 Oct 2019 11:38:02 +0000 Received: (at 5851) by debbugs.gnu.org; 6 Oct 2019 11:37:10 +0000 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 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 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) MIME-Version: 1.0 From: Stefan Kangas Date: Sun, 6 Oct 2019 13:36:52 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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 From unknown Wed Jun 25 00:26:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5851: 24.0.50; first character after opening quote often gets eaten in CC modes Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 23 Nov 2019 23:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5851 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: To: Noam Postavsky Cc: Alan Mackenzie , Paul Pogonyshev , 5851@debbugs.gnu.org Received: via spool by 5851-submit@debbugs.gnu.org id=B5851.157455255331446 (code B ref 5851); Sat, 23 Nov 2019 23:43:01 +0000 Received: (at 5851) by debbugs.gnu.org; 23 Nov 2019 23:42:33 +0000 Received: from localhost ([127.0.0.1]:57978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iYf2s-0008B3-Bp for submit@debbugs.gnu.org; Sat, 23 Nov 2019 18:42:30 -0500 Received: from ted.gofardesign.uk ([67.225.143.91]:40206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iYf2k-0008Ai-Aq for 5851@debbugs.gnu.org; Sat, 23 Nov 2019 18:42:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=DRTM/dU2N8Lg/wo40DWb1hL9JYnE8For2MeksC+oYB4=; b=hCdxMLedLnjRQO4EbSgSQd8nAR nQb19mOl8rHovyJJC4WDzHNsKrHQVowvCsVi+r58tIDiUwQJt/7sM5GUgY2SE9+4tKdkUw8Ep3Pgq 69O5Z6EJAp04sET0mBe1lGAVc5IZqPjehyeShuIaAB3iaprM5QxM7jUPpapffWJ1sKq/UedXlZITd 5COwQmLiDr0TfO7b1Zk966rRg1YJ18P9q+xc3XkDZ67KUHNTN9q+QTl2FLMF1cgRqjjgsU0BsmExw 6l9VlFdItY4mJXDWibGZJxg2RVH+ZFC+UxrSMulXQNH0udDp5jmf5wasFt3a/ZU40zG/ySoEbZEev JoYHpKPA==; Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:54440 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1iYf2c-001gqq-5X; Sat, 23 Nov 2019 18:42:14 -0500 From: Stefan Kangas In-Reply-To: (Stefan Kangas's message of "Sun, 6 Oct 2019 13:36:52 +0200") References: <201004062321.07973.pogonyshev@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Date: Sun, 24 Nov 2019 00:42:12 +0100 Message-ID: <874kyukvmz.fsf@marxist.se> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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. 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 From unknown Wed Jun 25 00:26:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5851: 24.0.50; first character after opening quote often gets eaten in CC modes 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 X-GNU-PR-Keywords: To: Stefan Kangas Cc: Paul Pogonyshev , Noam Postavsky , 5851@debbugs.gnu.org Received: via spool by 5851-submit@debbugs.gnu.org id=B5851.157470837426758 (code B ref 5851); Mon, 25 Nov 2019 19:00:02 +0000 Received: (at 5851) by debbugs.gnu.org; 25 Nov 2019 18:59:34 +0000 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 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 Received: (qmail 97982 invoked by uid 3782); 25 Nov 2019 18:59:30 -0000 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 Received: (qmail 4522 invoked by uid 1000); 25 Nov 2019 18:59:26 -0000 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 Content-Disposition: inline In-Reply-To: <874kyukvmz.fsf@marxist.se> User-Agent: Mutt/1.10.1 (2018-07-13) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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). From unknown Wed Jun 25 00:26:13 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Paul Pogonyshev Subject: bug#5851: closed (Re: bug#5851: 24.0.50; first character after opening quote often gets eaten in CC modes) Message-ID: References: <87y2w3jkag.fsf@marxist.se> <201004062321.07973.pogonyshev@gmx.net> X-Gnu-PR-Message: they-closed 5851 X-Gnu-PR-Package: emacs,cc-mode Reply-To: 5851@debbugs.gnu.org Date: Tue, 26 Nov 2019 05:10:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1574745001-17979-1" This is a multi-part message in MIME format... ------------=_1574745001-17979-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #5851: 24.0.50; first character after opening quote often gets eaten in CC = modes which was filed against the emacs,cc-mode package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 5851@debbugs.gnu.org. --=20 5851: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D5851 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1574745001-17979-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 5851-done) by debbugs.gnu.org; 26 Nov 2019 05:09:40 +0000 Received: from localhost ([127.0.0.1]:50113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZT6a-0004fO-0x for submit@debbugs.gnu.org; Tue, 26 Nov 2019 00:09:40 -0500 Received: from ted.gofardesign.uk ([67.225.143.91]:55168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZT6X-0004fB-DQ for 5851-done@debbugs.gnu.org; Tue, 26 Nov 2019 00:09:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=vKeIbxF8Ymg8un3IFmQy0LRUF65KUE7nvRzGmja97ro=; b=aO3gdAFjFDAaWbj06bKTyIEnWW n79m/8DjYgN6WCj9uGCb3eIaInsYb3O9onzTCBe6/sRWVpDwvbDImB/phNXkKA3QmLOE3d/khzbdL sacFrKK6xrGHcqCh0EVcsOKKN09HofGzLJU4NJt77syBc3l25c5ogQulmKZNtcwsPQcuGu8ChM8ie EnSmcFHuvMZk54GHsfZExlcQ1r8elDCuzJxH23oqPKjBT+huM4k2tao33PSjyTdf4cV2QzbdxHxWQ TTmyvJPvRqMzSDHZgY8cHVMTTxYpd7DL8Waf86GWAMSPoi/lArr2tcoVlbrN4xW2w4qZOKHunb9yS aR9MJ51w==; Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:41146 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1iZT6Q-000xVR-9t; Tue, 26 Nov 2019 00:09:30 -0500 From: Stefan Kangas To: Alan Mackenzie Subject: Re: bug#5851: 24.0.50; first character after opening quote often gets eaten in CC modes In-Reply-To: <20191125185926.GB4496@ACM> (Alan Mackenzie's message of "Mon, 25 Nov 2019 18:59:26 +0000") References: <201004062321.07973.pogonyshev@gmx.net> <874kyukvmz.fsf@marxist.se> <20191125185926.GB4496@ACM> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Date: Tue, 26 Nov 2019 06:09:27 +0100 Message-ID: <87y2w3jkag.fsf@marxist.se> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 5851-done Cc: 5851-done@debbugs.gnu.org, Noam Postavsky , Paul Pogonyshev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Alan, Alan Mackenzie writes: >> 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. Thanks, I'm therefore closing the bug now. Best regards, Stefan Kangas ------------=_1574745001-17979-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 6 Apr 2010 20:23:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzFIa-00014f-0q for submit@debbugs.gnu.org; Tue, 06 Apr 2010 16:23:00 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzFIX-00014a-Ui for submit@debbugs.gnu.org; Tue, 06 Apr 2010 16:22:59 -0400 Received: from lists.gnu.org ([199.232.76.165]:60351) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NzFIT-0003xe-Fd for submit@debbugs.gnu.org; Tue, 06 Apr 2010 16:22:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NzFIS-0004FJ-VP for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2010 16:22:53 -0400 Received: from [140.186.70.92] (port=60990 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzFIR-0004EO-8b for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2010 16:22:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_WEB, T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzFIP-0001X5-UG for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2010 16:22:51 -0400 Received: from mail.gmx.net ([213.165.64.20]:51367) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NzFIO-0001Wm-T9 for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2010 16:22:49 -0400 Received: (qmail invoked by alias); 06 Apr 2010 20:22:45 -0000 Received: from unknown (EHLO gonzo.localnet) [91.149.173.2] by mail.gmx.net (mp058) with SMTP; 06 Apr 2010 22:22:45 +0200 X-Authenticated: #16844820 X-Provags-ID: V01U2FsdGVkX1+XUEJHuBqXuAORGEmJvDwUBFA2b/HNVU6tmFf34g Q3m2TGaxJ3QRGp From: Paul Pogonyshev To: bug-gnu-emacs@gnu.org Subject: 24.0.50; first character after opening quote often gets eaten in CC modes Date: Tue, 6 Apr 2010 23:21:07 +0300 User-Agent: KMail/1.12.4 (Linux/2.6.29-2-686; KDE/4.3.4; i686; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201004062321.07973.pogonyshev@gmx.net> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.44 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': As can be seen from 'recent input' section below, I typed a string in C++ mode like this: "{} However, due to an error in the Lisp code (byte-code: Invalid search bound (wrong side of point)), it ended up looking like this: "} i.e. the very first character after the opening quote got eaten and never inserted into the buffer. This does not happen always, but often enough. It has been happening for quite some time now, i.e. it is not something introduced very recently. Paul If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/local/share/emacs/24.0.50/etc/DEBUG. In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.18.9) of 2010-04-04 on gonzo Windowing system distributor `The X.Org Foundation', version 11.0.10706000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: C++/l Minor modes in effect: which-function-mode: t show-paren-mode: t server-mode: t auto-image-file-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: a r & * SPC d e l i m i t e r s . SPC , SPC C-e d e M-/ [ 0 ] C-M-k C-s C-s C-g C-M-k d e M-/ [ 1 ] M-/ [ 0 ] C-M-k C-M-k d e M-/ [ 1 ] C-x C-s C-s p r i n t _ r C-w C-s C-s C-s " [ ] " , SPC C-x C-s C-x C-f C-g C-x C-f s e t " { } " , SPC C-x C-s C-x C-f m a C-SPC C-w " { } { } " , SPC C-x C-s c o n s t SPC c h a r * SPC M-/ , SPC C-x C-s C-e " { } " , SPC y " { } M-x r e p o r Recent messages: Wrote /home/paul/mct/tests/map.cpp (No files need saving) Compilation exited abnormally with code 2 Saving file /home/paul/mct/tests/common.hpp... Wrote /home/paul/mct/tests/common.hpp (No files need saving) Compilation exited abnormally with code 2 Saving file /home/paul/mct/tests/map.cpp... Wrote /home/paul/mct/tests/map.cpp Compilation exited abnormally with code 2 byte-code: Invalid search bound (wrong side of point) Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr message sendmail rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug grep newcomment dabbrev multi-isearch vc-bzr sha1 hex-util cc-mode cc-fonts easymenu cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs compile comint ring which-func imenu eldoc saveplace paren server ido cus-start cus-load thumbs image-file dired regexp-opt advice help-fns advice-preload tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) ------------=_1574745001-17979-1--