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.bugs Subject: 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__30140.6028251678$1494973335$gmane$org@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 1494973335 27435 195.159.176.226 (16 May 2017 22:22:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 16 May 2017 22:22:15 +0000 (UTC) Cc: emacs-devel To: 26908@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 17 00:22:11 2017 Return-path: 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 ) id 1dAkr5-0006zz-Fj for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 May 2017 00:22:11 +0200 Original-Received: from localhost ([::1]:44378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAkrB-0005cT-1h for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 May 2017 18:22:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAkr0-0005Zk-RM for bug-gnu-emacs@gnu.org; Tue, 16 May 2017 18:22:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dAkqw-00045R-A5 for bug-gnu-emacs@gnu.org; Tue, 16 May 2017 18:22:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46589) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dAkqw-00045I-6W for bug-gnu-emacs@gnu.org; Tue, 16 May 2017 18:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dAkqv-00045U-UH for bug-gnu-emacs@gnu.org; Tue, 16 May 2017 18:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jean-Christophe Helary Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 May 2017 22:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26908 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 26908-submit@debbugs.gnu.org id=B26908.149497328915669 (code B ref 26908); Tue, 16 May 2017 22:22:01 +0000 Original-Received: (at 26908) by debbugs.gnu.org; 16 May 2017 22:21:29 +0000 Original-Received: from localhost ([127.0.0.1]:49266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dAkqP-00044f-FH for submit@debbugs.gnu.org; Tue, 16 May 2017 18:21:29 -0400 Original-Received: from mail-pg0-f41.google.com ([74.125.83.41]:34117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dAkqN-00044S-Lo for 26908@debbugs.gnu.org; Tue, 16 May 2017 18:21:28 -0400 Original-Received: by mail-pg0-f41.google.com with SMTP id u28so82835674pgn.1 for <26908@debbugs.gnu.org>; Tue, 16 May 2017 15:21:27 -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=I4gQzSWnzpmFE60C28m97zAawkfPHi6z6adveK4zCj++hLABWHC42LD4JWSRJFGXLx FRK/CtBmfrw1uq6gp01u289QB9+rgmJp/N/ysxqyVMb6IiPjbRQhWywgkpTF73ETlcpb CQvmqguIz75qThgorlbSgAazZ821ECMnKnF/Li9DpqmeHDtDBXc6cW4jCQ5cPn4dXYSC DDpInuwXxn/u4HJEIbInl/K9Tb6wQSW2GAE5k95EZI8Dk9Tb9dPkFJUfPzj74UWpmnkh LSCoknaiJOOaxNKFznFFJN3dfTNNh7+E4aDJ0m1xUraUNwDVwC19wwooWzbDWmDMskv3 nmVA== X-Gm-Message-State: AODbwcAsIF1cxfuzt6CKs3wJUZsoQ6Cu1hWXw0B+uKfptaJYj1qGE7uX KbuNQ8Wpzw8lFQ== 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-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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132550 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--