all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 23.0.60; whitespace.el mishap
@ 2008-02-05 21:33 Michael Welsh Duggan
  2008-02-06  4:53 ` Rajesh Vaidheeswarran
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Michael Welsh Duggan @ 2008-02-05 21:33 UTC (permalink / raw)
  To: emacs-pretest-bug

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)




^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2008-03-01 19:00 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-05 21:33 23.0.60; whitespace.el mishap Michael Welsh Duggan
2008-02-06  4:53 ` 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

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.