From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Barzilay Newsgroups: gmane.emacs.devel Subject: Is there a way to make a key really unbound? Date: Thu, 19 Nov 2015 13:56:41 -0500 Message-ID: <22094.7017.883532.455867@lambda.ccs.neu.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1447959446 22942 80.91.229.3 (19 Nov 2015 18:57:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2015 18:57:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 19 19:57:12 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZzUO9-0004Qj-Lx for ged-emacs-devel@m.gmane.org; Thu, 19 Nov 2015 19:56:57 +0100 Original-Received: from localhost ([::1]:43573 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzUO9-0000qa-79 for ged-emacs-devel@m.gmane.org; Thu, 19 Nov 2015 13:56:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzUO4-0000qI-GJ for emacs-devel@gnu.org; Thu, 19 Nov 2015 13:56:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZzUNw-0005pX-Sh for emacs-devel@gnu.org; Thu, 19 Nov 2015 13:56:52 -0500 Original-Received: from mail-qg0-x22f.google.com ([2607:f8b0:400d:c04::22f]:32913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzUNw-0005op-Lq for emacs-devel@gnu.org; Thu, 19 Nov 2015 13:56:44 -0500 Original-Received: by qgea14 with SMTP id a14so57559000qge.0 for ; Thu, 19 Nov 2015 10:56:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=barzilay-org.20150623.gappssmtp.com; s=20150623; h=from:mime-version:content-type:content-transfer-encoding:message-id :date:to:subject; bh=3uWh1YHzZ44j35wMxhrNqPaJ19kti2FJ9CRqKI1C/FM=; b=HJK3DsTagVBUOEfUiWLjcGLJTkHYWrcbfuEdV1k4KhlgF4YclQs4nN2DJgypVAZyg+ xGvuyOgDjFmr4fttpoh20SbrLQXocdP+mPONsA8iD93U/mEtaEDbkjqiGJXO1U02rqpu vu3ejfonhQf1Um+ei3ep1LdYgWWpaRfZLRF7bApARA/MTxFsty2916AfVJ06JYJsHSmg VgWQConYrJpbTKyTjdPtLGnlwKsCrwyTbgafdZAmR/cNjx7GIxveeK/nOgzW+dUFNDRj jagkJBDxNLsFPxAlKXrZVRUQF8zRmp1gPuIP72DfoLJeyFTetG/kuWDrbZnA5LfFnC9m 9vnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:content-type :content-transfer-encoding:message-id:date:to:subject; bh=3uWh1YHzZ44j35wMxhrNqPaJ19kti2FJ9CRqKI1C/FM=; b=Yeq+CksTteUKKuyZmYJG4IMqp8oGrE+6msStthiinyhWxtue9PiLQLoFKBaopGX612 A/Yvksm5qmHTAdN+mf8tcqxWkYOos+IyGwM6Yc0rzsuJOqSS8DRzruaulKALBLuR1vIa 2JzxhspgthMohqDf5sQkCVY2Z1WqKVpZXT6hMYKpKu3Vhe6AVyiXGq+wTf0muuDqlXMp Ds4q5O3wKjOkJepili7L6aNDZWeCAYH0MivUS362Nw8TCutoNHSg1Eu4HmLx+hs/MZbx Eev22ViNCNGz7gscD2lv35lkwilFwHKoFRBSuLEA3ofUM1XpmSuym2p/mBxzHyEBWvJ3 y9qQ== X-Gm-Message-State: ALoCoQm3rWJ+DyA8voRFl+HTtKd7INsKgZEdEjeoVWvydvxW8b6mX6Ds3IwIrrsih5tckjvyMPws X-Received: by 10.140.28.194 with SMTP id 60mr8731051qgz.103.1447959403871; Thu, 19 Nov 2015 10:56:43 -0800 (PST) Original-Received: from lambda.ccs.neu.edu (lambda.ccs.neu.edu. [129.10.115.115]) by smtp.gmail.com with ESMTPSA id w18sm2692066qgw.1.2015.11.19.10.56.42 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 Nov 2015 10:56:43 -0800 (PST) X-Mailer: VM 8.2.0a under 24.5.1 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c04::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:194814 Archived-At: I'm trying to properly address a request to make calculator.el treat "E" as if it were "e" since there is no binding specifically for "E". This works in the electric mode since it specifically uses the `calculator-mode-map' as a global map, which means that the unbound "E" gets translated to its bound unshifted version. However, in the regular non-electric mode this can obviously not be done. (If it is, then the shift translation works as intended, but the global map is lost...) I think that this is because "E" gets the default `self-insert-command' binding from the global map, which is then translated to `undefined' due to my use of `suppress-keymap'. I tried to manually tweak that remapping to `nil' which doesn't help. So, is there some way to make a key really unbound -- rather than getting `undefined'? Or, is there some other way to bind a key to some "try-this-key-with-shift-off" function? (Without this, the only thing I can think of is to make the code that sets up the map explicitly bind upper-case letters too when a lower-case binding is made, but that sounds like an ugly hack.) -- ((x=>x(x))(x=>x(x))) Eli Barzilay: http://barzilay.org/ Maze is Life!