Sorry for the long delay. Your mail got hung up in the mail system
(but that's probably my responsibility, anyway, *sigh*).
Marcus Harnisch writes:
In an attempt to claim success using recent CEDET and XEmacs, I
figured that we are missing the function #'minibufferp from FSF Emacs.
A cheap imitation would be this:
(defun minibufferp (&optional buf)
"Return t if buffer is a minibuffer.
No argument or nil as argument means use current buffer as buffer.
buffer can be a buffer or a buffer name."
(if (string-match "^ \\*Minibuf-[0-9]+\\*$"
(if (stringp buf)
buf
(buffer-name buf)))
t))
That seems reasonable.
On the web I found this, which I am not sure is fully compatible to
FSF's version, since I believe it wouldn't work with multiple
minibuffers.
(eq (window-buffer (minibuffer-window))
<buffer argument>)
I agree, that would fail. It would only handle active minibuffers. I
suppose CEDET is doing something brilliant like mapping over all
buffers except minibuffers, so that inactive minibuffers are significant?
Would any implementation best placed in fsf-compat or do we have any
plans to officially support anything like this?
You'd have to ask Vin if he'd be willing to accept a patch for 21.4
(it probably depends on whether the C structures would need to be be
changed and things like that), but I see no reason why a patch to
implement properly and efficiently would be refused for 21.5. I would
say the best strategy in the short run would be the heuristic function
based on buffer name above in fsf-compat, so that all versions of
XEmacs would benefit, and something more effective in 21.5 (and maybe
21.4).
Steve
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta