From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: find-aliases, where-did-you-go-little-command Date: Mon, 21 Oct 2002 13:50:20 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <20021021134029.2852.LEKTU@terra.es> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035201131 25210 80.91.224.249 (21 Oct 2002 11:52:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 11:52:11 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 183b6Q-0006YU-00 for ; Mon, 21 Oct 2002 13:52:10 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 183c0E-00073Q-00 for ; Mon, 21 Oct 2002 14:49:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 183b5X-0006Zv-00; Mon, 21 Oct 2002 07:51:15 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 183b4n-0005BZ-00 for emacs-devel@gnu.org; Mon, 21 Oct 2002 07:50:29 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 183b4j-00057I-00 for emacs-devel@gnu.org; Mon, 21 Oct 2002 07:50:28 -0400 Original-Received: from [62.22.27.141] (helo=mail.peoplecall.com) by monty-python.gnu.org with esmtp (Exim 4.10) id 183b4i-0004xM-00 for emacs-devel@gnu.org; Mon, 21 Oct 2002 07:50:24 -0400 Original-Received: from [62.22.27.143] (jbarranquero.ofi.peoplecall.com [62.22.27.143]) by mail.peoplecall.com (8.11.6/8.11.6) with ESMTP id g9LBoKO17835 for ; Mon, 21 Oct 2002 13:50:20 +0200 Original-To: emacs-devel@gnu.org X-Mailer: Becky! ver. 2.05.06 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8611 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8611 I'm thinking that it'd be nice to have a find-aliases function, more or less like: (eval-when-compile (require 'cl)) (defun find-aliases (function &optional ob-array) (let ((func (indirect-function function)) (list nil)) (mapatoms #'(lambda (symbol) (when (eq func (ignore-errors (indirect-function symbol))) (push symbol list))) ob-array) list)) (with a suitable docstring, of course) that would help find all aliases for a function (please don't tell me there's already an easier way :) I think it could be useful in itself, but the main reason is that I'd like to extend where-is, or perhaps supply an alternative where-* command, to show the keybindings for a function, *even* if I'm searching it through an unbound alias. After all, knowing that `hi-lock-face-buffer' is not bound to any key does not help me find the *very same* functionality, bound to [C-x w h] with the name `highlight-regexp'... Any comments? /L/e/k/t/u