[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help using/understanding syntax tables
From: |
Helmut Eller |
Subject: |
Re: help using/understanding syntax tables |
Date: |
Sun, 05 Feb 2017 09:18:33 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
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