From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marco Wahl Newsgroups: gmane.emacs.help Subject: Re: Irritation about re-search-backward Date: Thu, 24 May 2018 22:25:39 +0200 Organization: Marco Wahl Message-ID: <844liwpzr0.fsf@gmail.com> References: <84muwpw4oo.fsf@gmail.com> <87po1lf4ch.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1527195529 28935 195.159.176.226 (24 May 2018 20:58:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 24 May 2018 20:58:49 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 24 22:58:45 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 1fLxJs-0007Qg-M3 for geh-help-gnu-emacs@m.gmane.org; Thu, 24 May 2018 22:58:44 +0200 Original-Received: from localhost ([::1]:40644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLxLz-00013f-Ty for geh-help-gnu-emacs@m.gmane.org; Thu, 24 May 2018 17:00:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLwnw-0003A7-G8 for help-gnu-emacs@gnu.org; Thu, 24 May 2018 16:25:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLwnv-00039e-MY for help-gnu-emacs@gnu.org; Thu, 24 May 2018 16:25:44 -0400 Original-Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:38668) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLwnv-00037H-Fz for help-gnu-emacs@gnu.org; Thu, 24 May 2018 16:25:43 -0400 Original-Received: by mail-wm0-x235.google.com with SMTP id m129-v6so8771973wmb.3 for ; Thu, 24 May 2018 13:25:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version; bh=3XqMV2MRXtApWXhOkiB/OzsatubMIcRSRWniN4bR6cQ=; b=RLzveWMqquTZxImt4LEGopSioh5IwQ7RHTpkcx0aK0XqN6BH0+xlev9VoDSNFoJCQk wGt2B3D2Rzv+w0uu6L1HDxtf5ipFYo7kxnRasBP5n/pcr+BATyyCHSKABmZY/RDlxDn+ VHj6ytgPUfonfQE9GS9A4T6B3Tw4mZDtoP4wQS0RzYuIdqflSBNqPF2nkCPDBBGFvuzx E8vYK438p6WDgWVEPV0Lv4Vqla1QSqXqdveGstslb6qN7kwAYn6sfArcshtrcegM3YsT gmK+7GyrpGruxpfppA4wBumCjRWH25FdXobX9ZQYSmCmImxIuaxXBQp6LT9Pqql7DGFP 6uIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:organization:references:date :in-reply-to:message-id:user-agent:mime-version; bh=3XqMV2MRXtApWXhOkiB/OzsatubMIcRSRWniN4bR6cQ=; b=EvOmta1LC4go+Y3YbB6KYIho1AtCd8zZyl99xU94HZ6V2/x8s98motqmlRwxOB3jcK HCFf0LA6oZprbOyOQAoXNtUNZSB8BxrtkOgmFzC7796gV6YQv9KGqkHbpUwDapR54OXI IjGaq4gqXzKq8SoxK3iVmVnZAoCIyBZKBxJsLej1ZErruVcGlEBivOAbKFE5TLCDVf2R 7wI0amU3dHHNBnjYLxL0fUMQ/HRe5mnGCQwPekaAjZN8d1Ey0oVIjmvyOHrKjSZUUqOM i6sHDsjskaNl4vRokvjFonJYG/CgKz4WxcJxSMzEWT3z7QylIp9e3bW15FcoZuRwCdla UO+g== X-Gm-Message-State: ALKqPwdmEVY6Q+eWUUHS/vGqXT5TU6B6C2ZQF5sFYDuEkwYu8hT7m9bh 4YEpptqVjdV7Sbm0IaVQ0fU= X-Google-Smtp-Source: AB8JxZrlUCoqdDuzfAbn525Ak1K8GSDWoFx9DCXI3IXHuC0FpJ1KYhZt/0i06bGftqMnu/mMvsdBkg== X-Received: by 2002:a1c:c46:: with SMTP id 67-v6mr9369471wmm.79.1527193542121; Thu, 24 May 2018 13:25:42 -0700 (PDT) Original-Received: from tm6592 (p200300ED5BC0DD420E5EFE820EFC1739.dip0.t-ipconnect.de. [2003:ed:5bc0:dd42:e5e:fe82:efc:1739]) by smtp.gmail.com with ESMTPSA id j8-v6sm44579080wra.58.2018.05.24.13.25.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 May 2018 13:25:41 -0700 (PDT) In-Reply-To: <87po1lf4ch.fsf@web.de> (Michael Heerdegen's message of "Thu, 24 May 2018 17:41:50 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::235 X-Mailman-Approved-At: Thu, 24 May 2018 17:00:23 -0400 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:116850 Archived-At: Michael Heerdegen writes: > Marco Wahl 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