From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Tino Calancha <tino.calancha@gmail.com>
Newsgroups: gmane.emacs.bugs
Subject: bug#27659: 26.0.50;
	Add string-matched-text: string-match + match-string
Date: Thu, 20 Jul 2017 10:19:04 +0900
Message-ID: <87pocvzz07.fsf@calancha-pc>
References: <87fue2rxm1.fsf@calancha-pc>
	<770f8fbd-343d-4bbc-bbf8-9a9cfe87367e@default>
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: blaine.gmane.org 1500513619 19745 195.159.176.226 (20 Jul 2017 01:20:19 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 20 Jul 2017 01:20:19 +0000 (UTC)
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)
To: 27659-done@debbugs.gnu.org
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 20 03:20:10 2017
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geb-bug-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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1dY08O-0004Y7-6e
	for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Jul 2017 03:20:08 +0200
Original-Received: from localhost ([::1]:35593 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1dY08T-0002yt-ST
	for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Jul 2017 21:20:13 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49067)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1dY08N-0002wR-NE
	for bug-gnu-emacs@gnu.org; Wed, 19 Jul 2017 21:20:08 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1dY08I-00021M-Qv
	for bug-gnu-emacs@gnu.org; Wed, 19 Jul 2017 21:20:07 -0400
Original-Received: from debbugs.gnu.org ([208.118.235.43]:45680)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
	id 1dY08I-00021C-NF
	for bug-gnu-emacs@gnu.org; Wed, 19 Jul 2017 21:20:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1dY08I-0004FL-IL
	for bug-gnu-emacs@gnu.org; Wed, 19 Jul 2017 21:20:02 -0400
Resent-From: Tino Calancha <tino.calancha@gmail.com>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-To: bug-gnu-emacs@gnu.org
Resent-Date: Thu, 20 Jul 2017 01:20:02 +0000
Resent-Message-ID: <handler.27659.D27659.150051355716261.done@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: cc-closed 27659
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: wontfix
Mail-Followup-To: 27659@debbugs.gnu.org, tino.calancha@gmail.com,
	tino.calancha@gmail.com
Original-Received: via spool by 27659-done@debbugs.gnu.org id=D27659.150051355716261
	(code D ref 27659); Thu, 20 Jul 2017 01:20:02 +0000
Original-Received: (at 27659-done) by debbugs.gnu.org; 20 Jul 2017 01:19:17 +0000
Original-Received: from localhost ([127.0.0.1]:48355 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1dY07Y-0004ED-Li
	for submit@debbugs.gnu.org; Wed, 19 Jul 2017 21:19:16 -0400
Original-Received: from mail-pg0-f45.google.com ([74.125.83.45]:38312)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <tino.calancha@gmail.com>) id 1dY07W-0004Dz-CS
	for 27659-done@debbugs.gnu.org; Wed, 19 Jul 2017 21:19:14 -0400
Original-Received: by mail-pg0-f45.google.com with SMTP id s4so7341953pgr.5
	for <27659-done@debbugs.gnu.org>; Wed, 19 Jul 2017 18:19:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; 
	h=from:to:cc:subject:in-reply-to:references:user-agent:date
	:message-id:mime-version;
	bh=NcpqixYWVLUMrN0EyCkULFp9HoDDzNyXLSp3RO/i5Js=;
	b=KKx6s+t1bt84jsQ+JVxXhK4KTI8jxBluxZqzWNaJNo/V3s47PuBNcvXraQlvxp7cEB
	GK+czVRQxffnXEtOeYN9XSfn7xF9DNPFpO9+rk5n5xxcnBu1pNvR9rLdiikCIWu2U7J1
	Q1r1N8QpetNN4KFB9vHasMp/UXLHCDr1xrA34KCsSYZkxPcdM/51fgz29w9pynpryfe/
	ZcHw7VnPggR+RbETRZBICht6g89CgbxJnedcXS3z70queTlyfH9AHRIAmiAOZGTBKRPS
	4svVnacyAB7LzuFRgC4UrReNmP700EAab4Vl/jXxUhHjPll1z1+RWyOkaUUDN2L+m1uj
	lHqw==
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:in-reply-to:references
	:user-agent:date:message-id:mime-version;
	bh=NcpqixYWVLUMrN0EyCkULFp9HoDDzNyXLSp3RO/i5Js=;
	b=XjP2gX1oFTdBUxd+QKh9Zv/GL3OxuJnlGBVXuRiuvvl+AmojDYrKdWBbWX8bH1MeDu
	t7mNei18vlGbmTQMvvNm/OPkhTB9+7QmEgwa2lF3Kvm6TI+uA0fnyvTLTdis19SrETns
	XfOmpJyopGTwkRfRR8MTQrswDhWrDSoPPE1rxHRpTzOWs86PGZRjRjKF/I+CJHDMakQk
	iD/silXEbSLt0bZrMCFgUI2hbfTgkvVHJtf1d4SxKZ59fHRGeoL8sAcRqNb9vSP2hLnU
	DhyKvEnaw4XNpej1LvmVA5eYbLztNRaMWEhjCKHvMB7AOT+khxVNgZqBoqX8fmGM2I8v
	R2jQ==
X-Gm-Message-State: AIVw113xcUcHqGhJR4PSIqv8eL/8k1EUULQXMwHRdpkJZ1VpFKpHazul
	22kepHl4oQn/nTa8
X-Received: by 10.98.78.73 with SMTP id c70mr1997592pfb.17.1500513548760;
	Wed, 19 Jul 2017 18:19:08 -0700 (PDT)
Original-Received: from calancha-pc (170.224.128.101.dy.bbexcite.jp. [101.128.224.170])
	by smtp.gmail.com with ESMTPSA id
	y2sm1547835pgy.60.2017.07.19.18.19.07
	(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
	Wed, 19 Jul 2017 18:19:08 -0700 (PDT)
In-Reply-To: <770f8fbd-343d-4bbc-bbf8-9a9cfe87367e@default> (Drew Adams's
	message of "Wed, 19 Jul 2017 17:54:28 -0700 (PDT)")
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 208.118.235.43
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
	the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-gnu-emacs/>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "bug-gnu-emacs"
	<bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.bugs:134774
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/134774>

Drew Adams <drew.adams@oracle.com> writes:

>> (when (string-match "[[:alpha:]]+-\\([0-9]+\\)" str)
>>   (match-string 1 str))
>> is equivalent to:
>> (string-matched-text "[[:alpha:]]+-\\([0-9]+\\)" str 1)
>
> My own opinion, FWIW, is that the former is much clearer
> and is sufficiently succinct.  YAGNI.
Thank you for your feedback and tips.

I am closing the report since it seems this proposal
doesn't bring us actual value.