From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Irritation about re-search-backward Date: Thu, 24 May 2018 17:41:50 +0200 Message-ID: <87po1lf4ch.fsf@web.de> References: <84muwpw4oo.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1527176430 13932 195.159.176.226 (24 May 2018 15:40:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 24 May 2018 15:40:30 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Marco Wahl Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 24 17:40:26 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLsLq-0003Wx-Gp for geh-help-gnu-emacs@m.gmane.org; Thu, 24 May 2018 17:40:26 +0200 Original-Received: from localhost ([::1]:39294 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLsNx-0005oq-Gf for geh-help-gnu-emacs@m.gmane.org; Thu, 24 May 2018 11:42:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLsNM-0005no-By for help-gnu-emacs@gnu.org; Thu, 24 May 2018 11:42:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLsNI-0001Ku-Fr for help-gnu-emacs@gnu.org; Thu, 24 May 2018 11:42:00 -0400 Original-Received: from mout.web.de ([212.227.15.14]:51001) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLsNI-0001Jo-6R for help-gnu-emacs@gnu.org; Thu, 24 May 2018 11:41:56 -0400 Original-Received: from drachen.dragon ([188.110.196.170]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MXYjm-1foyE22LDC-00WTvE; Thu, 24 May 2018 17:41:52 +0200 In-Reply-To: <84muwpw4oo.fsf@gmail.com> (Marco Wahl's message of "Thu, 24 May 2018 15:42:31 +0200") X-Provags-ID: V03:K1:8Yf7Px9Bi1DyXfbjfAtlbwYyrMwohX511eJcwRykJEST3dwYpzA R089othtRuCQbPJ5SeFXZqYgUSoQAXp1dzfZ2/ngT6qVqPSFQNQm5omp0FbAUvSKDA0kvs3 Q9zMOkwEB9/31DKMn5K7fXoXfqKC/TMtkWKAh1Bess04daMcGeLKslj0fi4Pt4Dp5h/orj4 F8CXPRPbYlNOhvlvTqJJA== X-UI-Out-Filterresults: notjunk:1;V01:K0:aRMsRqh439o=:QBip6b2hukEFiEc4RwYwPc q2VLTa3Ejjn6wcDgVLh5qfDJ+ZMxNf6A3s86s6InBGWSTuEUXf2DqIjW2aisRhOskg2MzbXJ/ UHeeVe84LSNjmj42nI0aECthgotuFrQVFzv6TSyScGENAGtOC2quDjKuhzs6hLZrN0y4ng8Qh f3OGKyeLAnOyL96tkbnAxBZKVNB0QQny8bhFj6NVQFY3f6mV3zMO/1E3C3fTw0IWjNWiU10ur AP6q75KJshGZH5mujpBVR8bmq3b0iExZraAxCqJ3REFvM+BuSN8Moq1tE3JpHWOKVrHV1GI7z K8qyJf2JAmO5aL9d/1iMDrE9WlLol4A0erh5+bZ7jUCxDrwL7y6xA64FB3YZ5DbQi+8AF9M08 NQVqMsr1ftGs8NKx6C/r1umafuT2GZum34AEKub2G2DCx9BH052zaTuWLt28vXT94rRFFZQdB i/Y83zFaAnbbL3XVv95X3MoqO/yDUmcENkvAJikobPvHsv9FtuPjtOfrDQZuLneYeyMUWYNBV p++YLEFk35zlqmzFtctVIju7EJrTcryty0iljuAIilpdCLsDTQ5vgx6vFxvxFaTRFrxv5y1v3 rl1aG6FaBKEnOEYbT8omqnr8i7lGjp92FPVlQNCWsj6K9CW2X77YCZBp4CaxeTQGpIvvBRD8z g5yIP0Plbu4ecliUfy2kOLPZWWGP39pjglLrN7eITWaRskUhLOYUQYT9g5EkNjMkobeGpP4Fs jTyvnOi4zb4oWw/6Rp3NH0PXgXSyw1JG+iJ2HxyRYJ246bxS7XFAknx6thDq45+3fmpmTqMA X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116849 Archived-At: Marco Wahl 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.