On 09/09/12 10:07, Tony Mechelynck wrote (on vim_use):
On 09/09/12 08:05, Benjamin R. Haskell wrote:
[...]
[This is the GTK+ section that is absent.]

The rest of your output is also not present in my build, but that makes
sense as (AFAIK) it's all GNOME-specific.

So, these headings are not there:

Bonobo activation Support
GNOME Library
Session management
GNOME GUI Library


Bonobo, Session management and, of course, GNOME Library and GNOME GUI
are all dependent on GNOME. Maybe just move the lines about -? and
--help out of the #ifdef FEAT_GUI_GNOME (they are still inside
gui_gtk_x11.c which is not compiled into non-GTK builds), but maybe
there is something else which make those switches not work correctly if
built without GNOME? I guess I'll enable the mq extension on my Vim
repository, make the change as an mq patch, test it, and if it seems to
work, propose it to Bram.


best regards,
Tony.

(Discussion moved from vim_use to vim_dev)

Well, I compiled Vim 7.3.659 with GTK2 but not GNOME with the attached patch; the -? and --usage switches give no error but they do nothing, and the editor starts; --help gives nothing more than when it was inside the Gnome #ifdef.

Any ideas?


Best regards,
Tony.
--
Oh, well, I guess this is just going to be one of those lifetimes.

--
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
# HG changeset patch
# Parent 1052677493beb941eab0d1e33d63c73ee4148350
# User Tony Mechelynck <[email protected]>
move GTK help switches out of #ifdef FEAT_GUI_GNOME

diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -350,24 +350,24 @@ static const cmdline_option_T cmdline_op
     {"--sm-config-prefix",	ARG_FOR_GTK|ARG_HAS_VALUE},
     {"--sm-disable",		ARG_FOR_GTK},
     {"--oaf-ior-fd",		ARG_FOR_GTK|ARG_HAS_VALUE},
     {"--oaf-activate-iid",	ARG_FOR_GTK|ARG_HAS_VALUE},
     {"--oaf-private",		ARG_FOR_GTK},
     {"--enable-sound",		ARG_FOR_GTK},
     {"--disable-sound",		ARG_FOR_GTK},
     {"--espeaker",		ARG_FOR_GTK|ARG_HAS_VALUE},
-    {"-?",			ARG_FOR_GTK|ARG_NEEDS_GUI},
-    {"--help",			ARG_FOR_GTK|ARG_NEEDS_GUI|ARG_KEEP},
-    {"--usage",			ARG_FOR_GTK|ARG_NEEDS_GUI},
 # if 0 /* conflicts with Vim's own --version argument */
     {"--version",		ARG_FOR_GTK|ARG_NEEDS_GUI},
 # endif
     {"--disable-crash-dialog",	ARG_FOR_GTK},
 #endif
+    {"-?",			ARG_FOR_GTK|ARG_NEEDS_GUI},
+    {"--help",			ARG_FOR_GTK|ARG_NEEDS_GUI|ARG_KEEP},
+    {"--usage",			ARG_FOR_GTK|ARG_NEEDS_GUI},
     {NULL, 0}
 };
 
 static int    gui_argc = 0;
 static char **gui_argv = NULL;
 
 static const char *role_argument = NULL;
 #if defined(FEAT_GUI_GNOME) && defined(FEAT_SESSION)

Raspunde prin e-mail lui