From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: string-strip Date: Mon, 19 Jun 2006 03:42:16 -0400 Message-ID: References: <449266B2.7030500@easy-emacs.de> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1150702977 16157 80.91.229.2 (19 Jun 2006 07:42:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Jun 2006 07:42:57 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 19 09:42:56 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FsEPJ-0004Ew-Sa for ged-emacs-devel@m.gmane.org; Mon, 19 Jun 2006 09:42:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FsEPJ-0006Sf-3P for ged-emacs-devel@m.gmane.org; Mon, 19 Jun 2006 03:42:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FsEOp-0006IO-BH for emacs-devel@gnu.org; Mon, 19 Jun 2006 03:42:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FsEOn-0006HK-TQ for emacs-devel@gnu.org; Mon, 19 Jun 2006 03:42:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FsEOn-0006H7-Ml for emacs-devel@gnu.org; Mon, 19 Jun 2006 03:42:17 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FsEZ3-0000l3-9V for emacs-devel@gnu.org; Mon, 19 Jun 2006 03:52:53 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1FsEOm-0005nL-Gv; Mon, 19 Jun 2006 03:42:16 -0400 Original-To: Andreas Roehler In-reply-to: <449266B2.7030500@easy-emacs.de> (message from Andreas Roehler on Fri, 16 Jun 2006 10:07:14 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:55993 Archived-At: What about to introduce a simplified version of `comment-string-strip' into subr.el - if it's not already somewhere? (defun my-string-strip (str) "Strip STR of any leading (if BEFOREP) and/or trailing (if AFTERP) space." (string-match "\\`\\s-*\\(.*?\\)\\s-*\n?\\'" str) (match-string 1 str)) (string-strip "asdf ")"asdf" (string-strip " asdf")"asdf" (string-strip " asdf ")"asdf" It is a useful function and a simple one, and it won't delay the release much. If you write the manual and NEWS changes for it first, I will say yes.