[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
23.0.60; whitespace.el mishap
From: |
Michael Welsh Duggan |
Subject: |
23.0.60; whitespace.el mishap |
Date: |
Tue, 05 Feb 2008 16:33:00 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
Given the c buffer:
int main()
{
if (1) {
x = foo;
}
return 0;
}
`M-x whitespace-cleanup' will result in:
int main()
{
if (1) {
x= foo;
}
return 0;
}
This is because `whitespace-indentation-regexp' includes a trailing
"[^\n\t]", which matches the x. After `re-search-forward' of
`whitespace-cleanup-region' the point is now after the `x'. In order
for the subsequent `delete-horizontal-space' to work, a
(forward-char -1) should probably be done, before the
`current-indentation' call.
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'.
If you would like to further debug the crash, please read the file
/home/mwd/share/emacs/23.0.60/etc/DEBUG for instructions.
In GNU Emacs 23.0.60.2 (i686-pc-linux-gnu, GTK+ Version 2.10.4)
of 2008-02-05 on maru.green.cert.org
Windowing system distributor `The X.Org Foundation', version 11.0.70101000
configured using `configure '--prefix=/home/mwd'
'--without-toolkit-scroll-bars' '--with-gif=no''
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: @im=none
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
Major mode: C/l
Minor modes in effect:
shell-dirtrack-mode: t
display-time-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
global-auto-composition-mode: t
auto-composition-mode: t
auto-compression-mode: t
line-number-mode: t
abbrev-mode: t
Recent input:
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n <escape> > C-w C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-e C-b C-b
C-b C-b C-b SPC C-x C-s C-b C-b SPC C-x C-s C-f C-d
C-x C-s C-a C-SPC C-n <switch-frame> q C-x 4 b <return>
C-p C-SPC C-n M-x M-p <return> <switch-frame> SPC <switch-frame>
SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC
SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC
SPC SPC SPC SPC SPC q <switch-frame> C-p C-p C-e C-p
C-e <return> <tab> ( f o r w a r d - c j h a <backspace>
<backspace> <backspace> h a r SPC - 1 ) C-x C-s C-u
C-M-x <switch-frame> C-_ C-n <backspace> C-p C-a C-SPC
C-n M-x M-p <return> <switch-frame> SPC C-_ <switch-frame>
SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC
SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC
SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC
SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC
SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC
SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC
SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC
<switch-frame> C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
<switch-frame> M-x r e p o r t - e m a c s - 0 <backspace>
b <tab> <return>
Recent messages:
Result: nil
Result: nil
[2 times]
Result: #<marker at 236 in fooo.c>
Result: #<marker in no buffer>
Result: #<marker in no buffer>
--
Michael Welsh Duggan
(address@hidden)
- 23.0.60; whitespace.el mishap,
Michael Welsh Duggan <=
- Re: 23.0.60; whitespace.el mishap, Rajesh Vaidheeswarran, 2008/02/05
- Re: 23.0.60; whitespace.el mishap, Michael Welsh Duggan, 2008/02/06
- Re: 23.0.60; whitespace.el mishap, Rajesh Vaidheeswarran, 2008/02/06
- Re: 23.0.60; whitespace.el mishap, Glenn Morris, 2008/02/07
- Re: 23.0.60; whitespace.el mishap, Miles Bader, 2008/02/07
- Re: 23.0.60; whitespace.el mishap, Rajesh Vaidheeswarran, 2008/02/07
- Re: 23.0.60; whitespace.el mishap, Richard Stallman, 2008/02/07
- Re: 23.0.60; whitespace.el mishap, Vinicius Jose Latorre, 2008/02/08
- Re: 23.0.60; whitespace.el mishap, Vinicius Jose Latorre, 2008/02/15
- Re: 23.0.60; whitespace.el mishap, Miles Bader, 2008/02/15