From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sBCUGada1l4SLgAA0tVLHw (envelope-from ) for ; Tue, 02 Jun 2020 13:56:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oOSXFada1l6dYwAA1q6Kng (envelope-from ) for ; Tue, 02 Jun 2020 13:56:55 +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 E5DF094042B for ; Tue, 2 Jun 2020 13:56:54 +0000 (UTC) Received: from localhost ([::1]:52040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jg7PQ-0007RC-J1 for larch@yhetil.org; Tue, 02 Jun 2020 09:56:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jg7OX-0006pA-3r for emacs-orgmode@gnu.org; Tue, 02 Jun 2020 09:55:57 -0400 Received: from [183.249.132.153] (port=1939 helo=localhost) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jg7OV-0000v9-Iq; Tue, 02 Jun 2020 09:55:56 -0400 Received: by localhost (Postfix, from userid 1000) id A59B724153A; Tue, 2 Jun 2020 21:55:45 +0800 (CST) References: <877dx27sc6.fsf@gmail.com> <871rna5hvp.fsf@gmail.com> <87pnauvxht.fsf@localhost> <871rn9wqat.fsf@gnu.org> <87wo51o9bg.fsf@localhost> <871rmxy7jy.fsf@bzg.fr> <87pnah38mz.fsf@localhost> User-agent: mu4e 1.4; emacs 28.0.50 From: stardiviner To: Ihor Radchenko Subject: Re: [QUESTION] What's the ":desk" link parameter? In-reply-to: <87pnah38mz.fsf@localhost> Date: Tue, 02 Jun 2020 21:55:45 +0800 Message-ID: <87mu5lbmhq.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 183.249.132.153 (deferred) Received-SPF: softfail client-ip=183.249.132.153; envelope-from=numbchild@gmail.com; helo=localhost X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/02 09:55:46 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: 53 X-Spam_score: 5.3 X-Spam_bar: +++++ X-Spam_report: (5.3 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, FSL_HELO_NON_FQDN_1=0.001, HELO_LOCALHOST=3.828, NML_ADSP_CUSTOM_MED=0.9, RDNS_NONE=0.793, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: reject 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: , Reply-To: numbchild@gmail.com Cc: Bastien , emacs-orgmode@gnu.org, John Kitchin Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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-Spam-Score: 2.59 X-TUID: maTiOdtMXB2T =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Ihor Radchenko writes: >> I'm not sure `org-link-make-description-function' is used a lot out >> there, but the change may break existing configurations/hacks. > > It should not break anything. I did not remove > `org-link-make-description-function' functionality. Just marked it as > deprecated. > >> Also, is it something we could use in the current export backends >> or just for the users? If the latter, then I'm in favor of making >> this move, probably for 9.5. > > I am not very familiar with the export code, but the function provided > in :description property should follow the same conventions with > `org-link-make-description-function'. The only place it is used is > org-insert-link. I do not see how it can influence export code. As I > understand, org-insert-link is mostly for users. I agree, I used org-store-link and org-insert-link a lot. If this patch is applied, then I can add more smart rules to auto generate the description b= ased on file extension etc. > > Best, > Ihor > > > Bastien writes: > >> Hi Ihor, >> >> Ihor Radchenko writes: >> >>>> thanks for the patch. I assume you are submitting it against master, >>>> am I right? >>> >>> The patch is against commit 2e96dc639. >> >> I see, thanks. >> >>>> From reading this, I don't see what bug it fixes, what problem it >>>> solves or what real user need it responds to, but maybe I lost part >>>> of the context. Can you explain why this should be applied? >>> >>> It does not fix any bug. Rather adds a new feature [1]. Currently, org >>> provides org-link-make-description-function as user customisation to >>> compute default link description. The patch provides a way to set such >>> description functions on per link type basis (via :description link >>> parameter). Using link parameters looks natural for me since similar >>> customisation is already done in :follow and :store link parameters. >> >> Okay, I understand. It feels natural to me too. >> >> I'm not sure `org-link-make-description-function' is used a lot out >> there, but the change may break existing configurations/hacks. >> >> Also, is it something we could use in the current export backends >> or just for the users? If the latter, then I'm in favor of making >> this move, probably for 9.5. >> >> Nicolas, what do you think? >> >> --=20 >> Bastien =2D --=20 [ stardiviner ] I try to make every word tell the meaning that I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 =2D----BEGIN PGP SIGNATURE----- iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl7WWmEUHG51bWJjaGls ZEBnbWFpbC5jb20ACgkQG13xyVromsMUewf/RK9/BCnTbNyiNKMklORPitNALPxb xJC4OKQiwkrPLK1y8m1sUa8Qu1rgg/vb/CSa/lJYJOY448hL6IxAJAxMdGvw0k1g xIyslnyHu7WxneouxhYr5qIQFWtdJFtKPcuPvMN9VfryD/fxtA+n9rjfw9FLEZuf Rqp+/clRzQC6BfrYP35OTb1srryST9PblUv283VR6MQASS7QRlHRlVNykFsNWvb9 2kaRt+uB5KqIGVYWIkLYwE1aelw4iUdg/sQkl5keZHIBU/DE5RqPEWFzyIfgcROz EGUVBh0z0wiAqpm8Ncj7M0MwjkQnNLiRuMWH485NhlSKdMKjDKog7fOMkA=3D=3D =3Dpi7r =2D----END PGP SIGNATURE-----