Subject: bug#51658: [PATCH] Haiku port (again)

From: Eli Zaretskii <[email-masked]>
Date: Sat, 20 Nov 2021 11:56:31 +0200

> From: Po Lu <[email-masked]>
> Cc: [email-masked]
> Date: Sat, 20 Nov 2021 17:34:44 +0800
> 
> >>  (defun tooltip-show-help (msg)
> >>    "Function installed as `show-help-function'.
> >>  MSG is either a help string to display, or nil to cancel the display."
> >> -  (if (display-graphic-p)
> >> +  (if (and (display-graphic-p)
> >> +           (or (not (eq window-system 'haiku)) ;; On Haiku, there isn't a reliable way to show tooltips
> >> +                                               ;; above menus.
> >> +               (not (menu-or-popup-active-p))))
> 
> > This seems to contradict what you wrote in the user manual about
> > tooltip options?
> 
> This only disables tooltips on Haiku if a menu or popup is active, as
> Haiku doesn't let you map windows or tooltips above them.

But the manual doesn't mention that limitation, does it?

Does this limitation also affect tooltips produced by Emacs as special
frames?

> Here's a patch with the other issues you mentioned fixed.  Please see if
> it's better, thanks.

If you fixed everything and feel confident you did, just install it.
If there are some places where you want my opinion, please show only
those few places.

Thanks.