[net.emacs] syntax tables

debray@sbcs.UUCP (Saumya Debray) (08/23/83)

Given an arbitrary buffer, is there a way to determine the name of the
syntax-table associated with that buffer?

Saumya Debray
SUNY at Stony Brook
... philabs!sbcs!debray

ellis@FLAIRMAX.UUCP (Michael Ellis) (08/26/83)

    Now that you mention it, "dump-syntax-table" doesn't seem to work for
    me either... it always gives the dump for "fundamental mode".  Hmm...
    it worked only a few months ago.
     
    While we're on the topic of syntax tables, has anyone ever fixed
    C-style comments to work correctly in Gosmacs ? In my version (I don't
    know what number it is - we call it "SRIemacs" - the first two letters
    mean "simple & reliable", I think), things like apostrophes enclosed in
    comments, such as:

    {
	this (is, c, code);		/* Here's a problem comment */
	...
    }

    ...cause syntax recognition to get lost when trying to match bracketing
    {}'s. Gosmacs wants to find the non-existent match for what it thinks
    is a single quote - really only a commented apostrophe.

    This bug makes things like "indent-C-procedure" almost useless.

    Michael Ellis - Fairchild AI Lab - Palo Alto CA - (415) 858-4270

rbbb.rice@Rand-Relay@sri-unix.UUCP (08/28/83)

From:  David.Chase <rbbb.rice@Rand-Relay>

That's an easy fix -- add these two lines to syntax.c.  I made these
fixes to 54, and they ported verbatim to 264.

anywhere you feel like putting it:

StrFunc (GetSyntaxTable,bf_mode.md_syntax->s_name)

and in the initialization routine:

    defproc (GetSyntaxTable, "get-syntax-table");