From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id Ep7/KYEziGARVwEAgWs5BA (envelope-from ) for ; Tue, 27 Apr 2021 17:53:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uGSlJIEziGB2UQAA1q6Kng (envelope-from ) for ; Tue, 27 Apr 2021 15:53:37 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AE8E6D0D4 for ; Tue, 27 Apr 2021 17:53:36 +0200 (CEST) Received: from localhost ([::1]:47874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbQ1n-00041a-AN for larch@yhetil.org; Tue, 27 Apr 2021 11:53:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbQ13-00041H-Bu for emacs-orgmode@gnu.org; Tue, 27 Apr 2021 11:52:49 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:52879) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbQ11-0002C7-4S for emacs-orgmode@gnu.org; Tue, 27 Apr 2021 11:52:49 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id C0C0C60005; Tue, 27 Apr 2021 15:52:43 +0000 (UTC) From: Nicolas Goaziou To: Maxim Nikulin Subject: Re: org-store-link and help for a key References: <87eenajoha.fsf@localhost> <87eeevhkit.fsf@gnu.org> Mail-Followup-To: Maxim Nikulin , emacs-orgmode@gnu.org Date: Tue, 27 Apr 2021 17:52:42 +0200 In-Reply-To: (Maxim Nikulin's message of "Tue, 27 Apr 2021 21:44:09 +0700") Message-ID: <87lf93k9md.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.195; envelope-from=mail@nicolasgoaziou.fr; helo=relay3-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619538816; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=tTkNOT+m4UFsmUXLQR7PNqxEk5IwW0iUmPpJSTxyfyQ=; b=D6uc2oepKV+Cei+LDsSM9hNvDylZHK/bz9L0aK8OZ/QZllBofVWHoUVqE5teyhdPsFuTmd webTYhPOtZXuzQRFTXEUVF079Sf79hEkh7FlnbV+QOWF4A2x4xrIyfUynYQwKY3v62WDFN kWSZPHwN7M5L/ZTbOhUafHcxzs31uZh2MB0Sgu7ePg4LIFUYdUP34VV/7FRViEHM5g25dx eo21n/oRbcD5TeBAPDM7vaGljXk+E/nk/LzhiiM2pogrDa9Toziy/ronREB2KpBzr7WFXw Y7LIpOUqPcp4vmiBGRvxanbabJFPa/4Wv0DIPh8MhhAE3RzRpnvoBfOBGrkbIA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619538816; a=rsa-sha256; cv=none; b=n553FfO53XFU5u5OzT/1+Sn84jd11om2hF9PEJQUjf+kh8kWoUHIg2D3eHb76d0mUfyZSl lXCsY86oI1RMVXNxMh+z+oNluHsFCJ8m7NdYaf8sbDAvEbz1/XWaLulkjC+GyDT9sgaeRC do3Vi2ig/TcEN+abTLHiSqACnAGlDfSzza66yoS7uPBjq36Vj/1+ED69naCbAiW7tKu3zX MKsb+N45puHKodPizZnpSW3XKHNE5fjoBLvRXR/zVR5hs7BXRatBXUTkNNgwgJSxfxVOhc 1NYYuUA1XV62txDM5rNkcS2pfjwemYUWe3ETFoUDr80GULtNN2c4jq736EejXQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.45 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: AE8E6D0D4 X-Spam-Score: -2.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: TkGraIFj29dF Hello, Maxim Nikulin writes: > On 27/04/2021 21:25, Bastien wrote: >> Even though storing links to help buffers describing key bindings is >> tempting, there is no way to recreate such buffers only based on the >> key string, because keys are contextual. >> In org-mode, C-h k C-a will describe org-beginning-of-line while in >> other modes it will probably describe beginning-of-line. >> So we cannot really write a proper handler for these links and the >> user error is correct here. >> I'm closing this bug report now. > > I have looked into the code storing and handling links yet, so I am > unaware what is possible and what is not. My expectation is to get > link to org-beginning-of-line if help is invoked from an org buffer > and link to beginning-of-line if I came to the help page from some > other file. I do not know whether associated function may be obtained > for a help buffer opened for keystroke. I did this on master. I only tested it lightly. Regards, -- Nicolas Goaziou