From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.help Subject: Re: How to truly unbind global bindings? Date: Tue, 25 Nov 2014 20:04:23 +0100 Message-ID: References: <98be95d8-086a-4a28-aa34-937c53e2c4de@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1416942306 9242 80.91.229.3 (25 Nov 2014 19:05:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2014 19:05:06 +0000 (UTC) Cc: help-gnu-emacs To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 25 20:04:59 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XtLQ2-0001W6-Lf for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Nov 2014 20:04:58 +0100 Original-Received: from localhost ([::1]:59024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtLQ2-0003xi-7z for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Nov 2014 14:04:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtLPj-0003x4-3S for help-gnu-emacs@gnu.org; Tue, 25 Nov 2014 14:04:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtLPU-0007Gx-UY for help-gnu-emacs@gnu.org; Tue, 25 Nov 2014 14:04:39 -0500 Original-Received: from mail-la0-x235.google.com ([2a00:1450:4010:c03::235]:62349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtLPU-0007Gl-N5 for help-gnu-emacs@gnu.org; Tue, 25 Nov 2014 14:04:24 -0500 Original-Received: by mail-la0-f53.google.com with SMTP id gm9so1135573lab.26 for ; Tue, 25 Nov 2014 11:04:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Osvsa8sWt0uE9MPttWVIBxIbkkC/KPkEVqGtR0wM8Co=; b=IJaYqPNRnSTgMo2Q3b3r1qwl+ZXPPWpfk9aEU7HrcdjXKPnzraSGE5j03NL5tp6gZf wzy94g6JbiJSxmed8GwivQZJT3zW8Hg93DtxbmTvBih7fhfpzN9YuB2FAIixcz4ZgiEj uaoBYWtNlIcTKlpzrryhVhRSjy+PWJPc8qDY7YC8w3Brc2HttK7fFvYbOG68L4YRQzib /sTX9KFtETV1ygLV/xaElcpdq9WgEuif/SGRjPBtGVOC13weyMSCvYwi5HDvJqjQNzzE 2kUWX2dW4e6O8VLviVvNoS+CiuMju03rjalWNMkEbcLxk1YIQLicA97qILIpq0APR+sx zOCA== X-Received: by 10.152.22.135 with SMTP id d7mr29595855laf.46.1416942263893; Tue, 25 Nov 2014 11:04:23 -0800 (PST) Original-Received: by 10.112.21.136 with HTTP; Tue, 25 Nov 2014 11:04:23 -0800 (PST) In-Reply-To: <98be95d8-086a-4a28-aa34-937c53e2c4de@default> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::235 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101188 Archived-At: 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?