[Top][All Lists]

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

Re: help using/understanding syntax tables

From: Peter
Subject: Re: help using/understanding syntax tables
Date: Mon, 6 Feb 2017 12:12:02 -0800 (PST)
User-agent: G2/1.0

On Sunday, February 5, 2017 at 7:18:35 PM UTC+11, Helmut Eller wrote:
> On Sat, Feb 04 2017, Peter wrote:
> > I was not sure of the use of "(syntax-table)" in the 'map-char-table
> > statement - I tried changing it to be "my-syntax-table" but it made no
> > difference to the results.
> (syntax-table) returns the current syntax-table, i.e. the syntax-table
> of the current buffer.  In your example, map-char-table iterates over
> the current syntax-table but then modify-syntax-entry modifies
> my-syntax-table.  So it looks OK.  Though, you could change the entire
> range without iteration like so:
>   (modify-syntax-entry (cons 0 (max-char)) "w" my-syntax-table)
> I don't know why < and > don't work as they should.
> Helmut

Thanks Helmut

reply via email to

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