[Top][All Lists]

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

Re: Low level trickery for changing character syntax?

From: Andreas Röhler
Subject: Re: Low level trickery for changing character syntax?
Date: Wed, 09 Apr 2014 11:56:44 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Am 09.04.2014 09:44, schrieb Thorsten Jolitz:
[ ... ]
You could define different syntax-tables and than call functions

if type-A
(with-syntax-table type-A ...

That looks like a promising approach, but I never worked with
syntax-tables so I ask myself:

Is it possible to redefine characters "^", "$" and "*" in a syntax-table
in such a way that the same hardcoded regexp, e.g.

   | "^[*] [*]Fat[*]$"

matches "* *Fat*" when called (with-syntax-table type-A ...), but
matches e.g. "// # *Fat*//" when called (with-syntax-table type-B ...)?

Easiest would be a regexp matching both followed by an exclude depending from 
type - the mentioned negation...

reply via email to

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