From: Michael Welsh Duggan <mwd@cert.org>
To: emacs-pretest-bug@gnu.org
Subject: 23.0.60; whitespace.el mishap
Date: Tue, 05 Feb 2008 16:33:00 -0500 [thread overview]
Message-ID: <tntr6frks1f.fsf@maru.green.cert.org> (raw)
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
(mwd@cert.org)
next reply other threads:[~2008-02-05 21:33 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-05 21:33 Michael Welsh Duggan [this message]
2008-02-06 4:53 ` 23.0.60; whitespace.el mishap Rajesh Vaidheeswarran
2008-02-06 14:33 ` Michael Welsh Duggan
2008-02-07 3:35 ` Rajesh Vaidheeswarran
2008-02-07 5:07 ` Glenn Morris
2008-02-07 6:03 ` Miles Bader
2008-02-07 15:27 ` Rajesh Vaidheeswarran
2008-02-08 4:15 ` Richard Stallman
2008-02-08 12:04 ` Vinicius Jose Latorre
2008-02-16 3:28 ` Vinicius Jose Latorre
2008-02-16 3:04 ` Miles Bader
2008-02-16 20:47 ` Vinicius Jose Latorre
2008-02-17 13:22 ` Richard Stallman
2008-02-20 4:24 ` Rajesh Vaidheeswarran
2008-02-20 4:27 ` Miles Bader
2008-02-20 4:41 ` Rajesh Vaidheeswarran
2008-02-17 13:22 ` Richard Stallman
2008-02-17 14:40 ` Vinicius Jose Latorre
2008-02-16 3:32 ` Vinicius Jose Latorre
2008-03-01 19:00 ` Vinicius Jose Latorre
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tntr6frks1f.fsf@maru.green.cert.org \
--to=mwd@cert.org \
--cc=emacs-pretest-bug@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.