On Thu, Jun 21, 2012 at 11:42 PM, Stephen J. Turnbull <stephen(a)xemacs.org>wrote:
Raymond Toy writes:
> Does xemacs have the equivalent of emacs display-message-or-buffer?
It would help if you included the docstring of things you want
equivalents for.
Sorry! Here's the docstring for it:
"Display MESSAGE in the echo area if possible, otherwise in a pop-up
buffer.
MESSAGE may be either a string or a buffer.
A buffer is displayed using `display-buffer' if MESSAGE is too long for
the maximum height of the echo area, as defined by `max-mini-window-height'
if `resize-mini-windows' is non-nil.
Returns either the string shown in the echo area, or when a pop-up
buffer is used, the window used to display it.
If MESSAGE is a string, then the optional argument BUFFER-NAME is the
name of the buffer used to display it in the case where a pop-up buffer
is used, defaulting to `*Message*'. In the case where MESSAGE is a
string and it is displayed in the echo area, it is not specified whether
the contents are inserted into the buffer anyway.
Optional arguments NOT-THIS-WINDOW and FRAME are as for `display-buffer',
and only used if a buffer is displayed."
There's probably a simple equivalent, but the implementation in emacs
doesn't run in xemacs (unsurprisingly). I can't remember right now, but I
think it's because xemacs doesn't have the variables resize-mini-windows
and max-mini-window-height.
Ray
P.S. The function isn't very big. It's 67 lines including docstring.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta