From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Kost Newsgroups: gmane.emacs.help Subject: Re: unexpected result with keymap inheritance Date: Mon, 21 Nov 2016 20:12:40 +0300 Message-ID: <87twb0sqnr.fsf@gmail.com> References: <20161121002838.rkoniry5n6aemrzt@doriath.local> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1479748404 5889 195.159.176.226 (21 Nov 2016 17:13:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 Nov 2016 17:13:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 21 18:13:14 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8s9X-0008KM-VV for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Nov 2016 18:13:12 +0100 Original-Received: from localhost ([::1]:50796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8s9b-00043N-BZ for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Nov 2016 12:13:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8s99-00042k-V1 for help-gnu-emacs@gnu.org; Mon, 21 Nov 2016 12:12:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8s95-0001e6-Sx for help-gnu-emacs@gnu.org; Mon, 21 Nov 2016 12:12:47 -0500 Original-Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:37587) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c8s95-0001cR-LQ for help-gnu-emacs@gnu.org; Mon, 21 Nov 2016 12:12:43 -0500 Original-Received: by mail-wm0-x234.google.com with SMTP id t79so156260264wmt.0 for ; Mon, 21 Nov 2016 09:12:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=MGklzL/+uKevfNiP1CpupskmVjP4nJCE04Lm14/qoZs=; b=U0wsv8TJzTtwibrLoBb8J7gX0uvQNHWXzBnbv2P9hBurZsP9HEhV4OuReJ276wBKWY gnQ5D8AyDqeB8bawbT8i5LTVodyhQFpSWj3UQXlp2q3ApLqyh/1etvqADA5sSblxFUkG 7CSncbKxB+3joDorCKlZTsroAVEZqF4ax2kDC+h/7YtC+DqHPrBp4XGN7mECahObS1jb 9HRkhsS103AKgGcLScZCc2QE8vUPu56Focf0R481/w4BJ5G5NSGslNlTJREQB03tjDsB lh65zPbjk3ZMtxq0dSdmXwDTaZH/ypZs/pbc/aT3naCK1+EF/fVzJ2ColUNmwfH2u+qR 4ckg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=MGklzL/+uKevfNiP1CpupskmVjP4nJCE04Lm14/qoZs=; b=K2GUCtJF/sUx0rYwc16gSRX6s95ApIdyXgQtvch9Tr3Fb+oRk1nOHk2dda1v0l1Ps6 5UR1jiPw+fDI/vpMefjEgu/hhILOWMjxhD3YJ7lpYpJvOzDsiMYFq4sviecE+wJ2+10K CnvXeNMBHt5wvuq9DmcSqxWB8gbS3u58stCBmliscWiNW1/wg/GOVGk7sYzcmu5moaaJ mozyb6dkK2B2Q4/SrX1kzhsb6yOa8go8QVrGAIP9VMUAlWXvPUFq8KDSJ+XUpMTuflw7 Bsi2l6vQvMWNfKnQbJgHyQ0nLidgEa2udvQhgHzQ242cRDgJSpYzLZwUO+S1RXt48hBS WgZg== X-Gm-Message-State: AKaTC011zfC2DuCOmBzWC+1LgX32VYRtWSGUm09qjFna4rAV5BGiL0+iAczAoxpLVV9TZQ== X-Received: by 10.46.76.10 with SMTP id z10mr9073805lja.48.1479748360611; Mon, 21 Nov 2016 09:12:40 -0800 (PST) Original-Received: from leviafan ([217.107.192.156]) by smtp.gmail.com with ESMTPSA id 23sm5534303ljf.48.2016.11.21.09.12.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Nov 2016 09:12:40 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Mon, 21 Nov 2016 09:12:58 -0500") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::234 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:111756 Archived-At: Stefan Monnier (2016-11-21 09:12 -0500) wrote: >> (set-keymap-parent parent-map global-map) > > Since `key-binding` checks global-map after the buffer-local map anyway, > putting global-map as the parent of your buffer-local map has basically > no effect. > >> (define-key child-map [?a] nil) > > This does not *remove* a binding from child-map. Instead it marks the > key as unbound, thus hiding any potential corresponding binding in > parent keymaps. > > Emacs does not provide a "remove binding" operation on keymaps. I miss this "remove key binding" feature a lot! If I may ask, do you know whether there are plans to add such a feature? Thanks. -- Alex