unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Vinicius Jose Latorre <viniciusjl@ig.com.br>
To: Michael Welsh Duggan <mwd@cert.org>
Cc: emacs-pretest-bug@gnu.org
Subject: Re: 23.0.60; whitespace.el mishap
Date: Sat, 16 Feb 2008 00:32:12 -0300	[thread overview]
Message-ID: <47B6593C.5060903@ig.com.br> (raw)
In-Reply-To: <tntr6frks1f.fsf@maru.green.cert.org>


> 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.





  parent reply	other threads:[~2008-02-16  3:32 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47B6593C.5060903@ig.com.br \
    --to=viniciusjl@ig.com.br \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=mwd@cert.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).