all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Helmut Eller <eller.helmut@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: help using/understanding syntax tables
Date: Sun, 05 Feb 2017 09:18:33 +0100	[thread overview]
Message-ID: <m2o9yht5ie.fsf@gmail.com> (raw)
In-Reply-To: 43e46d85-5b39-47b6-b42b-5e8c748b33f0@googlegroups.com

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


  reply	other threads:[~2017-02-05  8:18 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 [this message]
2017-02-06 20:12   ` Peter

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=m2o9yht5ie.fsf@gmail.com \
    --to=eller.helmut@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.