help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: is there a human readable way to display syntax table?


From: Nikolaj Schumacher
Subject: Re: is there a human readable way to display syntax table?
Date: Sun, 12 Oct 2008 18:13:41 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin)

Xah <xahlee@gmail.com> wrote:

> when creating a syntax table while writing a new mode, i need to pick
> a syntax table to inherit.

You don't need to.  You can (if that saves you work).

> I'm mostly interested in seeing which of the ascii chars's classes, in
> the standard-syntax-table, text-mode- syntaxt-table, or
> c-mode-syntax-table.

(with-syntax-table c-mode-syntax-table
  (let ((c 0))
    (while (< c ?~)
      (insert (format "%c: %c\n" c (char-syntax c)))
      (incf c))))


regards,
Nikolaj Schumacher




reply via email to

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