From: Peter <peter.milliken@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: help using/understanding syntax tables
Date: Mon, 6 Feb 2017 12:12:02 -0800 (PST) [thread overview]
Message-ID: <488abaae-bdbd-4f88-b79b-153c459729ae@googlegroups.com> (raw)
In-Reply-To: <m2o9yht5ie.fsf@gmail.com>
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
prev parent reply other threads:[~2017-02-06 20:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-05 5:24 help using/understanding syntax tables Peter
2017-02-05 8:18 ` Helmut Eller
2017-02-06 20:12 ` Peter [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=488abaae-bdbd-4f88-b79b-153c459729ae@googlegroups.com \
--to=peter.milliken@gmail.com \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.