[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug: 22.1.50.3; re-search-backward disobeys greedy regexps
From: |
Miguel Frasson |
Subject: |
Bug: 22.1.50.3; re-search-backward disobeys greedy regexps |
Date: |
Wed, 15 Aug 2007 19:44:11 -0300 (BRT) |
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
- Bug: 22.1.50.3; re-search-backward disobeys greedy regexps,
Miguel Frasson <=