From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.help Subject: Re: [SOLVED with eev] Re: How to quicker jump to function definition than C-h k ? Date: Fri, 16 Dec 2022 17:28:14 -0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33794"; mail-complaints-to="usenet@ciao.gmane.io" To: Eduardo Ochs , Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 16 21:29:07 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p6HKM-0008cm-W1 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 16 Dec 2022 21:29:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6HJq-0005Yd-IP; Fri, 16 Dec 2022 15:28:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6HJm-0005YU-EK for help-gnu-emacs@gnu.org; Fri, 16 Dec 2022 15:28:31 -0500 Original-Received: from mail-io1-xd2a.google.com ([2607:f8b0:4864:20::d2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6HJk-0008KI-KQ for help-gnu-emacs@gnu.org; Fri, 16 Dec 2022 15:28:30 -0500 Original-Received: by mail-io1-xd2a.google.com with SMTP id h6so1818339iof.9 for ; Fri, 16 Dec 2022 12:28:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=4lOaEcRka5N+tBcJL2Xlp/UCC3N7Qn77XKSCrXF7NjM=; b=Se3MxlJ7pB50HmHiqxwExMAzVpCLW0DGB9Z4V1ZePW8BG8suZjdjdms3JiDsdduzMY WkHIWzKy54nrTYumzg3B/iKBk35mhwLnDVMKmg0KaNJihnih3wRgntgw8CWDk7hlxVsU Vdxio5uL5NlUK9RixHlWAHxaK7L7kuZwJpdfigD1OiOBceEhnUL8VhkSawHX33n/qV2q 6ZmK53P7prF18F8UqsDY6qubXwfI7rhLgKWvG6q2uEvP795jCzwlQiFbK2WXczJKu9CA hzr/Wp3DQKCDHEsSAeT3CJU/jTijJ5Ca4CreFsF7QhEAwiwudVrZVahrS67d1pQuq6Oc g3Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4lOaEcRka5N+tBcJL2Xlp/UCC3N7Qn77XKSCrXF7NjM=; b=Cj8ja8pmMosoaXqFw4xpryNI9eBm6aE75U2ie3pGsYJVDfWpoIIVFQOgXLle1PAOZw tQwO+7r4wlRaIpZjAknFY9HFpJlyOediA6xbfzi1Sk1pcZxKDkitWq6DefgHU3wJHJUK sHn/yFlS87rJg4yn9qklMxZcJQoTRGBfAE67OcArCzxaYngFxYgV1DBJmkIikVdJwJcy ASwXvzKbzwxUDKmJ5PcgMXSmD4b52ckov2uh3m4ntMHWVvtG1wxgUbux7hWNQXZx/EV/ 53Ph51l3U2urCEShTzGhsKv/YrhCmT4o2mBAGT0ZFOWQMrICbAc0HmV7sFUD9I7BhfEy DdKg== X-Gm-Message-State: ANoB5pktR1+UHVEN7+xjDvL0F1cTYhlk1jOFZXtSDWOSyI6oj9vJmA5U rk37YRCkLjw2cDrb9V6NpS0ZMhaOI7bYkTIjoP8= X-Google-Smtp-Source: AA0mqf7HVlmJ0A6mOk+WrBzQmTLuhhaEMWCoh33K3A7hc2h/qkvs6a84O9Rzxc8B2qJKj8YiS5TRyLjZJAY5ZFCzeqI= X-Received: by 2002:a5d:9ecb:0:b0:6df:bcf7:d86 with SMTP id a11-20020a5d9ecb000000b006dfbcf70d86mr20013253ioe.188.1671222506904; Fri, 16 Dec 2022 12:28:26 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::d2a; envelope-from=eduardoochs@gmail.com; helo=mail-io1-xd2a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141806 Archived-At: On Fri, 16 Dec 2022 at 11:45, Jean Louis wrote: > > * Eduardo Ochs [2022-12-16 11:14]: > > ;; Try: (eek "M-h M-k ") > > ;; (eek "M-h M-k 12*") > > ;; (eek "M-h M-k 12* M-e") > > ;; (eek "M-h M-k M-h M-k ;; find-ekey-links") > > ;; (find-efunction 'find-ekey-links) > > ;; (find-efunction 'ee-find-eboundkey-links) > > ;; (find-definition-for-key (kbd "")) > > > (defun find-definition-for-key (key &rest pos-spec-list) > "Based on `find-ekey-links' (`M-h M-k') and `find-efunction'." > (interactive "kFunction definition for Key: ") > (find-efunction (key-binding key))) > > (defalias 'fdk 'find-definition-for-key) > > Much thanks. > > (global-set-key (kbd "C-c k") 'find-definition-for-key) > > Now I can jump straight to function definition. Great! Thanks for the feedback! =) I try to make the functions and features of eev as composable as possible - in this sense - https://lambdaland.org/posts/2022-11-07_unix_philosophy/ and (find-efunction 'right-char) does _a part_ of what happens when we type `M-h k ' and we click on the link that goes to the source code. I remember vaguely that I struggled a log in the 90s to discover how to go to the source without clicking on a button... Cheers =), Eduardo Ochs http://angg.twu.net/#eev http://angg.twu.net/eepitch.html