From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id yOTJH/JtM2a0aAAA62LTzQ:P1 (envelope-from ) for ; Thu, 02 May 2024 12:41:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id yOTJH/JtM2a0aAAA62LTzQ (envelope-from ) for ; Thu, 02 May 2024 12:41:54 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=kogN0nVd; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714646514; a=rsa-sha256; cv=none; b=Go/j8q4LtngelL2XBEHaoV6C+MdRsjd3Pf9FEzfRGCcuJYI4jnbgSnQn0TsrajjHBqVAVU Koy+JAV/Yu2IWaGrp6z5Yoft+jpcC0DnVpOZiPsSJz83Eza8lBI/kWTRqD9tne9bC/HxnU h1D2uL5F9CmspBTQjg4Nx0LLlnIHm+Ie2HdVYF84ZvTc/LtxiMqDme+rftHi50V3MoBA0w Jv4c7H5PHjtTOLvUrfmwmU7IcgP3px/xvf9UGXY1UDw+dNW5uulE2TmT618hjgPo26817q yvsTo9iJP5fMTe+1y6LD98Np7suCo9y3IFgMLA1Ou+sdbtEHxDRCQsFXUaMaOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=kogN0nVd; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714646514; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=NLGNrwqTM9CLgLtTwTpS0nGcbgR7mP5qX5xOrLcgN4g=; b=OQcIHcVmOZfzw6cDgS5vL8O+8JkCXSbiEhowPfsgTIB/kL7u0XJ52ZcL3YcjZA1a+f+b17 puIRG0CxE1/wU4KUx5eMcrUpG81FFxUvFLEJz4BcO9VhyZlbE/SZ59we+OnJUqGfkgkEDM NnYlfS7fk7II0jw5P46Fbbrf3N6vBxiMo+QZbty/C5BFSbsnGXDuMY45q8SPxa5rjge1KT c49tSpRrc5HlCqwP7xtLPEemeLE+aXDvY4v7RYtySpwmPBxT3WSq/bsJvEEo6AsNLrd/RR Kr8YW+ue09iX5seOYUvUNuuBFePM9janGLSnMVzssFPp+ptt94K+62oD4TssPg== 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 3048F36F77 for ; Thu, 2 May 2024 12:41:54 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2TsG-0004ok-I3; Thu, 02 May 2024 06:41:12 -0400 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 1s2TsF-0004oF-38 for emacs-orgmode@gnu.org; Thu, 02 May 2024 06:41:11 -0400 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s2TsD-0000aI-IB for emacs-orgmode@gnu.org; Thu, 02 May 2024 06:41:10 -0400 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-51f45104ef0so316446e87.3 for ; Thu, 02 May 2024 03:41:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714646468; x=1715251268; darn=gnu.org; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=NLGNrwqTM9CLgLtTwTpS0nGcbgR7mP5qX5xOrLcgN4g=; b=kogN0nVd6ZjAUR0mYV/rPFVrQtuiImCX4xAuQHkXY6LUZUg/22wE4vo/oS2QaY+cJV dt8dZWNMdciteVo7ZhyrmrZMw+S4ci1igKs5Y+dx2VfsQS0oK2wIXYFTSdfF3tfjkbcD DGqZz6K23StaTosUmfiV84cpSUgslOnbw0eH8dXrHeDTuXV5CD8AOZqDBSZMj2RAFHmA c9KTzIgBRE4t9Q8AOG2qX4VObDPIfIo0LDQMls2KVDl5XcuZNg5mt+jZM3ZFCDR+u6M5 snw24QHHPO23TFXQaIoJ2vpOeU/0iUVVeU3yvtXd29sL7Tff/pGcAenAtTG3ZXrTEpEy 0TpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714646468; x=1715251268; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NLGNrwqTM9CLgLtTwTpS0nGcbgR7mP5qX5xOrLcgN4g=; b=XtlBPIOB+xiCiMgz81/kJuUrOPp/SoO53Q3MpSPSzdqiYcFSVormutkrVuSlKrPL8p wnmmEosVKec09dVrgjOJ9UOA1SKaD3JFAi7hJ5r6A15lmcihALjssh8LS8aROVC5P13r pJH5UQoFI1jC/eZPzUXWcy/ZsRsqfxwC0F2nN0mp6gL5dRwj4OKSqVGBpySPyXg1/H7V Q7DTrwLjhHvxxHNhO+G+FzTgczuGksfLAgqD7lQ6PNH6UUC+99xdNmekxkfvD0mL3r0R Tz+IXCtp1XSMAvM51VY6BG6WnLDu/Ww19g59XS3DWBD740byX4y4uTgThthcbTtziph+ 9A3A== X-Gm-Message-State: AOJu0Yygy6mQiBOCizxkT2RRIFwE5fyxHmYgf9tJkrPKFErrJJf792YG BXB72X9Y5vMEfxmYv4A3hYXmL80tgSmlWGwP3q7b43BO6ii84j2UmgCOfA== X-Google-Smtp-Source: AGHT+IHJ79/ZI/k4655ThGLbdErv39yFHidCJfifrXd+3W4uE7NoB1iLXamHgqtvBP+Mo0G9O5m9Zw== X-Received: by 2002:a05:6512:3991:b0:51d:2eba:614 with SMTP id j17-20020a056512399100b0051d2eba0614mr4243912lfu.53.1714646467403; Thu, 02 May 2024 03:41:07 -0700 (PDT) Received: from [192.168.0.102] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id r17-20020ac24d11000000b00518ac6f0a31sm130148lfi.18.2024.05.02.03.41.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 May 2024 03:41:06 -0700 (PDT) Message-ID: <4b69d3b8-cfe7-4ba2-b9b5-872bcaeb6fe6@gmail.com> Date: Thu, 2 May 2024 17:41:05 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] Add support for shortdoc link type To: Bruno Cardoso Cc: emacs-orgmode@gnu.org References: <87zftatdkr.fsf@gmail.com> <87v83xer0d.fsf@localhost> <87wmodtqxt.fsf@gmail.com> <875xvxs9hi.fsf@localhost> <87ttjhtjx1.fsf@gmail.com> Content-Language: en-US, ru-RU From: Max Nikulin Mail-Followup-To: Bruno Cardoso , emacs-orgmode@gnu.org In-Reply-To: <87ttjhtjx1.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=manikulin@gmail.com; helo=mail-lf1-x130.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: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 3048F36F77 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: 3.73 X-Spam-Score: 3.73 X-TUID: XWXy8hmswUCj On 02/05/2024 02:24, Bruno Cardoso wrote: > +++ b/lisp/ol.el > @@ -1597,6 +1597,37 @@ PATH is a symbol name, as a string." > (org-link-set-parameters "help" > :follow #'org-link--open-help > :store #'org-link--store-help) > +;;;; "shortdoc" link type > +(when (version< "27" emacs-version) > + (defun org-link--open-shortdoc (group _) > + "Open a \"shortdoc\" type link. > +GROUP is a symbol name." > + (if (assoc (intern group) shortdoc--groups) > + (shortdoc-display-group group) > + (user-error "Unknown shortdoc group: %s" group))) `condition-case' may help to avoid the internal `shortdoc--groups' variable here. As to completion, it is better to ask for public API. However emacs developers likely will decline such request. Consider the following just as ideas. - Support of search options. Buttons in help pages move point to specific functions. - At first I considered adding shortdoc to help links that may call either `describe-function' or `describe-variable', but it is unlikely possible.