From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: How to get a list of all commands with given prefix? Date: Tue, 18 Mar 2014 23:33:02 +0530 Message-ID: <87r45z1j1l.fsf@gmail.com> References: <87lhw7mlrg.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1395165944 6659 80.91.229.3 (18 Mar 2014 18:05:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Mar 2014 18:05:44 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Thorsten Jolitz Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 18 19:05:53 2014 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 1WPyOe-0001zW-Lz for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Mar 2014 19:05:52 +0100 Original-Received: from localhost ([::1]:36813 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPyOe-0007sH-87 for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Mar 2014 14:05:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPyO9-0007o7-W1 for help-gnu-emacs@gnu.org; Tue, 18 Mar 2014 14:05:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPyNz-0002kM-Ji for help-gnu-emacs@gnu.org; Tue, 18 Mar 2014 14:05:21 -0400 Original-Received: from mail-pb0-x234.google.com ([2607:f8b0:400e:c01::234]:39028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPyNz-0002kA-By for help-gnu-emacs@gnu.org; Tue, 18 Mar 2014 14:05:11 -0400 Original-Received: by mail-pb0-f52.google.com with SMTP id rr13so7660249pbb.39 for ; Tue, 18 Mar 2014 11:05:10 -0700 (PDT) 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:content-type; bh=tYleHWgbeQTncxVBHmoMS1EfJqGGpbfp5UIZQxIOACY=; b=isK3Tmb554o2+GWb2Ss5GLPmyx0WNOfHHuH+ni0YHBS55MPZAq9cY4lQHiqkbh5SBa qPUZI6feH7dVWSunCF111gZJ1BBOm7WlqiBZJlvR0hOFRdjybigSxbj++YZ/fnNKISbo f2Wj3w/49sXwnggnnCPqriyF0Vk8WbLXAic4PjtoXkt+wLDS0JqgPjp/c8Q1vuDL68f2 At43R9Glthz9ReNaOyBR83PRARVJO8tiDwnnHnZMTyL+rXuz/3KLw4Yp8RrPeC1Yg/+t L9HrUf2p9gOlg4zKZP2hpy02YZUzjQdpJ5SiKU0ymZaI372hybRJI1fGyV6ahFErhMOg EZbw== X-Received: by 10.68.138.227 with SMTP id qt3mr35029785pbb.6.1395165910273; Tue, 18 Mar 2014 11:05:10 -0700 (PDT) Original-Received: from debian-6.05 ([101.63.194.115]) by mx.google.com with ESMTPSA id dk1sm54686828pbc.46.2014.03.18.11.05.07 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Tue, 18 Mar 2014 11:05:09 -0700 (PDT) In-Reply-To: <87lhw7mlrg.fsf@gmail.com> (Thorsten Jolitz's message of "Tue, 18 Mar 2014 18:58:43 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c01::234 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:96590 Archived-At: Thorsten Jolitz writes: > Hi List, > > I wonder how I can easily get a list of all interactive commands with a > given prefix 'foo-' in a program (non-interactively)? Use this as a starter. (require 'cl) (remove-if-not 'commandp obarray)