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: bug#26908: Fwd: Trimming strings, /emacs/lisp/emacs-lisp/subr-x.el modification Date: Wed, 17 May 2017 07:21:19 +0900 Message-ID: <94609823-9378-4095-BC3F-74E189F10377@gmail.com> References: <98EBD2BF-A0ED-4726-9EDA-380058B517F0@gmail.com> <95032941-C381-47C3-9554-3E13DE6A5013@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_C23790B5-EBA3-4F6C-A7EC-B422700C39F1" X-Trace: blaine.gmane.org 1494973302 23808 195.159.176.226 (16 May 2017 22:21:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 16 May 2017 22:21:42 +0000 (UTC) Cc: emacs-devel To: 26908@debbugs.gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 17 00:21:31 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 1dAkqR-0005rM-BA for ged-emacs-devel@m.gmane.org; Wed, 17 May 2017 00:21:31 +0200 Original-Received: from localhost ([::1]:44376 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAkqV-0005IA-5Z for ged-emacs-devel@m.gmane.org; Tue, 16 May 2017 18:21:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAkqO-0005Hr-2p for emacs-devel@gnu.org; Tue, 16 May 2017 18:21:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dAkqJ-0003g5-5q for emacs-devel@gnu.org; Tue, 16 May 2017 18:21:28 -0400 Original-Received: from mail-pg0-x22e.google.com ([2607:f8b0:400e:c05::22e]:33249) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dAkqI-0003er-Tm for emacs-devel@gnu.org; Tue, 16 May 2017 18:21:23 -0400 Original-Received: by mail-pg0-x22e.google.com with SMTP id u187so82713878pgb.0 for ; Tue, 16 May 2017 15:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=6nABLF0DfBwk5OQI6oYH8sGubm6E4wf8ZQJyZLcH9/o=; b=Ek/wVLLv6JiN3NYo0bA6fCDMh9cITj4ahg9zVUM0t0YXCYidmKwwxE8aQ1z35zsxHS 8ulJBpbkPm9yOTtROc5BmAWjsNf16iyld9kp7v+6W4bs+CWblqGrwbNCoKkmwEiLA4m/ 0CBAOnRSBOHh7XRwfNKD1/ShwuWQXDhdmOdvsvSVHmDxVFUnTj3a/gjKQjSK6Mg31JQX Wwxz77c6ATfKYawcyigdnB0OQvQz3JvLTejRZvaffLo8P6DT2YnFujvuWt6l9wyRJul6 w5koknUZSq0Kpgol3uKp4ejkhA6WBwBL0BNe0fLw1memDODUDjAviTtPgg2SWtawQmmJ DjVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=6nABLF0DfBwk5OQI6oYH8sGubm6E4wf8ZQJyZLcH9/o=; b=QjqtCOwyeoCY3O0P5uNXBm8vM5ShPbrR/gqIqa8F7Gh2GzEU3S6bJ4HwF1zwigvWAR nAi0MyiPPAy/7yg+Zv0K+cUy1kT61vxwZnBWRuLaghhVi6ifCk3F4+u0XTsUxg2KwF6F eFVqqUcmKyqZZUu5irjfiO96uucGAV0y70sCIMjtE531qcwFkulonAy3crXYAkfg0Kp9 kftxyObGWbI2y0PfwpEO2T1m1V3EsvFsNSTyUy8CuTo9J5qqccPQBOcXBpkXhaTjSnTz vDm1v+bhd0vE0FH35iwL0NiG+ZmEUvOiaqJosYMoJvDbBLNcww2m3byYh3uTSCr9iCQx m+VA== X-Gm-Message-State: AODbwcAThrY3+adSoWcAfFdchg/VXdjv2rUYw+lJyYFkSkIRBEzGDCyl yiYId3RRQpA/uTIypG4= X-Received: by 10.99.44.83 with SMTP id s80mr254622pgs.95.1494973281636; Tue, 16 May 2017 15:21:21 -0700 (PDT) Original-Received: from [192.168.24.54] (pl25298.ag0304.nttpc.ne.jp. [133.232.153.210]) by smtp.gmail.com with ESMTPSA id o194sm96015pfg.117.2017.05.16.15.21.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 May 2017 15:21:20 -0700 (PDT) In-Reply-To: <95032941-C381-47C3-9554-3E13DE6A5013@gmail.com> 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:c05::22e 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:214895 Archived-At: --Apple-Mail=_C23790B5-EBA3-4F6C-A7EC-B422700C39F1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Nobody is interested in checking/commiting that ? If it's something I = should not have touched in the first place, please somebody tell me to = drop it... Jean-Christophe > On May 13, 2017, at 22:36, Jean-Christophe Helary = wrote: >=20 > Since nobody reacted in the last 3 days, I guess that means there is = nothing to change, so I'm sending the patch here. >=20 > Jean-Christophe=20 >=20 >> Begin forwarded message: >>=20 >> From: Jean-Christophe Helary > >> Subject: Re: Trimming strings, /emacs/lisp/emacs-lisp/subr-x.el = modification >> Date: May 10, 2017 23:26:04 GMT+9 >> To: Emacs developers > >>=20 >> Hopefully last fixes. >>=20 >> I've added the \\(?: ... \\) parens to make sure we capture any = potential issue with \|. >>=20 >> Is there anything else I've missed ? >>=20 >> Jean-Christophe=20 >>=20 >>=20 >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >> Add optional regexps for subr-x.el trimming functions >>=20 >> * lisp/emacs-lisp/subr-x.el (string-trim-left, string-trim-right, = string-trim): add optional regexps that default on the original = behavior. >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >>=20 >>=20 > >>=20 --Apple-Mail=_C23790B5-EBA3-4F6C-A7EC-B422700C39F1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Nobody is interested in checking/commiting = that ? If it's something I should not have touched in the first place, = please somebody tell me to drop it...

Jean-Christophe

On = May 13, 2017, at 22:36, Jean-Christophe Helary <jean.christophe.helary@gmail.com> wrote:

Since nobody = reacted in the last 3 days, I guess that means there is nothing to = change, so I'm sending the patch here.

Jean-Christophe 

Begin forwarded message:

From: Jean-Christophe Helary <jean.christophe.helary@gmail.com>
Subject: Re: Trimming strings, = /emacs/lisp/emacs-lisp/subr-x.el modification
Date: May 10, 2017 23:26:04 GMT+9
To: Emacs developers <emacs-devel@gnu.org>

Hopefully last fixes.

I've added the \\(?: ... \\) parens to make = sure we capture any potential issue with \|.

Is there anything else I've missed ?

Jean-Christophe


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D
Add optional regexps for subr-x.el = trimming functions

* = lisp/emacs-lisp/subr-x.el (string-trim-left, string-trim-right, = string-trim): add optional regexps that default on the original = behavior.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D


<subr-x.el.diff>

<= /div>
= --Apple-Mail=_C23790B5-EBA3-4F6C-A7EC-B422700C39F1--