From unknown Mon Aug 18 08:56:03 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#1202 <1202@debbugs.gnu.org> To: bug#1202 <1202@debbugs.gnu.org> Subject: Status: stuck undo after cc-mode fill Reply-To: bug#1202 <1202@debbugs.gnu.org> Date: Mon, 18 Aug 2025 15:56:03 +0000 retitle 1202 stuck undo after cc-mode fill reassign 1202 emacs,cc-mode submitter 1202 Daniel Colascione severity 1202 normal thanks 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 From rgm@gnu.org Sun Oct 19 13:51:37 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=-9.6 required=4.0 tests=AWL,BAYES_00,MISSING_SUBJECT, NOSUBJECT,RCVD_IN_DNSWL_MED,VALID_BTS_CONTROL,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 19 Oct 2008 20:51:37 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9JKpYMk029665 for ; Sun, 19 Oct 2008 13:51:35 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KrfCq-0003Xe-FB; Sun, 19 Oct 2008 16:48:56 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18683.40248.365279.84942@fencepost.gnu.org> Date: Sun, 19 Oct 2008 16:48:56 -0400 From: Glenn Morris To: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: white X-Ran: 6$0#;K|utiT[c0=|=/haai*'}t]<\tQMs;ma+0-3']Z(G1oe;A}YN=!fXk?Jp^:EG]iO!s X-Debbugs-No-Ack: yes reassign 1203 spam reassign 1202 emacs,cc-mode From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 03 15:30:20 2011 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. From unknown Mon Aug 18 08:56:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 01 Nov 2011 11:24:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator