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:46:00 +0530 Message-ID: <87k3br1ifz.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 1395166706 16707 80.91.229.3 (18 Mar 2014 18:18:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Mar 2014 18:18:26 +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:18:34 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 1WPyav-0004PA-7D for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Mar 2014 19:18:33 +0100 Original-Received: from localhost ([::1]:36876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPyau-0005RZ-PI for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Mar 2014 14:18:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPyab-0005L8-O6 for help-gnu-emacs@gnu.org; Tue, 18 Mar 2014 14:18:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPyaT-0006TJ-8s for help-gnu-emacs@gnu.org; Tue, 18 Mar 2014 14:18:13 -0400 Original-Received: from mail-pd0-x229.google.com ([2607:f8b0:400e:c02::229]:49067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPyaS-0006RN-Ur for help-gnu-emacs@gnu.org; Tue, 18 Mar 2014 14:18:05 -0400 Original-Received: by mail-pd0-f169.google.com with SMTP id fp1so7447572pdb.14 for ; Tue, 18 Mar 2014 11:18:04 -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=dA+TXazofeLtGsVfNmHd8F5j6NKafBd4XiJIOcRxJbk=; b=rKX3e5tUKiGpVDCno8aRqf3B53m1KUzcPn5cV6gQCMKeREz67szlZ4oFNWuczzDF6Q xayzsqU39ztPO6geIrlKDwXzqA3xL9C3rcZnftDElRe8EPh0U6WQSaaibJBzfn3xi41C 3gqv7y1xQryJLYwCOX8TJ5P3yqjFAHxC2VRgV0POsCftnsh7H8PdYFeoGzAmnXmUd+l+ erlmQiLD5hcQ7rYCSbfaQxxM1SZ9Z8Qy27ZEYkqiaGq77JupWcDGg1aTCHdD+y1ouPnk UTdAzwqcaL92qgU7Qk8qtNRJ5O00vMWCeFey7KiUEM9D4kYBiuJlypc3mwDW4aTowOXq ZxbA== X-Received: by 10.68.244.229 with SMTP id xj5mr35953459pbc.108.1395166684043; Tue, 18 Mar 2014 11:18:04 -0700 (PDT) Original-Received: from debian-6.05 ([101.63.194.115]) by mx.google.com with ESMTPSA id os1sm91256254pac.20.2014.03.18.11.18.01 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Tue, 18 Mar 2014 11:18:03 -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:c02::229 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:96592 Archived-At: Thorsten Jolitz writes: > I wonder how I can easily get a list of all interactive commands with a > given prefix 'foo-' in a program (non-interactively)? If you are adventurous you can use the completion mechanism to give the shortlisted candidates for you. You have to fill in the holes yourself. If you are having very recent Emacs, experiment with M-x icomplete-mode `completion-category-overrides' is a good place to get an idea what sort of "shortlisting" that completion mechanism offer by default. Take a look at icomplete.el, minibuffer.el. These are only pointers. You can fill in the details on your own.