mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] Deleting key bindings


Chronological Thread 
  • From: Henri Lesourd <address@hidden>
  • To: Armin Straub <address@hidden>
  • Cc: address@hidden
  • Subject: Re: [TeXmacs] Deleting key bindings
  • Date: Sat, 25 Mar 2006 18:27:03 +0100

Armin Straub wrote:

Hi,

I want to remove some key bindings, e.g. "| >" which is defined in math/math-kbd.scm. I found the macro kbd-remove in kernel/gui/kbd-define.scm which does exactly this when issuing
(kbd-remove (:mode in-math?) "| >")

However, this macro is overwritten in generic/generic-edit.scm, so I don't know how to access it in my-init-texmacs.scm.

My current solution is the following: I edited kernel/gui/kbd-define.scm and copied kbd-remove to another macro kbd-remove-mapping. Then the following works in my-init-texmacs.scm:
(import-from (utils edit variants))
(import-from (texmacs keyboard windows-kbd))
(import-from (math math-kbd))
(kbd-remove-mapping (:mode in-math?) "| >")

The help also mentions the use of
(lazy-keyboard-force)
but this leads to the following error on startup of texmacs
Fatal error: No active view in 'tm_server_rep::get_meta'

Although my "solution" is working at the moment, I don't like it since I had to edit kernel/gui/kbd-define.scm. What should I do instead?


The lazy solution should work, but the lazy loading
feature is currently buggy. It is to be corrected
in some months...

Best, Henri



  • Deleting key bindings, Armin Straub, 03/25/2006
    • Re: [TeXmacs] Deleting key bindings, Henri Lesourd, 03/25/2006

Archive powered by MHonArc 2.6.19.

Top of page