From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Trimming strings, /emacs/lisp/emacs-lisp/subr-x.el modification Date: Sat, 06 May 2017 11:12:17 +0200 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 X-Trace: blaine.gmane.org 1494061963 31001 195.159.176.226 (6 May 2017 09:12:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 May 2017 09:12:43 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: Mark Oteiza , Jean-Christophe Helary , emacs-devel To: Tino Calancha Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 06 11:12:29 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 1d6vlL-0007nv-7A for ged-emacs-devel@m.gmane.org; Sat, 06 May 2017 11:12:27 +0200 Original-Received: from localhost ([::1]:50602 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6vlQ-0001YG-Ms for ged-emacs-devel@m.gmane.org; Sat, 06 May 2017 05:12:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6vlL-0001YB-Eb for emacs-devel@gnu.org; Sat, 06 May 2017 05:12:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d6vlI-0000xD-Ax for emacs-devel@gnu.org; Sat, 06 May 2017 05:12:27 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:46353) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d6vlI-0000vQ-4o for emacs-devel@gnu.org; Sat, 06 May 2017 05:12:24 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3wKjhN6Z4dz1r25W; Sat, 6 May 2017 11:12:20 +0200 (CEST) Original-Received: from localhost (dynscan01.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3wKjhN5VWjz3hhYG; Sat, 6 May 2017 11:12:20 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan01.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id svwBMDlS6Fnr; Sat, 6 May 2017 11:12:20 +0200 (CEST) X-Auth-Info: iTbwc2V/xy/yOpozJTil8Hi3UISHQcb4kQ4R64ydQWXMycRWaxrbQkkm2yckUtJC Original-Received: from linux.local (ppp-88-217-31-97.dynamic.mnet-online.de [88.217.31.97]) by mail.mnet-online.de (Postfix) with ESMTPA; Sat, 6 May 2017 11:12:20 +0200 (CEST) Original-Received: by linux.local (Postfix, from userid 501) id 921E51E548C; Sat, 6 May 2017 11:12:17 +0200 (CEST) X-Yow: AIEEEEE! I am having an UNDULATING EXPERIENCE! In-Reply-To: (Tino Calancha's message of "Sat, 6 May 2017 13:29:16 +0900 (JST)") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.18.0.9 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:214609 Archived-At: 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. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."