[comp.emacs] Syntax-tables can't represent word-internal characters

ram-ashwin@YALE.ARPA (Ashwin Ram) (12/05/87)

When trying to pick up words from a buffer (e.g., for forward-word,
delete-word, or for ispell-word (spelling checking), etc. etc.), it would be
nice to be able to specify characters that can be inside words but not on
their boundaries.  E.g., you want the word don't to be treated as one word,
but in something like ``real'' you don't want the quotes to be considered
part of the word.

I would like to be able to specify the syntax-table-entry for the quote
character ' in text buffers such that they don't delimit words when
surrounded by word constituents, but they do delimit words when adjacent on
either side to non-word-constituents (or to other non-word-internal
characters such as another ').  Is there any way to do this?

If not, perhaps we could use one of the blank positions in the "w   " and
"W   " arguments to modify-syntax-entry to specify whether the character is a
"true" word constituent, or a "word-internal" word constituent.

Any thoughts on this?

-- Ashwin Ram --

ARPA:    Ram-Ashwin@cs.yale.edu
UUCP:    {decvax,linus,seismo}!yale!Ram-Ashwin
BITNET:  Ram@yalecs