From: Leo Liu <sdl.web@gmail.com>
To: 13617@debbugs.gnu.org
Subject: bug#13617: 24.2.92; [PATCH] Add strip-string
Date: Sun, 03 Feb 2013 17:40:01 +0800 [thread overview]
Message-ID: <m2fw1d91n2.fsf@gmail.com> (raw)
In-Reply-To: <m2r4kx97dt.fsf@gmail.com>
On 2013-02-03 16:56 +0800, Andreas Schwab wrote:
> You could use the same rules as skip-chars-forward.
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
next prev parent reply other threads:[~2013-02-03 9:40 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 [this message]
2013-03-25 3:42 ` Leo Liu
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=m2fw1d91n2.fsf@gmail.com \
--to=sdl.web@gmail.com \
--cc=13617@debbugs.gnu.org \
/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.