From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: Trimming strings, /emacs/lisp/emacs-lisp/subr-x.el modification Date: Sun, 7 May 2017 13:39:43 +0900 Message-ID: <61D1EB52-185B-438C-BE3C-DB198D3A0B6B@gmail.com> References: <87vapij1l7.fsf@holos> <6870A2B6-F685-4955-9C0A-256601DB47BC@gmail.com> <51D5E92C-F125-4ADE-8C55-E3513C00ECDC@gmail.com> <8F6958D6-3E13-4C31-B1F8-AF10A8FC8FC6@gmail.com> <838tmafigi.fsf@gnu.org> <7C79DA34-96F2-4D9F-9E9C-01574AE00F12@gmail.com> <8360hefepp.fsf@gnu.org> <0E129E02-FA64-4664-825B-8854A66CA9C6@gmail.com> <3D0BA0E6-02E2-4E90-8A59-121065547E1C@gmail.com> <87ziepho0q.fsf@gnu.org> <83vapderm3.fsf@gnu.org> <87vapdhi9j.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1494132033 14606 195.159.176.226 (7 May 2017 04:40:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 May 2017 04:40:33 +0000 (UTC) Cc: mvoteiza@udel.edu, Eli Zaretskii , emacs-devel@gnu.org, tino.calancha@gmail.com To: =?utf-8?Q?Johan_Bockg=C3=A5rd?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 07 06:40:26 2017 Return-path: Envelope-to: ged-emacs-devel@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 1d7Dzd-0003ew-MN for ged-emacs-devel@m.gmane.org; Sun, 07 May 2017 06:40:25 +0200 Original-Received: from localhost ([::1]:53632 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7Dzi-0001ag-TY for ged-emacs-devel@m.gmane.org; Sun, 07 May 2017 00:40:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7DzB-0001aQ-9w for emacs-devel@gnu.org; Sun, 07 May 2017 00:39:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7DzA-0008RH-I8 for emacs-devel@gnu.org; Sun, 07 May 2017 00:39:57 -0400 Original-Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]:33715) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7Dz3-0008Qs-Ix; Sun, 07 May 2017 00:39:49 -0400 Original-Received: by mail-pf0-x244.google.com with SMTP id b23so5600129pfc.0; Sat, 06 May 2017 21:39:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=CRPK9aZDlYxnGxZPKUMaeDOw4FjuztcXqdqoarx4ZzQ=; b=MjNxVCxJa5XmO4UQ8PbryaxSARQrUfzNgKUyLCk6FN3axVuQVOOF43WgSNt0je5R/w uFAJqeQmxk5Vx9A1Ceh5P2/4fmxIPniwsrPZTRAwExmCPQz/dskSiJJPerg2U+ifp53g seerzuDtfx9M5+8SPjfssnBxbmQzIXtYbC1OSwftKOj267A3BmYtF3TJGAREjmTT8b2i dIFym+x2UYp3zYLDtVEMrpOinnTeXx5X8gJ6/G4pTHyxe5ASuDrzZU461F++k1+SysVO G7N0LgZWm3mi16ceRaa6dXzX+AKBysWMCFmCk3dIMxWS5R/fYcTo0o2gCvMXwsJs2m0n TAYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=CRPK9aZDlYxnGxZPKUMaeDOw4FjuztcXqdqoarx4ZzQ=; b=lC16P7y5eC4yGfsodBGdDyVTQzYH+qrsr39CQM8u7353KzHZHROqvgylL6eELTVstA 7EhHBOlCdrmEA/Z3TIjyzRvoRugYWeJ9YdZh8sw/F2HxidCHdZkgIrAm1Loy3YnhtT+7 X5nGXOi0iUjJmQMjw2ZOVFDAhFNDZO35t6I6CRwTMoV9evBiZsmb3kmTUIUa3LvRzrw3 wSvSiBBaEqiCRz21vE7WKHpnRm+QD+BvYy82bwAW+QQ7Vq8zmJOva2NwObfe7ybYYWIg F3ZWJ4JWo7E+VqvSWiChV9nww45DB6GEQ0uaElzTPg53o+vLQQc/9cSEsOhyg/SmWsj+ 38OA== X-Gm-Message-State: AN3rC/6po9tFBpnDuh2Y8HlsT42YXBWa/1twTDkTIYU4aFaNM0CvGOdq +/UQ7YR5aiOy9w== X-Received: by 10.84.224.70 with SMTP id a6mr50471178plt.57.1494131988347; Sat, 06 May 2017 21:39:48 -0700 (PDT) Original-Received: from [192.168.22.165] (p5037-ipbffx02kyoto.kyoto.ocn.ne.jp. [61.214.117.37]) by smtp.gmail.com with ESMTPSA id u128sm16647405pfb.55.2017.05.06.21.39.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 May 2017 21:39:47 -0700 (PDT) In-Reply-To: <87vapdhi9j.fsf@gnu.org> X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::244 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214650 Archived-At: Any conclusion on that point? Jean-Christophe=20 > On May 7, 2017, at 4:55, Johan Bockg=C3=A5rd wrote: >=20 > Eli Zaretskii writes: >=20 >>>> + (if (string-match (concat "\\`" (or regexp "[ \t\n\r]+")) = string) >>>=20 >>> I think regexp should be surrounded by a grouping construct, like: >>>=20 >>> (concat "\\`\\(?:" (or regexp "[ \t\n\r]+") "\\)") >>>=20 >>> And similarly for string-trim-right. >>=20 >> Rationale? >=20 > regexp can contain \|