[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Text property searching
From: |
Alan Mackenzie |
Subject: |
Re: Text property searching |
Date: |
Mon, 16 Apr 2018 20:07:45 +0000 |
User-agent: |
Mutt/1.9.4 (2018-02-28) |
Hello, Lars.
On Mon, Apr 16, 2018 at 21:49:11 +0200, Lars Ingebrigtsen wrote:
> Alan Mackenzie <address@hidden> writes:
> > Very much so. If there is a category text property at some point, and
> > the symbol it uses has a foo property, that will normally get seen by
> > the text property primitives. However, if you put a foo text property
> > there with a nil value, that nil value will mask the intent of the
> > category property.
> Hm. I am completely unfamiliar with the category stuff -- how is this
> used in practice?
I don't really know, in general.
In C++ and Java Modes, < and > which are template/generic delimiters are
given category text properties, symbols foo and bar, whose syntax-table
properties gives the < and > parenthesis syntax. This parenthesis syntax
is regularly "switched off" on all such characters simply by changing
the value of foo's and bar's syntax-table properties to punctuation.
This enables syntactic searching where template/generic < and > need not
to be seen.
Having implemented this, I don't recommend the technique. It has
disadvantages, in that it collides with syntax-ppss. To be fair, Stefan
advised me not to go ahead with it at an early stage. I'll probably
remove it from CC Mode at some stage.
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
--
Alan Mackenzie (Nuremberg, Germany).
- Re: Text property searching, (continued)
- Re: Text property searching, Alan Mackenzie, 2018/04/17
- Re: Text property searching, Lars Ingebrigtsen, 2018/04/17
- Re: Text property searching, Alan Mackenzie, 2018/04/17
- Re: Text property searching, Lars Ingebrigtsen, 2018/04/17
- Re: Text property searching, Alan Mackenzie, 2018/04/16
- Re: Text property searching, Lars Ingebrigtsen, 2018/04/16
- Re: Text property searching,
Alan Mackenzie <=
- Re: Text property searching, Lars Ingebrigtsen, 2018/04/16
Re: Text property searching, Lars Ingebrigtsen, 2018/04/16
Re: Text property searching, Lars Ingebrigtsen, 2018/04/16