From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vinicius Jose Latorre Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; whitespace.el mishap Date: Sat, 16 Feb 2008 00:32:12 -0300 Message-ID: <47B6593C.5060903@ig.com.br> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1203128968 10668 80.91.229.12 (16 Feb 2008 02:29:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Feb 2008 02:29:28 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: Michael Welsh Duggan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 16 03:29:51 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 1JQCoH-0002yd-PZ for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2008 03:29:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQCnn-0005oI-JG for ged-emacs-devel@m.gmane.org; Fri, 15 Feb 2008 21:29:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQCni-0005nH-VP for emacs-devel@gnu.org; Fri, 15 Feb 2008 21:29:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQCnh-0005mo-5F for emacs-devel@gnu.org; Fri, 15 Feb 2008 21:29:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQCng-0005ml-Vj for emacs-devel@gnu.org; Fri, 15 Feb 2008 21:29:13 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JQCng-0003FX-F2 for emacs-devel@gnu.org; Fri, 15 Feb 2008 21:29:12 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JQCng-00005z-6t for emacs-pretest-bug@gnu.org; Fri, 15 Feb 2008 21:29:12 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JQCnd-0003El-46 for emacs-pretest-bug@gnu.org; Fri, 15 Feb 2008 21:29:12 -0500 Original-Received: from ag-out-0708.google.com ([72.14.246.244]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JQCnc-0003Ed-TE for emacs-pretest-bug@gnu.org; Fri, 15 Feb 2008 21:29:09 -0500 Original-Received: by ag-out-0708.google.com with SMTP id 23so566287agd.6 for ; Fri, 15 Feb 2008 18:29:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; bh=IRIY+oU+jXKc4ugddWk6WsQMHZCewbgNtzQYKY0LkjY=; b=HfUR2iyOrmS2A6iR8xDIsNRsZbtwm/QNl46E0RXnGnvt/NQXYK+53vy5X1rYk6myi4CL8TZ9f4VGeU2aVb7iWgWtr+VZ3kdSvWRySg6rWEmzXxu5GgFBcbEN4IgTWSqMDtsuTJtZegHLLTkTiCBe0mlqMbAZVETvwp0IgrgY2Is= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=B14LiaDsNPeUCLEFf5r4u0RFjotH9IGarYQecto8SZl6QEv6mSxISErWa0ewPLj1d/3IUwfFYoUvuZOLzjFlFKcOklAKHXmf4+nosIkEr4LBBkPWMjwbztXzSHqCOtr6AhxoaHg0oFxgj9dmk07JddHhKpEkEK18gi1vVpCCQHY= Original-Received: by 10.101.67.11 with SMTP id u11mr5228388ank.49.1203128948437; Fri, 15 Feb 2008 18:29:08 -0800 (PST) Original-Received: from ?192.168.0.100? ( [201.82.15.40]) by mx.google.com with ESMTPS id c37sm9328551ana.9.2008.02.15.18.29.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 15 Feb 2008 18:29:07 -0800 (PST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080201 SeaMonkey/1.1.8 In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:89211 gmane.emacs.pretest.bugs:21128 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. > Yes, I can reproduce the problem and I'll send a fix sooner.