[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trimming strings, /emacs/lisp/emacs-lisp/subr-x.el modification

From: Tino Calancha
Subject: Re: Trimming strings, /emacs/lisp/emacs-lisp/subr-x.el modification
Date: Sat, 6 May 2017 19:31:39 +0900 (JST)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)

On Sat, 6 May 2017, Andreas Schwab wrote:

On Mai 06 2017, Tino Calancha <address@hidden> 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.

Indeed. Thank you!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]