emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string-strip


From: Andreas Roehler
Subject: Re: string-strip
Date: Tue, 20 Jun 2006 21:28:38 +0200
User-agent: Thunderbird 1.5.0.4 (X11/20060516)

Richard Stallman schrieb:
        (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 ...

its up to the mode and the syntax with it to define - if its wrong defined, it's not lisp to blame for.


_
Andreas Roehler






reply via email to

[Prev in Thread] Current Thread [Next in Thread]