From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; whitespace.el mishap Date: Wed, 06 Feb 2008 09:33:07 -0500 Message-ID: References: <47A93D3A.90308@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202315953 10734 80.91.229.12 (6 Feb 2008 16:39:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Feb 2008 16:39:13 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: Rajesh Vaidheeswarran Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 06 17:39:34 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JMnII-0001fG-EK for ged-emacs-devel@m.gmane.org; Wed, 06 Feb 2008 17:38:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMnHq-00024A-3l for ged-emacs-devel@m.gmane.org; Wed, 06 Feb 2008 11:38:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JMlKw-0003nx-QL for emacs-devel@gnu.org; Wed, 06 Feb 2008 09:33:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JMlKw-0003la-1o for emacs-devel@gnu.org; Wed, 06 Feb 2008 09:33:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMlKv-0003lJ-JP for emacs-devel@gnu.org; Wed, 06 Feb 2008 09:33:17 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JMlKv-0007rG-Cg for emacs-devel@gnu.org; Wed, 06 Feb 2008 09:33:17 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JMlKv-00010b-1G for emacs-pretest-bug@gnu.org; Wed, 06 Feb 2008 09:33:17 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JMlKr-0007qk-TE for emacs-pretest-bug@gnu.org; Wed, 06 Feb 2008 09:33:16 -0500 Original-Received: from beniaminus.red.cert.org ([192.88.209.10]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JMlKr-0007qW-IZ; Wed, 06 Feb 2008 09:33:13 -0500 Original-Received: from villemus.indigo.cert.org (villemus.indigo.cert.org [10.60.10.5]) by beniaminus.red.cert.org (8.13.1/8.13.1/2.24) with ESMTP id m16EX8gX007722; Wed, 6 Feb 2008 09:33:08 -0500 Original-Received: from maru.green.cert.org (maru.green.cert.org [10.21.10.16]) by villemus.indigo.cert.org (8.12.11.20060308/8.12.11/2.69) with ESMTP id m16EX8lO010910; Wed, 6 Feb 2008 09:33:08 -0500 Original-Received: (from mwd@localhost) by maru.green.cert.org (8.13.8/8.13.8/Submit/1.6) id m16EX7rv015778; Wed, 6 Feb 2008 09:33:07 -0500 X-Authentication-Warning: maru.green.cert.org: mwd set sender to mwd@cert.org using -f In-Reply-To: <47A93D3A.90308@gnu.org> (Rajesh Vaidheeswarran's message of "Tue, 05 Feb 2008 23:53:14 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Wed, 06 Feb 2008 11:37:50 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:88341 gmane.emacs.pretest.bugs:20902 Archived-At: Rajesh Vaidheeswarran writes: > I'll check out the bug. Thanks for the report. > > But, I'm a bit confused. Does this crash emacs? No, sorry. I was in a rush and forgot to elide the crash portion of the default bug reporting error message. > Michael Welsh Duggan wrote: >> 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. >> >> 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 > 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 q C-x 4 b C-p C-SPC >> C-n M-x M-p 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 q C-p C-p >> C-e C-p >> C-e ( f o r w a r d - c j h a >> h a r SPC - 1 ) C-x C-s C-u >> C-M-x C-_ C-n C-p C-a C-SPC C-n M-x M-p >> SPC C-_ 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 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 >> M-x r e p o r t - e m a c s - 0 b >> >> >> Recent messages: >> Result: nil >> >> Result: nil >> [2 times] >> Result: # >> >> Result: # >> >> Result: # >> >> >> > -- Michael Welsh Duggan (mwd@cert.org)