At 10:49 AM 2/19/02 +0900, Stephen J. Turnbull wrote:
Well, if you were careful to set up your text glyphs so that the
"alpha" glyph was always reused when you see "\alpha" in the TeX
buffer, it would be nearly the same. But AFAIK, if you (very
naturally) scanned over the buffer for "\\\(alpha\|beta\|...\)", then
did (make-glyph (match-string 1)), you would get a new glyph for each
occurance of "\alpha". The idea here would be to make the glyph
instantiator be an index into a font (normally simply a character)
rather than a string. This way the glyphs for all occurances of
"\alpha" would automatically be eq (in Emacs Lisp).
Gotcha.
Andy> Actually what you want to do could be acomplished using
the
Andy> new layout glyph support.
They're unsupported as far as I can tell: no docs. Neither the
Lispref (C-h i m lispref m glyphs) nor C-h v make-glyph mentions
them. You want customers, you gotta market your product. :-)
C-h f make-image-specifier
non-obvious I know, but not non-existent
andy