help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to truly unbind global bindings?


From: Alexander Shukaev
Subject: Re: How to truly unbind global bindings?
Date: Tue, 25 Nov 2014 20:04:23 +0100

Since I have wiped out the `global-map' now, I don't have the following:

Global Bindings:
key             binding
---             -------

SPC .. ~ self-insert-command
> \200 .. self-insert-command
> \200 .. \377 self-insert-command


I would have to recreate that manually in my Emacs configuration. I found
the relevant C code in "cmds.c":

  for (n = 040; n < 0177; n++)
    initial_define_key (global_map, n, "self-insert-command");
#ifdef MSDOS
  for (n = 0200; n < 0240; n++)
    initial_define_key (global_map, n, "self-insert-command");
#endif
  for (n = 0240; n < 0400; n++)
    initial_define_key (global_map, n, "self-insert-command");


I understand that the first loop is simply pushing the printable 7-bits of
ASCII table into the `global-map'. Could anyone elaborate what are the rest
loops for? Do I really need them?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]