From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Find all commands bound to key prefix Date: Fri, 4 Apr 2008 11:55:40 +0200 Message-ID: <2B03268C-6CA6-4B05-8ED8-A975E7FBEA05@Web.DE> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1207302984 11395 80.91.229.12 (4 Apr 2008 09:56:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Apr 2008 09:56:24 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Seung Jun Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 04 11:56:56 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jhif6-00042U-VF for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Apr 2008 11:56:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhieU-0000pe-EP for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Apr 2008 05:56:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JhieB-0000od-B9 for help-gnu-emacs@gnu.org; Fri, 04 Apr 2008 05:55:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jhie9-0000o6-HJ for help-gnu-emacs@gnu.org; Fri, 04 Apr 2008 05:55:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jhie9-0000o3-E8 for help-gnu-emacs@gnu.org; Fri, 04 Apr 2008 05:55:45 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jhie9-0005Gf-1m for help-gnu-emacs@gnu.org; Fri, 04 Apr 2008 05:55:45 -0400 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate01.web.de (Postfix) with ESMTP id 42C8AD9E5B28; Fri, 4 Apr 2008 11:55:43 +0200 (CEST) Original-Received: from [195.4.206.58] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.109 #226) id 1Jhie7-0000ZG-00; Fri, 04 Apr 2008 11:55:43 +0200 In-Reply-To: X-Mailer: Apple Mail (2.753) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX18gV+lG/xH1AhUeeCrYI587nnltdk7/k/8cmuwo iBjroiKX9mC6P9Yv7I3PmAcw5F0UNFp3RSVqhY1tDEThZlIwKV KXWK/iwAko+TscCpU0uA== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53038 Archived-At: Am 03.04.2008 um 21:37 schrieb Seung Jun: > I'd like to see a list of commands that are bound to key sequences > that starts with some prefix (e.g., C-x C-v). How do I do that? C-h b =96 it creates a *Help* buffer that will show all "key =20 translations." Now mark the whole buffer and apply a shell-command on that region =20 (M-|): M-| | egrep '^' | sort -u The egrep command takes a regular expression ('^' is part of that and =20= stands for: "at the beginning of the line", the '' part =20 needs to be substituted with your search pattern, i.e., C-x C-v) and =20 tries to find matching lines in the marked region. The final sort =20 command removes all duplicates (-u) and presents egrep's findings in =20 a sorted form. -- Greetings Pete =3D=3D=3D -Q =3D=3D<__/% >> _____________(_)____@_____________________________