From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.help Subject: Re: Low level trickery for changing character syntax? Date: Wed, 09 Apr 2014 11:56:44 +0200 Message-ID: <5345195C.5050307@easy-emacs.de> References: <87lhvfzrgt.fsf@gmail.com> <5344E1A7.50900@easy-emacs.de> <87d2grhrq0.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1397037149 10435 80.91.229.3 (9 Apr 2014 09:52:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Apr 2014 09:52:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 09 11:52:22 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WXpB7-00030z-3U for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Apr 2014 11:52:21 +0200 Original-Received: from localhost ([::1]:45203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXpB6-00038Q-G3 for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Apr 2014 05:52:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXpAn-000385-26 for help-gnu-emacs@gnu.org; Wed, 09 Apr 2014 05:52:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WXpAf-0007mn-Hx for help-gnu-emacs@gnu.org; Wed, 09 Apr 2014 05:52:00 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.131]:62694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXpAf-0007mh-8E for help-gnu-emacs@gnu.org; Wed, 09 Apr 2014 05:51:53 -0400 Original-Received: from purzel.sitgens (brln-4d0c5b3a.pool.mediaWays.net [77.12.91.58]) by mrelayeu.kundenserver.de (node=mreue004) with ESMTP (Nemesis) id 0MFOim-1Wjwdm1M3g-00EQK2; Wed, 09 Apr 2014 11:51:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <87d2grhrq0.fsf@gmail.com> X-Provags-ID: V02:K0:ahTT86vj29i2NVhRcLqpzJ56CjdjEqkqHoeu+HuyEQ6 HzKZmPqSM/X5irvqAC25Im3AKuQUs00a6BvslWvGxpszg4ScoM iyiMG4+ZkFmhzdwyOK9LNMZRAEYPbwQ7ZDezn9raQbhDmSLhf5 qBjs37dzpcLEQ4R2CSHLOg0sX/ZGAwnnt45F2eagJQocHW5UaK 28iwOmLiQ6nBs0HfTrSQbEz43F0nHB+elLsC0WrXa3G/BOFnSy WuCTmv435HI/qoQPTNjAK1Pc6fdpfdjtWT31hroVRO+9yCW5g5 JaMQ6IME7o3d60bP8uZI+N/n8L2ISI5jOCbNwoMOdjBjDKtjJp U2g63eU3V/x+uvVx3RbXmo3n75mBOmRfhadJO6npo X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.126.131 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97056 Archived-At: 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...