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: 23.0.60; whitespace.el mishap Date: Tue, 05 Feb 2008 16:33:00 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202270523 31518 80.91.229.12 (6 Feb 2008 04:02:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Feb 2008 04:02:03 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 06 05:02:25 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 1JMbUO-0004JK-QE for ged-emacs-devel@m.gmane.org; Wed, 06 Feb 2008 05:02:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMbTw-0003Uu-J1 for ged-emacs-devel@m.gmane.org; Tue, 05 Feb 2008 23:01:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JMVPp-0002yD-0Y for emacs-devel@gnu.org; Tue, 05 Feb 2008 16:33:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JMVPo-0002xn-Ah for emacs-devel@gnu.org; Tue, 05 Feb 2008 16:33:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMVPo-0002xi-6d for emacs-devel@gnu.org; Tue, 05 Feb 2008 16:33:16 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JMVPo-0002BA-5V for emacs-devel@gnu.org; Tue, 05 Feb 2008 16:33:16 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JMVPn-0003Sz-Gh for emacs-pretest-bug@gnu.org; Tue, 05 Feb 2008 16:33:15 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JMVPk-0002AQ-O5 for emacs-pretest-bug@gnu.org; Tue, 05 Feb 2008 16:33:15 -0500 Original-Received: from franclinus.red.cert.org ([192.88.209.16]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JMVPk-0002A6-CC for emacs-pretest-bug@gnu.org; Tue, 05 Feb 2008 16:33:12 -0500 Original-Received: from villemus.indigo.cert.org (villemus.indigo.cert.org [10.60.10.5]) by franclinus.red.cert.org (8.13.1/8.13.1/2.24) with ESMTP id m15LX0lj021859 for ; Tue, 5 Feb 2008 16:33:00 -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 m15LX0wM026641 for ; Tue, 5 Feb 2008 16:33:00 -0500 Original-Received: (from mwd@localhost) by maru.green.cert.org (8.13.8/8.13.8/Submit/1.6) id m15LX05R030770; Tue, 5 Feb 2008 16:33:00 -0500 X-Authentication-Warning: maru.green.cert.org: mwd set sender to mwd@cert.org using -f 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: Tue, 05 Feb 2008 23:01:53 -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:88320 gmane.emacs.pretest.bugs:20895 Archived-At: 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 > 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)