From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.devel Subject: Re: Trimming strings, /emacs/lisp/emacs-lisp/subr-x.el modification Date: Sat, 6 May 2017 19:31:39 +0900 (JST) Message-ID: References: <87vapij1l7.fsf@holos> <6870A2B6-F685-4955-9C0A-256601DB47BC@gmail.com> <51D5E92C-F125-4ADE-8C55-E3513C00ECDC@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: blaine.gmane.org 1494066745 3517 195.159.176.226 (6 May 2017 10:32:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 May 2017 10:32:25 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: Mark Oteiza , Jean-Christophe Helary , emacs-devel , Tino Calancha To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 06 12:32:21 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 1d6x0f-0000oU-Ev for ged-emacs-devel@m.gmane.org; Sat, 06 May 2017 12:32:21 +0200 Original-Received: from localhost ([::1]:50774 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6x0i-0007Vf-Br for ged-emacs-devel@m.gmane.org; Sat, 06 May 2017 06:32:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6x07-0007VY-G8 for emacs-devel@gnu.org; Sat, 06 May 2017 06:31:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d6x04-0000qy-Cr for emacs-devel@gnu.org; Sat, 06 May 2017 06:31:47 -0400 Original-Received: from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]:35568) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d6x04-0000qs-6U for emacs-devel@gnu.org; Sat, 06 May 2017 06:31:44 -0400 Original-Received: by mail-pg0-x22a.google.com with SMTP id o3so13973761pgn.2 for ; Sat, 06 May 2017 03:31:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=Vgo7nbnr9jq760vt7R8ob5guw8uo7kKYfY2Mp9Rpnqw=; b=HV5H8YVRDK4cuX/tnALyxR+4CIQBs3tIx97FsB7PJlFJ0ZCyPn+CAY3zDIogEhGrv9 3PFMUXpe0zBgSpypylMXpZOjGWmJhmnN5p4ClSmgn/MSAvfVVse8Wa+4LYkt0uR5nXXB pWlBhXGko9pg1oemrFZG3DkH+V0afQremFgc4rGsQ8cq4gZ2Ifta81H0l71oQw9cAr0C JLrMBviE8LwI7sTGk4fotN+oCiYx0KJpoL8qgu2jXzuCutsUYnkcMl/Bn6HJT1FBJ3jf 29g+l89uWx9YA1AvdmcSIeiGLK0RUiMmEcdw8iAbKTiRdPo9yOxInzj2ciGogjWzlNQ7 iHhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=Vgo7nbnr9jq760vt7R8ob5guw8uo7kKYfY2Mp9Rpnqw=; b=H/jJG6z1VyDMu17o2w0hcQylTajPz3aJzz/UVyCSl21n+YUg/HUherMuRwEM+mjOfU w0uo8E8OdrMqq6s98FP2pM6i/JidZbWYz6GypLGCFM3R6ynpaA4mJ8Sp9JfIPy/GcDXn Ml2kd4UiwFE4lSoiz1xu7/u7PUd0VezbSInleMSLnI6P76YZCwqwk7rmFpYd9cnKQ6wE DXPMc/rKaZxuo1GY3E3QriElUr5Jux1PLnswJ+VBejn4UUC5bH0CbwHOdkb3FtDXoKOO mhXoYEIx0YHANzqMUeJybxVfVx3hqh6UA4hWzOjciuPn3XTEoGo337U/S7Rxt5sblZl0 +pgw== X-Gm-Message-State: AODbwcCZWThOe9pCkmfnkUd9B78oOYfKx9+tMcXFFkNp0c0R98SNziEm 6jATB6nlygXsKg== X-Received: by 10.98.142.1 with SMTP id k1mr2850761pfe.243.1494066703230; Sat, 06 May 2017 03:31:43 -0700 (PDT) Original-Received: from calancha-pc (222.139.137.133.dy.bbexcite.jp. [133.137.139.222]) by smtp.gmail.com with ESMTPSA id e71sm7160613pgc.17.2017.05.06.03.31.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 May 2017 03:31:42 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::22a 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:214611 Archived-At: On Sat, 6 May 2017, Andreas Schwab wrote: > On Mai 06 2017, Tino Calancha wrote: > >> +(defsubst string-trim-left (string &optional regexp) >> + "Trim STRING of leading whitespace matching REGEXP. >> + >> +REGEXP defaults to \"[ \t\n\r]+\"." > > You need to quote the backslashes in the string. > > Andreas. Indeed. Thank you! Tino