• In Normal gvim with Motif GUI in GUI mode, :echo exists(':tearoff')
gives 0 but menus can be teared off from the menu bar with the mouse
• In the same in Console mode, :echo exists(':tearoff') gives 2
• In Huge gvim with GTK3 GUI (where menus cannot be teared off with
the mouse), :echo exists(':tearoff') gives 2 even in the GUI.
• In all these cases, :tearoff PopUp (or with any other menu name)
gives error "E319: Sorry, the command is not available in this
version."
In my humble opinion, E319 ought never to happen if a prior check with
exists(':command') has given 2.
:help tear-off-menus says that tearoff menus are available with Motif
or GTK2 GUIs but not GTK3 version 3.4 or later and indeed, I can tear
off menus (but only with the mouse) in Motif gvim but not in GTK3
3.24.38.
• Maybe the Motif Vim should evaluate exists(':tearoff') to zero even
when not in GUI mode?
• Maybe the GTK3 GUI with GTK3 3.4 or later should evaluate
exists('tearoff') to zero in all cases?
• Maybe the help for :tearoff (which is in gui_w32.txt) should insist
on the fact that this command applies only to Windows?
• Or, contrariwise, maybe the :tearoff command should be extended to
Motif and GTK2 GUIs, which have tearoff menus (but only by mouse
AFAICT)?
Best regards,
Tony.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/CAJkCKXv8%2BALNFPYukMOkYUKYW3Jazn55ytQx4tA3nTweqVNmig%40mail.gmail.com.