After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 241187 - Emacs keybindings ...
Emacs keybindings ...
Status: RESOLVED FIXED
Product: GtkHtml
Classification: Other
Component: capplet
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkhtml-maintainers
Evolution QA team
: 241303 242105 242155 242726 242727 243443 243829 244430 244462 244760 245479 246459 246920 249778 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-04-11 14:54 UTC by Michael Meeks
Modified: 2003-10-17 18:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Modified XML that doesn't clobber XEmacs bindings (14.80 KB, text/plain)
2003-06-10 19:34 UTC, Alain Mellan
  Details
hack to work better in emacs mode (74 bytes, patch)
2003-09-02 22:15 UTC, Larry Ewing
none Details | Review
the emacs bindings I accidentally left out of the above patch (14.34 KB, text/plain)
2003-09-02 22:17 UTC, Larry Ewing
  Details

Description Michael Meeks 2003-04-11 14:54:44 UTC
changing the Shortcuts _type setting in the capplet doesn't allow one to
save the changes (sensitize the apply/ok buttons).

It also seems to have no effect - my bindings are not emacs-like, but
perhaps this is the toplevel stealing the keypress before the embedded
widget gets it ? surely it's focused though - so that should be no problem
& it should get the events first ?.
Comment 1 Larry Ewing 2003-04-15 02:07:44 UTC
in gtk2 menu accelerators _allways_ get events before the focused
widget does.  There is virtually no way to make emacs keybindings work
well.
Comment 2 Michael Meeks 2003-04-15 09:48:14 UTC
Short of re-writing the accelerators in the UI XML ?

Try this; but the accelerators can be associated with the verb
(instead of thee menuitem), and thus it may be possible to merge in
two fragments of XML for the verb section eg.:

<cmd name="EditSelectAll" _label="_Select All" ... accel="*Control*A"/>

vs.

<cmd name="EditSelectAll" _label="_Select All" ... accel=""/>

or whatever.

Of course - that sucks cut and paste wise; I'd much prefer to use the
<keybindings/> section, but that (currently) doesn't show up in the
menuitem's accel things, and it seems that (foolishly) I let the
GtkWindow try and handle the keybinding before I did the lookup there,
so I guess that suffers the same problem of not getting the event.
Comment 3 Larry Ewing 2003-04-16 19:14:05 UTC
But even if we do that the merged accels from other controls will
happily override keybindings that have no menu item so for instance
ctrl-w and will ctr-a fire the To: entry "select all" if the editor
has removed the accel?
Comment 4 Larry Ewing 2003-04-30 03:44:46 UTC
*** bug 242105 has been marked as a duplicate of this bug. ***
Comment 5 Gerardo Marin 2003-05-01 21:39:54 UTC
*** bug 241303 has been marked as a duplicate of this bug. ***
Comment 6 Gerardo Marin 2003-05-12 16:31:42 UTC
*** bug 242726 has been marked as a duplicate of this bug. ***
Comment 7 Gerardo Marin 2003-05-12 16:32:55 UTC
*** bug 242727 has been marked as a duplicate of this bug. ***
Comment 8 Larry Ewing 2003-05-22 20:07:05 UTC
after thinking about it for a bit, if someone sends me a
GNOME_GtkHTML_Editor.xml with emacs accels and promises to maintain it
when the ui changes I'll make the editor load the right one based on
gconf key.  That should make it mostly work I think...

Comment 9 Gerardo Marin 2003-05-30 05:26:38 UTC
*** bug 243829 has been marked as a duplicate of this bug. ***
Comment 10 Gerardo Marin 2003-05-30 17:27:19 UTC
*** bug 243443 has been marked as a duplicate of this bug. ***
Comment 11 Jeffrey Stedfast 2003-06-10 18:03:30 UTC
*** bug 244430 has been marked as a duplicate of this bug. ***
Comment 12 Alain Mellan 2003-06-10 19:34:04 UTC
Created attachment 42514 [details]
Modified XML that doesn't clobber XEmacs bindings
Comment 13 Alain Mellan 2003-06-10 19:37:07 UTC
I attached a modified GNOME_GtkHTML_Editor.xml. Most of the Emacs
stuff works (C-a, C-b, C-f, C-n, C-p, C-k)
I haven't found an entry for C-w, which still tries to close the
window. :-(
Comment 14 Gerardo Marin 2003-06-11 18:10:42 UTC
*** bug 244462 has been marked as a duplicate of this bug. ***
Comment 15 Gerardo Marin 2003-06-16 20:39:30 UTC
*** bug 244760 has been marked as a duplicate of this bug. ***
Comment 16 Gerardo Marin 2003-06-19 07:43:44 UTC
Larry: have you seen the patch?
Comment 17 Gerardo Marin 2003-06-19 07:51:17 UTC
*** bug 242155 has been marked as a duplicate of this bug. ***
Comment 18 Larry Ewing 2003-06-26 16:49:14 UTC
Yeah I've seen it and I'm just waiting for some time to do the
integration work.  Until then anyone who wants the emacs keybindings
to mostly  work should replace the file that gtkhtml ships with the
one that Alain attached, of course doing that will break the ms
keybindings so beware.
Comment 19 gedeon13 2003-06-27 12:19:48 UTC
Here is a comment on behalf of someone who couldn't add it himself:

<dwmw2> as well as installing the xml file attached to this bug you
may need to run:
<dwmw2> gconftool-2 -s /desktop/gnome/interface/gtk_key_theme -t
string Emacs
Comment 20 Gerardo Marin 2003-06-27 21:15:44 UTC
*** bug 245479 has been marked as a duplicate of this bug. ***
Comment 21 Gerardo Marin 2003-07-16 23:47:18 UTC
*** bug 246459 has been marked as a duplicate of this bug. ***
Comment 22 Gerardo Marin 2003-07-25 23:14:28 UTC
*** bug 246920 has been marked as a duplicate of this bug. ***
Comment 23 Larry Ewing 2003-09-02 22:14:16 UTC
Ok I committed a quick hack to the composer to load the right binding
set based on the gconf key.  So in gtkhtml CVS emacs keybindings work
better.  I'll attach the patch here and see what ettore wants to do
about 1.4 branch.
Comment 24 Larry Ewing 2003-09-02 22:15:34 UTC
Created attachment 42877 [details] [review]
hack to work better in emacs mode
Comment 25 Larry Ewing 2003-09-02 22:17:12 UTC
Created attachment 42878 [details]
the emacs bindings I accidentally left out of the above patch
Comment 26 Gerardo Marin 2003-10-17 18:26:08 UTC
*** bug 249778 has been marked as a duplicate of this bug. ***