bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#13617: 24.2.92; [PATCH] Add strip-string


From: Leo Liu
Subject: bug#13617: 24.2.92; [PATCH] Add strip-string
Date: Mon, 25 Mar 2013 11:42:18 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.8.3)

Hello Stefan,

On 2013-02-03 17:40 +0800, Leo Liu wrote:
> I looked at skip-chars-forward before opening this bug but found it
> complicate things by introducing new rules.
>
> In strip-string the idea is to have a default covering 90% of the use
> cases:
>
> (strip-string s)        ; strip both
> (strip-string s nil "") ; strip leading
> (strip-string s "")     ; strip trailing
>
> Refer users to regexp as in (info "(elisp)Regexp Special") for the
> remaining 10% use cases.
>
> Regards,
> Leo

What is your take on this?

BTW, comment-string-strip cannot handle strings with newline in them, is
this an oversight?

Leo





reply via email to

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