From: Marco Wahl <marcowahlsoft@gmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Irritation about re-search-backward
Date: Thu, 24 May 2018 22:25:39 +0200 [thread overview]
Message-ID: <844liwpzr0.fsf@gmail.com> (raw)
In-Reply-To: <87po1lf4ch.fsf@web.de> (Michael Heerdegen's message of "Thu, 24 May 2018 17:41:50 +0200")
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Marco Wahl <marcowahlsoft@gmail.com> writes:
>
>> Hi,
>>
>> with "|" marking point and the following buffer
>>
nn>> #v+
>> aaaaaaaaaaaa|
>> #v-
>>
>>
>> M-: (re-search-backward "a*")
>>
>> does not change point.
>>
>> Shouldn't point have been moved to the beginning of the line?
>
> Good question - but it's the intended behavior. Try
>
> (progn (re-search-backward "a*")
> (message "Matched string: \"%s\"" (match-string 0))
> (sit-for 2))
Thanks!
BTW to get the "greedy" match backwards I use now a further element in
the search pattern like (re-search-backward "^a*").
[...]
> I would make a bug report, since the documentation is insufficient in
> this regard.
Thanks for the suggestion but I won't file a report. If you would like
to take over feel free to do so.
Best regards,
--
Marco
next prev parent reply other threads:[~2018-05-24 20:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-24 13:42 Irritation about re-search-backward Marco Wahl
2018-05-24 15:41 ` Michael Heerdegen
2018-05-24 20:25 ` Marco Wahl [this message]
2018-05-24 21:33 ` Michael Heerdegen
2018-05-25 6:32 ` Andreas Röhler
[not found] ` <mailman.418.1527195625.1292.help-gnu-emacs@gnu.org>
2018-05-25 9:23 ` Ralf Fassel
2018-05-25 13:03 ` Michael Heerdegen
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=844liwpzr0.fsf@gmail.com \
--to=marcowahlsoft@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=michael_heerdegen@web.de \
/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.