[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: string-strip
From: |
Kim F. Storm |
Subject: |
Re: string-strip |
Date: |
Wed, 21 Jun 2006 00:03:03 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Nick Roberts <address@hidden> 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 <address@hidden> http://www.cua.dk
- Re: string-strip, (continued)
- Re: string-strip, Lars Hansen, 2006/06/19
- Re: string-strip, Richard Stallman, 2006/06/19
- Re: string-strip, Lars Hansen, 2006/06/20
- Re: string-strip, Richard Stallman, 2006/06/20
- Re: string-strip, Andreas Roehler, 2006/06/20
- Re: string-strip, Nick Roberts, 2006/06/20
- Re: string-strip,
Kim F. Storm <=
- Re: string-strip, Nick Roberts, 2006/06/20
- Re: string-strip, Johan Bockgård, 2006/06/20
- Re: string-strip, Lars Hansen, 2006/06/21
- Re: string-strip, Kim F. Storm, 2006/06/22
- Re: string-strip, Andreas Roehler, 2006/06/22
- Re: string-strip, Kim F. Storm, 2006/06/22
- Re: string-strip, Lars Hansen, 2006/06/28
- Re: string-strip, Juri Linkov, 2006/06/28
- Re: string-strip, Richard Stallman, 2006/06/29
string-strip, Andreas Roehler, 2006/06/20