From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: List all bindings in a keymap Date: Tue, 25 Sep 2012 04:09:03 +0400 Message-ID: <5060F61F.7060902@yandex.ru> 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 1348531751 6751 80.91.229.3 (25 Sep 2012 00:09:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Sep 2012 00:09:11 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: pjb@informatimago.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 25 02:09:13 2012 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 1TGIi9-00025O-81 for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Sep 2012 02:09:13 +0200 Original-Received: from localhost ([::1]:53513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGIi3-0003qD-Ur for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Sep 2012 20:09:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGIhz-0003pt-74 for help-gnu-emacs@gnu.org; Mon, 24 Sep 2012 20:09:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGIhx-0002OB-Sd for help-gnu-emacs@gnu.org; Mon, 24 Sep 2012 20:09:03 -0400 Original-Received: from forward2.mail.yandex.net ([77.88.46.7]:41230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGIhx-0002O5-FZ for help-gnu-emacs@gnu.org; Mon, 24 Sep 2012 20:09:01 -0400 Original-Received: from smtp2.mail.yandex.net (smtp2.mail.yandex.net [77.88.46.102]) by forward2.mail.yandex.net (Yandex) with ESMTP id BE16412A23DB; Tue, 25 Sep 2012 04:08:59 +0400 (MSK) Original-Received: from smtp2.mail.yandex.net (localhost [127.0.0.1]) by smtp2.mail.yandex.net (Yandex) with ESMTP id 9A650E20580; Tue, 25 Sep 2012 04:08:59 +0400 (MSK) Original-Received: from dynamicip-176-214-37-153.pppoe.spb.ertelecom.ru (dynamicip-176-214-37-153.pppoe.spb.ertelecom.ru [176.214.37.153]) by smtp2.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 8wZmUoxW-8xZaSDwl; Tue, 25 Sep 2012 04:08:59 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1348531739; bh=ztad7tFKJCn42L6wBmJzjR1s1u8j6b+CBb8hIWbC6V8=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: Content-Type:Content-Transfer-Encoding; b=Zy/sMKvnMF8uF7hndShq02YF4rUqZxGtQMcuEPCQ04ZRvmo82gqZIdLpbYTx02+di zuH5iYS32s3p94czCfcFZCKhwstdg8plPUqWg9kiNltVY/BI+8f4GEt+KGJR8U0x8i xJAXf8JNPGibya/ac+ijMIFvFOum6TJIgEMnEXVg= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 77.88.46.7 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:86904 Archived-At: "Pascal J. Bourguignon" writes: > Dmitry Gutov writes: >> How do I do that, short of traversing the keymap structure manually? > > Check > https://gitorious.org/com-informatimago/emacs/blobs/blame/256fae6797241e707b3bc79cc7812a82074948a1/pjb-emacs.el#line1750 Thanks, but I got a simpler solution with `map-keymap' working, see: https://github.com/dgutov/diff-hl/blob/a01d2917a07d91269c13901bb65fd7ef54766fd4/diff-hl.el#L327