From unknown Sun Aug 17 22:10:43 2025 X-Loop: don@donarmstrong.com Subject: bug#1202: stuck undo after cc-mode fill Reply-To: Daniel Colascione , 1202@debbugs.gnu.org Resent-From: Daniel Colascione Original-Sender: Daniel Colascione Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 19 Oct 2008 09:15:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1202 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122440715916827 (code B ref -1); Sun, 19 Oct 2008 09:15:02 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.2 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 19 Oct 2008 09:05:59 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9J95toL016821 for ; Sun, 19 Oct 2008 02:05:57 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KrUEV-00086V-Br for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2008 05:05:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KrUET-000852-FV for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2008 05:05:54 -0400 Received: from [199.232.76.173] (port=48830 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KrUET-00084w-6t for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2008 05:05:53 -0400 Received: from vpn.merrillpress.com ([64.61.107.78]:47421) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KrUES-00027O-PB for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2008 05:05:53 -0400 Received: from pluto.merrillpress.net ([10.136.5.5]) by mars.merrillpress.net with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1KrUEP-0006vB-00 for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2008 05:05:49 -0400 Received: from danc by pluto.merrillpress.net with local (Exim 4.69) (envelope-from ) id 1KrUEO-0005v0-JO for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2008 05:05:48 -0400 From: Daniel Colascione To: bug-gnu-emacs@gnu.org Message-Id: Sender: Daniel Colascione Date: Sun, 19 Oct 2008 05:05:48 -0400 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) ms 1. Start emacs with emacs -q --no-site-file 2. Blank the *scratch* buffer, put it in c-mode 3. type asdf 4. C-/ will undo it 5. type asdf again 6. type M-q 7. C-/ does nothing no matter how many times it's pressed 8. make another change 9. now both changes can be undone I can reproduce this behavior on the latest CVS. Commenting out the undo bit of c-mask-paragraph fixes the problem. It seems like undo choked on nil, position, nil in the undo list. In GNU Emacs 22.2.1 (i386-redhat-linux-gnu, GTK+ Version 2.12.9) of 2008-05-23 on xenbuilder4.fedora.phx.redhat.com Windowing system distributor `The X.Org Foundation', version 11.0.10300000 configured using `configure '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-x-toolkit=gtk' '--with-sound' '--with-toolkit-scroll-bars' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'target_alias=i386-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'' 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 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: C/l Minor modes in effect: which-function-mode: t cua-mode: t global-hi-lock-mode: t hi-lock-mode: t show-paren-mode: t savehist-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: d f a C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z f a f a s f C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-x k x C-f C-x C-f C-g C-x C-f / m t m p / f o o . c C-h c C-z C-x b C-h c C-z M-x C-g C-x b C-g C-x C-f ~ / e m a / e m a c s / m a i C-s u n d o C-x C-e C-h c C-z C-x b C-h c C-z C-x k C-x b c C-z C-h c C-z M-x l o a c a l - s e t - k e y C-z a d v u C-h c C-z C-x b C-x b C-z M-q C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z M-x s u b m t i t - e m e m a c s r e p o r t - e Recent messages: C-z runs the command advertised-undo byte-code: Beginning of buffer [2 times] Undo! [34 times] Redo! Undo! [3 times] Redo! Undo! undo-more: No further undo information call-interactively: Text is read-only [4 times] Loading emacsbug...done From unknown Sun Aug 17 22:10:43 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Daniel Colascione Subject: bug#1202: closed (Re: bug#1202: stuck undo after cc-mode fill) Message-ID: References: X-Gnu-PR-Message: they-closed 1202 X-Gnu-PR-Package: emacs,cc-mode Reply-To: 1202@debbugs.gnu.org Date: Mon, 03 Oct 2011 19:31:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1317670263-4913-1" This is a multi-part message in MIME format... ------------=_1317670263-4913-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #1202: stuck undo after cc-mode fill 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 1202@debbugs.gnu.org. --=20 1202: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1202 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1317670263-4913-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 1202-done) by debbugs.gnu.org; 3 Oct 2011 19:30:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RAoDS-0001GB-5W for submit@debbugs.gnu.org; Mon, 03 Oct 2011 15:30:19 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RAoDP-0001G3-Va for 1202-done@debbugs.gnu.org; Mon, 03 Oct 2011 15:30:17 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RAoC2-00026Z-Oa; Mon, 03 Oct 2011 15:28:50 -0400 From: Glenn Morris To: 1202-done@debbugs.gnu.org Subject: Re: bug#1202: stuck undo after cc-mode fill References: X-Spook: JFK AUTODIN EuroFed cryptographic kilderkin class X-Ran: `*Xa6^`}YfH[;onaNFmGt]ud.Gn,Yi}w8SF+"oDH")qz/r1Y*O)jA#289%TVdo6>XoGk7O X-Hue: red X-Attribution: GM Date: Mon, 03 Oct 2011 15:28:50 -0400 In-Reply-To: (Daniel Colascione's message of "Sun, 19 Oct 2008 05:05:48 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: 1202-done 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: -4.8 (----) Version: 23.1 I can reproduce this in 22.3, but not in 23.1 onwards, so it looks like it was fixed. ------------=_1317670263-4913-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From danc@merrillpress.com Sun Oct 19 02:05:59 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.2 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 19 Oct 2008 09:05:59 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9J95toL016821 for ; Sun, 19 Oct 2008 02:05:57 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KrUEV-00086V-Br for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2008 05:05:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KrUET-000852-FV for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2008 05:05:54 -0400 Received: from [199.232.76.173] (port=48830 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KrUET-00084w-6t for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2008 05:05:53 -0400 Received: from vpn.merrillpress.com ([64.61.107.78]:47421) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KrUES-00027O-PB for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2008 05:05:53 -0400 Received: from pluto.merrillpress.net ([10.136.5.5]) by mars.merrillpress.net with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1KrUEP-0006vB-00 for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2008 05:05:49 -0400 Received: from danc by pluto.merrillpress.net with local (Exim 4.69) (envelope-from ) id 1KrUEO-0005v0-JO for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2008 05:05:48 -0400 From: Daniel Colascione To: bug-gnu-emacs@gnu.org Subject: stuck undo after cc-mode fill Message-Id: Sender: Daniel Colascione Date: Sun, 19 Oct 2008 05:05:48 -0400 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) ms 1. Start emacs with emacs -q --no-site-file 2. Blank the *scratch* buffer, put it in c-mode 3. type asdf 4. C-/ will undo it 5. type asdf again 6. type M-q 7. C-/ does nothing no matter how many times it's pressed 8. make another change 9. now both changes can be undone I can reproduce this behavior on the latest CVS. Commenting out the undo bit of c-mask-paragraph fixes the problem. It seems like undo choked on nil, position, nil in the undo list. In GNU Emacs 22.2.1 (i386-redhat-linux-gnu, GTK+ Version 2.12.9) of 2008-05-23 on xenbuilder4.fedora.phx.redhat.com Windowing system distributor `The X.Org Foundation', version 11.0.10300000 configured using `configure '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-x-toolkit=gtk' '--with-sound' '--with-toolkit-scroll-bars' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'target_alias=i386-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'' 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 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: C/l Minor modes in effect: which-function-mode: t cua-mode: t global-hi-lock-mode: t hi-lock-mode: t show-paren-mode: t savehist-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: d f a C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z f a f a s f C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-x k x C-f C-x C-f C-g C-x C-f / m t m p / f o o . c C-h c C-z C-x b C-h c C-z M-x C-g C-x b C-g C-x C-f ~ / e m a / e m a c s / m a i C-s u n d o C-x C-e C-h c C-z C-x b C-h c C-z C-x k C-x b c C-z C-h c C-z M-x l o a c a l - s e t - k e y C-z a d v u C-h c C-z C-x b C-x b C-z M-q C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z C-z M-x s u b m t i t - e m e m a c s r e p o r t - e Recent messages: C-z runs the command advertised-undo byte-code: Beginning of buffer [2 times] Undo! [34 times] Redo! Undo! [3 times] Redo! Undo! undo-more: No further undo information call-interactively: Text is read-only [4 times] Loading emacsbug...done ------------=_1317670263-4913-1--