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: How to quicker jump to function definition than C-h k ? Date: Fri, 16 Dec 2022 05:13:34 -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="5254"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help GNU Emacs To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 16 09:14:29 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 1p65rR-000184-9Y for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 16 Dec 2022 09:14:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p65qp-0002pP-TJ; Fri, 16 Dec 2022 03:13:51 -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 1p65qo-0002pF-73 for help-gnu-emacs@gnu.org; Fri, 16 Dec 2022 03:13:50 -0500 Original-Received: from mail-il1-x12f.google.com ([2607:f8b0:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p65qm-0001cY-A2 for help-gnu-emacs@gnu.org; Fri, 16 Dec 2022 03:13:49 -0500 Original-Received: by mail-il1-x12f.google.com with SMTP id o8so936822ilo.1 for ; Fri, 16 Dec 2022 00:13:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=70wNifVqPOUou4ZwHom0wwSYVySGMCYnzBywdKf3Q6I=; b=ZJ1gqjUypMgxxaEKBikksBlzTyvtWH6wX83X9mxTef30NKitGN+W4Qc5+k/KXzgdrX fJjltOSaaz/x7rJKaT7HZYOwKartxG4Po5zJT1X8yY+Sid/lBpfjKTEKjE11ikzoRx62 n9lhasfrIQh3z/bL4qbmCZatdCDbwswzdhwSdSz1nFL+cepmVBr8Z+v21XtjYVlwWTGr UKksiNmczXmaJZsmzY4UqwcMtWZAPmh0CCJyjIU5q1TrZuuBYl5XtPgQztFfLwmxDKES vEyDvigre5Rwvr5Ienm+tI0uuCkuTt+nxQ93xEym2agTyUpBdhzQQkWI7BJ6xb7nHHZD mdVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc: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=70wNifVqPOUou4ZwHom0wwSYVySGMCYnzBywdKf3Q6I=; b=Cy3lhebc0wzLh2rtfE7jPFCFBOvtIUDAfPV94hgB3C3inPoJAFkqs1sPR7NQ9meltb kudiEY490+2/C0bmdpm0YfxCWHngbPhDiBbn0nlTjIqaSRRyfUTHxMss4RDluog3HjgP dkGAEvu++bf5z82Ecat5NomlGztP/RDOzJ1mEpXk6cA+bCB56QwKrsbH00FM4K1ZtPNl ur6pDrRVY12P92BJwsRM16qiu4WQwWxYppggFsYL53Q5qRk55s0XbjQNoeuXLd5FL4Cz 8Qq+Fr3aEZfmfUI15pvrWCkUGuEN6N66Zik34G5Rs0sDHgr8d0pdJlI0LnjSIWw0BF71 BJkQ== X-Gm-Message-State: ANoB5plm5CWMHn6K6mgaTYZxhXVkZ5QN0DoiJJYp7zKVbj7D2bJlyRW7 hYyNRtc7dRVg8Y1/oeLGWedrlqaR4YDiTi38dUU= X-Google-Smtp-Source: AA0mqf5fn48x8FKpnKS0ONxetsXsyxsA2MA17twE+fCnN33Xqtoat+h3mj/wN9kse4zxeQWhUu26HHIpkCoLWiOpk2U= X-Received: by 2002:a05:6e02:1e05:b0:302:cc74:920c with SMTP id g5-20020a056e021e0500b00302cc74920cmr40489532ila.262.1671178426604; Fri, 16 Dec 2022 00:13:46 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::12f; envelope-from=eduardoochs@gmail.com; helo=mail-il1-x12f.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:141797 Archived-At: On Fri, 16 Dec 2022 at 03:21, Jean Louis wrote: > > I often wish to jump to function definition of a key and currently I > use `C-h k' flow, then I press `C-x o' to switch to different window > and again `TAB' to reach to the file where function is located, then > `RET' to reach finally to the function definition. > > For my personal needs I would like to switch straight to the function > definition of a key. > > Maybe such feature already exists, does anybody know how? Hi Jean Louis, try this: ;; 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) Cheers, Eduardo Ochs http://angg.twu.net/#eev