From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: string-strip Date: Wed, 21 Jun 2006 00:03:03 +0200 Message-ID: References: <449266B2.7030500@easy-emacs.de> <4496E618.8090401@soem.dk> <32964.128.165.123.239.1150741470.squirrel@webmail.lanl.gov> <449796E7.9090808@soem.dk> <44984C66.8090006@easy-emacs.de> <17560.20884.675268.166167@kahikatea.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1150841124 32054 80.91.229.2 (20 Jun 2006 22:05:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Jun 2006 22:05:24 +0000 (UTC) Cc: Andreas Roehler , rms@gnu.org, emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 21 00:05:21 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 1FsoLY-0002jw-3s for ged-emacs-devel@m.gmane.org; Wed, 21 Jun 2006 00:05:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FsoLX-0005Xa-Lo for ged-emacs-devel@m.gmane.org; Tue, 20 Jun 2006 18:05:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FsoLM-0005XV-Io for emacs-devel@gnu.org; Tue, 20 Jun 2006 18:05:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FsoLL-0005WO-QE for emacs-devel@gnu.org; Tue, 20 Jun 2006 18:05:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FsoLL-0005Vu-Ld for emacs-devel@gnu.org; Tue, 20 Jun 2006 18:05:07 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FsoVw-00088q-JS; Tue, 20 Jun 2006 18:16:04 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepc.post.tele.dk (Postfix) with SMTP id EEC9F8A003F; Wed, 21 Jun 2006 00:05:04 +0200 (CEST) Original-To: Nick Roberts In-Reply-To: <17560.20884.675268.166167@kahikatea.snap.net.nz> (Nick Roberts's message of "Wed, 21 Jun 2006 07:50:44 +1200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:56042 Archived-At: Nick Roberts writes: > > > (string-match > > > "\\`[[:space:]\n]*\\(\\(?:.\\|\n\\)*?\\)[[:space:]\n]*\\'" str) > > > > > > I think [[:space:]] obeys the syntax table, > > > and that is not good. > > > > > > > > Why not? : > > > > Not to lobby the concept of syntax-tables as such, but > > > > "The syntax table is relevant only for a buffer. > > This has nothing to do with any particular buffer." > > > > AFAIU just the syntax of the current buffer will be used > > - where is the problem? > > > > A white space is a white space is a white space ... > > Except when the syntax-table says otherwise. In the speedbar, > for example (, ), { ,[ etc are whitespace. So don't use string-strip there if you want to preserve those chars. Or .... We now have three or four different opinions about something which is utterly irrelevant, and diverting focus from the release! Let me repeat my suggestion to postpone this to after the release. -- Kim F. Storm http://www.cua.dk