From: Leo Liu <sdl.web@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 13617@debbugs.gnu.org
Subject: bug#13617: 24.2.92; [PATCH] Add strip-string
Date: Mon, 25 Mar 2013 11:42:18 +0800 [thread overview]
Message-ID: <m1k3owkuw5.fsf@gmail.com> (raw)
In-Reply-To: <m2fw1d91n2.fsf@gmail.com> (Leo Liu's message of "Sun, 03 Feb 2013 17:40:01 +0800")
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
next prev parent reply other threads:[~2013-03-25 3:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-03 7:35 bug#13617: 24.2.92; [PATCH] Add strip-string Leo Liu
2013-02-03 8:23 ` Andreas Schwab
2013-02-03 8:50 ` Leo Liu
2013-02-03 8:56 ` Andreas Schwab
2013-02-03 9:40 ` Leo Liu
2013-03-25 3:42 ` Leo Liu [this message]
2013-03-25 7:48 ` Andreas Röhler
2016-02-24 5:51 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1k3owkuw5.fsf@gmail.com \
--to=sdl.web@gmail.com \
--cc=13617@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.