all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Teemu Likonen <tlikonen@iki.fi>, 3424@emacsbugs.donarmstrong.com
Cc: bug-gnu-emacs@gnu.org
Subject: bug#3424: align-regexp: Infinite loop with default regexp
Date: Sat, 30 May 2009 20:24:43 +0200	[thread overview]
Message-ID: <e01d8a50905301124s4fe57e3dn1872ea760fd0034f@mail.gmail.com> (raw)
In-Reply-To: <87my8upk47.fsf@iki.fi>

On Sat, May 30, 2009 at 7:37 PM, Teemu Likonen <tlikonen@iki.fi> wrote:
> The align-regexp command enters infinite loop when it is used with the
> default regexp and with REPEAT argument. It's seems to be because the
> regexp \s-* matches also zero-length strings.
>
> Steps to reproduce:
>
>  1. Put the following line to the *scratch* buffer:
>
>        foo bar
>
>  2. Put the line inside a region
>
>  3. Type command:
>
>        C-u M-x align-regexp RET \(\s-*\) RET 1 RET 1 RET y
>
>  4. Loop infinitely.

This does not happen for me with the latest pretest Emacs 23. Have you
tested there?


> I suggest changing the default regexp to \(\s-+\), like the attached
> patch illustrates.
>
>






  reply	other threads:[~2009-05-30 18:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87ljnv5pl7.fsf@iki.fi>
2009-05-30 17:37 ` bug#3424: align-regexp: Infinite loop with default regexp Teemu Likonen
2009-05-30 18:24   ` Lennart Borgman [this message]
2009-05-30 18:46     ` Teemu Likonen
2009-05-30 18:47       ` Lennart Borgman
2009-06-14  5:55   ` bug#3424: marked as done (align-regexp: Infinite loop with default regexp) Emacs bug Tracking System

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

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

  git send-email \
    --in-reply-to=e01d8a50905301124s4fe57e3dn1872ea760fd0034f@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=3424@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=tlikonen@iki.fi \
    /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 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.