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: Wed, 23 Nov 2016 12:05:03 +0300 Message-ID: <87lgwad0sg.fsf@gmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1479891947 16927 195.159.176.226 (23 Nov 2016 09:05:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 23 Nov 2016 09:05:47 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux) Cc: "help-gnu-emacs@gnu.org" To: Edward Flanigan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 23 10:05:44 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 1c9TUp-0003Lu-Q1 for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Nov 2016 10:05:39 +0100 Original-Received: from localhost ([::1]:60346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9TUt-0006xZ-FX for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Nov 2016 04:05:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9TUM-0006vj-DF for help-gnu-emacs@gnu.org; Wed, 23 Nov 2016 04:05:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9TUE-0005Wj-SH for help-gnu-emacs@gnu.org; Wed, 23 Nov 2016 04:05:10 -0500 Original-Received: from mail-qk0-x233.google.com ([2607:f8b0:400d:c09::233]:33262) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c9TUE-0005Wd-Mm for help-gnu-emacs@gnu.org; Wed, 23 Nov 2016 04:05:02 -0500 Original-Received: by mail-qk0-x233.google.com with SMTP id x190so7517296qkb.0 for ; Wed, 23 Nov 2016 01:05:02 -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=dBB8CvfP55gOWjvZVa1nE7z73UK4zVTPDLlsHu94oz0=; b=DPvJ60h/35rnTESCKbpOgUENkSPahLPydwuJbixkux/YRZJNPN5n8/mL1pXu3w/FKe 7ezORL2D99cT8YpJEOPgYU5BA7h01sc9ris2UP/321IiIHF01xzn4UazJ1XvRT1W/aqE 3KtU6sTSd7fjrSf/1g9DIHov8wvdWlvL+pf1qT8VFwmt+s0QZ3UnpIF+NCIJqUMsoh6H c7Jki1S+d/XKizss0E5cYiEo7UjusVjsqt6ZrIm0n1aQ2oi4q/f7VqUa8aCqrKmMzpi7 N1WJHqPhZjojL3Bmj9/W1kYJeX6DjVLAJdzcQNLxLyN7/FuIbcCsvOStRV92vEBugxfs T8Ng== 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=dBB8CvfP55gOWjvZVa1nE7z73UK4zVTPDLlsHu94oz0=; b=KHBOQPmz2Pg9Dm/eGE3XtLJyf48uZl9HWQ5FU7pVkj4suEFrCFhmQ2F6lc6CoeRUfd 9E1sETLfIaKxPiZuIpPQD49QDMcbpusgc545T+0sm9Rb4zt8U9l6SpwmMn/CZqN5vEew qG+8K7ZjzzjWejoECzt6yiQ1hJKN6+99z5oS8O675UaOKm4PRKji5GeOIVJvL4GoXNIA gEcEy9pEzN13+MfR9GtTxfpdLKpqCu6OnVsQeD9OzoSmTrg6daQodeoa3ubjMCcftQvj oEq+tArR9UUaN5Qr/gm3pPAqFVQJ5oPi7AI64Z5hZSrLppiLxlxvH/XajEfpSKmG4wZ1 AyZw== X-Gm-Message-State: AKaTC00XyTbfHows6N7aPpMH4Ykp9a7vXmnOmMdWKbrfb8dC3gg+0oNofkbbFcQvHORpaw== X-Received: by 10.46.5.136 with SMTP id 130mr659940ljf.36.1479891901941; Wed, 23 Nov 2016 01:05:01 -0800 (PST) Original-Received: from leviafan ([217.107.192.156]) by smtp.gmail.com with ESMTPSA id h35sm7065073lji.29.2016.11.23.01.05.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Nov 2016 01:05:01 -0800 (PST) In-Reply-To: (Edward Flanigan's message of "Wed, 23 Nov 2016 05:43:34 +0000") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::233 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:111770 Archived-At: Edward Flanigan (2016-11-23 05:43 +0000) wrote: > I use unbind-key quite a bit. It is in bind-key.el from the external "use-package" > > (unbind-key "C-'" org-mode-map) ;; org-cycle-agenda-files If you look at "C-h v org-mode-map", you'll find there something like this: (67108903) previously it was: (67108903 . org-cycle-agenda-files) and my wish is to remove this sexp from 'org-mode-map' completely. > See if that fits your use case. No, it doesn't: 'bind-key' (thus 'unbind-key') is just a wrapper for 'define-key', and as Stefan wrote, 'define-key' does not remove a key from a keymap, it just binds it to nil. So when you press the key, you get " is undefined", while I want to remove the key (to make a key from a parent map take precedence). -- Alex