GNU bug report logs - #1202
stuck undo after cc-mode fill

Previous Next

Packages: emacs, cc-mode;

Reported by: Daniel Colascione <dan.colascione <at> gmail.com>

Date: Sun, 19 Oct 2008 09:15:02 UTC

Severity: normal

Fixed in version 23.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Daniel Colascione <dan.colascione <at> gmail.com>
Subject: bug#1202: closed (Re: bug#1202: stuck undo after cc-mode fill)
Date: Mon, 03 Oct 2011 19:31:03 +0000
[Message part 1 (text/plain, inline)]
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 <at> debbugs.gnu.org.

-- 
1202: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1202
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 1202-done <at> debbugs.gnu.org
Subject: Re: bug#1202: stuck undo after cc-mode fill
Date: Mon, 03 Oct 2011 15:28:50 -0400
Version: 23.1

I can reproduce this in 22.3, but not in 23.1 onwards, so it looks like
it was fixed.

[Message part 3 (message/rfc822, inline)]
From: Daniel Colascione <dan.colascione <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: stuck undo after cc-mode fill
Date: Sun, 19 Oct 2008 05:05:48 -0400
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:
<down> <return> 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 <up> <up> <down> 
<down> <down> <down> <down> <return> <return> <return> 
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 
<help-echo> C-x k x C-f C-x C-f <up> <up> <up> <up> 
<down> <down> <up> <up> <up> C-g C-x C-f / m <backspace> 
t m p / f o o . c <return> C-h c C-z C-x b <return> 
C-h c C-z M-x C-g C-x b C-g C-x C-f ~ / <backspace> 
e m a <backspace> <backspace> <backspace> / e m a c 
s / m a i <tab> <return> C-s u n d o <end> C-x C-e 
C-h c C-z C-x b <return> C-h c C-z C-x k C-x b <return> 
c C-z C-h c C-z M-x l o a <backspace> c a l - s e t 
- k e y <return> C-z a d v <tab> u <tab> <return> C-h 
c C-z C-x b <return> C-x b <return> <down-mouse-4> 
<mouse-4> <double-down-mouse-4> <double-mouse-4> <down> 
<tab> <down> <tab> <down> <tab> C-z <tab> 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 <down> <down> <return> 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 <backspace> i t - 
e m <tab> <backspace> <backspace> <tab> <tab> <tab> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> e m a c s <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
r e p o r t - e <tab> <return>

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




This bug report was last modified 13 years and 293 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.