From: Michael Heerdegen <michael_heerdegen@web.de>
To: Marco Wahl <marcowahlsoft@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Irritation about re-search-backward
Date: Thu, 24 May 2018 17:41:50 +0200 [thread overview]
Message-ID: <87po1lf4ch.fsf@web.de> (raw)
In-Reply-To: <84muwpw4oo.fsf@gmail.com> (Marco Wahl's message of "Thu, 24 May 2018 15:42:31 +0200")
Marco Wahl <marcowahlsoft@gmail.com> writes:
> Hi,
>
> with "|" marking point and the following buffer
>
> #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))
The docstring once included this sentence:
The match found is the one starting last in the buffer
and yet ending before the origin of the search.
but it obviously has been removed.
I would make a bug report, since the documentation is insufficient in
this regard.
Michael.
next prev parent reply other threads:[~2018-05-24 15:41 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 [this message]
2018-05-24 20:25 ` Marco Wahl
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=87po1lf4ch.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=help-gnu-emacs@gnu.org \
--cc=marcowahlsoft@gmail.com \
/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.