unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Low level trickery for changing character syntax?
Date: Wed, 09 Apr 2014 11:56:44 +0200	[thread overview]
Message-ID: <5345195C.5050307@easy-emacs.de> (raw)
In-Reply-To: <87d2grhrq0.fsf@gmail.com>

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	other threads:[~2014-04-09  9:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-08 17:00 Low level trickery for changing character syntax? Thorsten Jolitz
2014-04-08 17:06 ` Thorsten Jolitz
2014-04-08 17:49 ` Andreas Röhler
2014-04-09  0:26   ` Thorsten Jolitz
2014-04-09  5:59 ` Andreas Röhler
2014-04-09  7:44   ` Thorsten Jolitz
2014-04-09  9:56     ` Andreas Röhler [this message]
2014-04-09 12:49     ` Stefan Monnier
2014-04-09 13:12       ` Thorsten Jolitz
2014-04-09  7:09 ` Tassilo Horn
2014-04-09  8:52   ` Org Minor Mode (was Re: Low level trickery for changing character syntax?) Thorsten Jolitz
2014-04-09 12:50     ` Stefan Monnier
2014-04-09 13:01     ` Tassilo Horn
2014-04-09 13:43       ` Thorsten Jolitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5345195C.5050307@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).