AUCTeX and XEmacs
dev.null at iwi.uni-sb.de
Thu Sep 2 04:09:22 EDT 2004
* Stephen J. Turnbull (2004-09-02) writes:
>>>>>> "Ralf" == Ralf Angeli <dev.null at iwi.uni-sb.de> writes:
> Ralf> There are cases where the content of the LaTeX macro spans
> Ralf> several lines in the buffer. This is handled nicely by
> Ralf> Emacs where the display property of an overlay can hold
> Ralf> linebreaks. In XEmacs the end-glyph property of an extent
> Ralf> is used with a glyph made of the contents of the LaTeX
> Ralf> macro. Unfortunately linebreaks will vanish if the
> Ralf> respective string is transformed to a glyph.
> It's a hack but what you probably could do is use a layout glyph. A
> layout glyph is a compound glyph like a TeX box. It is either an hbox
> or a vbox (determined by a property in the layout's initializer).
Hm, I doubt that a box would be useful for content with a shape like
where I want to collapse/expand the "x" content only and leave the
dotted stuff alone.
> Unfortunately this is not documented at all, I'm afraid. I've got a
> bit in a workspace for 21.5, but the best place to look is in
> dialog-items.el, I think, which gives an example of a complex layout
> (a search dialog).
Does this work for you? I have a compiled CVS XEmacs here (about two
weeks old) which I started out of its build directory (so it is not
installed properly yet). If I click on "Edit --> Find..." nothing
I took a part of `make-search-dialog' for testing purposes, put it
into a function
(defun foo (from to)
(let ((extent (make-extent from to))
:border [string :data "Search"]
:justify top ; implies left also
:items ([string :data "Search for:"])])])))
(set-extent-property extent 'end-glyph glyph)))
and this doesn't do anything either. Did I miss something?
More information about the XEmacs-Beta