From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Is there a way to unset all Emacs key bindings? Date: Thu, 16 Jan 2014 23:47:19 -0700 Message-ID: References: <87d2jrkd3o.fsf@nl106-137-194.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1389941247 6571 80.91.229.3 (17 Jan 2014 06:47:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jan 2014 06:47:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 17 07:47:33 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 1W43DJ-0004MR-E6 for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Jan 2014 07:47:33 +0100 Original-Received: from localhost ([::1]:36445 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W43DJ-0003UM-3G for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Jan 2014 01:47:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W43D2-0003UF-Lr for help-gnu-emacs@gnu.org; Fri, 17 Jan 2014 01:47:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W43Cv-0002iV-92 for help-gnu-emacs@gnu.org; Fri, 17 Jan 2014 01:47:16 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:35223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W43Cv-0002iM-2J for help-gnu-emacs@gnu.org; Fri, 17 Jan 2014 01:47:09 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W43Cs-0003jS-IR for help-gnu-emacs@gnu.org; Fri, 17 Jan 2014 07:47:06 +0100 Original-Received: from 70-59-41-30.hlrn.qwest.net ([70.59.41.30]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Jan 2014 07:47:06 +0100 Original-Received: from kevin.d.rodgers by 70-59-41-30.hlrn.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Jan 2014 07:47:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 70-59-41-30.hlrn.qwest.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 In-Reply-To: <87d2jrkd3o.fsf@nl106-137-194.student.uu.se> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:95457 Archived-At: On 1/16/14 11:14 AM, Emanuel Berg wrote: > (use-global-map '(keymap nil)) Or: (use-global-map (make-keymap)) And on a suitable hook: (use-local-map (make-sparse-keymap)) But according to the "Active Keymaps" node of the Emacs manual, there may be other keymaps to disable to make emacs completely unusable: +------------------------------------------------------------------------------- | Normally the active keymaps are the `keymap' property keymap, the | keymaps of any enabled minor modes, the current buffer's local keymap, | and the global keymap, in that order. Emacs searches for each input | key sequence in all these keymaps. *Note Searching Keymaps::, for more | details of this procedure. +------------------------------------------------------------------------------- And here is what the "Searching Keymaps" node says: +------------------------------------------------------------------------------- | After translation of event subsequences (*note Translation Keymaps::) | Emacs looks for them in the active keymaps. Here is a pseudo-Lisp | description of the order and conditions for searching them: | | (or (if overriding-terminal-local-map | (FIND-IN overriding-terminal-local-map) | (if overriding-local-map | (FIND-IN overriding-local-map) | (or (FIND-IN (get-char-property (point) 'keymap)) | (FIND-IN-ANY emulation-mode-map-alists) | (FIND-IN-ANY minor-mode-overriding-map-alist) | (FIND-IN-ANY minor-mode-map-alist) | (if (get-text-property (point) 'local-map) | (FIND-IN (get-char-property (point) 'local-map)) | (FIND-IN (current-local-map)))))) | (FIND-IN (current-global-map))) +------------------------------------------------------------------------------- -- Kevin Rodgers Denver, Colorado, USA