all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Unknown <unknown@unknown.invalid>
To: emacs-pretest-bug@gnu.org
Subject: Bug: 22.1.50.3; re-search-backward disobeys greedy regexps
Date: Wed, 15 Aug 2007 19:44:11 -0300 (BRT)	[thread overview]
Message-ID: <20070815224411.26A366D535@edf.icmc.usp.br> (raw)

Hi

The funcion re-search-backward does not search greedy regexps (if
non-greedy are matching).

Test case:

1. $ emacs -q
2. type "bbbbb" and ENTER
3. M-x re-search-backward b+ ENTER

Result: the point goes before the last b

Expected: the point should go to the beginning of the match, ithat is,
before the bbbbb.

The result is the same with the RE "b+?"

The counterpart function re-search-forward behaves normally in both cases.

Miguel Frasson.



In GNU Emacs 22.1.50.3 (i686-pc-linux-gnu, GTK+ Version 2.10.11)
 of 2007-08-15 on edf
Windowing system distributor `The X.Org Foundation', version 11.0.70200000
configured using `configure  '--with-gtk''

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: pt_BR.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  show-paren-mode: t
  server-mode: t
  pc-selection-mode: t
  delete-selection-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<down-mouse-1> <mouse-1> M-x e m a c s - v e r <tab> 
<return> a b b b b <backspace> <backspace> <backspace> 
<backspace> <backspace> A b b b b b b <home> <delete> 
<down> <return> <return> <return> <return> <up> <up> 
<up> <up> <down> <down> <down> b b b b b b <up> <up> 
<return> <delete> <return> <up> p <backspace> P M-x 
r e - s e a r <tab> f o r <tab> <return> b + <return> 
<up> <up> M-x r e - s e a r <tab> b a c k <tab> <return> 
b + <return> <down> <down> C-h f r e - s e a <tab> 
b a <tab> <return> C-x 1 M-x r e - s e <tab> f o <tab> 
<return> b + ? <return> <up> <up> M-x r e - s e <tab> 
b a <tab> <return> b + ? <return> <home> <return> <up> 
<delete> <down> <down> <down> <down> <up> <up> <up> 
<down> M-x e m <tab> a <tab> C-g <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <menu-bar> <help-menu> <report-emacs-b
ug>

Recent messages:
Loading paren...done
Loading diary-lib...done
Loading /home/frasson/.session...done
For information about the GNU system and GNU/Linux, type C-h C-p.
GNU Emacs 22.1.50.3 (i686-pc-linux-gnu, GTK+ Version 2.10.11) of 2007-08-15 on edf
line-move-1: End of buffer
Type C-x 1 to remove help window.  
Making completion list...
Quit
Loading emacsbug...done

             reply	other threads:[~2007-08-15 22:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-15 22:44 Unknown [this message]
2007-08-16  0:49 ` Bug: 22.1.50.3; re-search-backward disobeys greedy regexps Stefan Monnier

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=20070815224411.26A366D535@edf.icmc.usp.br \
    --to=unknown@unknown.invalid \
    --cc=emacs-pretest-bug@gnu.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 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.