From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +OLBNeW8Y2TlQAEASxT56A (envelope-from ) for ; Tue, 16 May 2023 19:27:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KPb7NeW8Y2RyOQEA9RJhRA (envelope-from ) for ; Tue, 16 May 2023 19:27:01 +0200 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 90CF13C032 for ; Tue, 16 May 2023 19:27:01 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pyyRB-0004mg-9C; Tue, 16 May 2023 13:26:13 -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 1pyyR7-0004mT-7s for emacs-orgmode@gnu.org; Tue, 16 May 2023 13:26:09 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pyyR5-0007CL-Ce for emacs-orgmode@gnu.org; Tue, 16 May 2023 13:26:08 -0400 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1aaf21bb427so103185485ad.1 for ; Tue, 16 May 2023 10:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684257963; x=1686849963; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Q5MntbX9MBnuD/bBqJ458tX6kbYP9X242eI46SvvanQ=; b=Bv7i13ubiE18o2QykviDk/03GInyXKc8/XMsU1fqlOmtZiVKE5Dov7QyNE1JxlaAil gPnZFqbuBxeLzXf50TNTC9pujJA4K0DJRjHPpVL/7zTHKrWjnWYfB6pVpBtE4U4gVBgu 4WytSXHYGHnDgK4xo6WgDK4Sm/Ceh77DBoii9uBd8PyqP8Mof1psceqbjbJAwNVZqi+2 O0ueGQzbzbe3ZJD+sn+g/EjbjKm70pNO3arcT4x6G6cJFojVKIMu35va6qnKGeBgSd0f foazd+QvuJuhJId1pxW1505h6P4yJR7jGG9iCmSeybDiJgyLGXIyIh5wgvZGJ5x5q6fu NZTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684257963; x=1686849963; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Q5MntbX9MBnuD/bBqJ458tX6kbYP9X242eI46SvvanQ=; b=E5lx/vI71rPZv+vx5rNA3tXXYCZeM6V7f9HvNENyAjksoqLOmfGIX5JkxKCyO7nRA/ pWzioVwUWTId4/mjd/40f6jJVRbPSmtEIDGjJFiABCr1WcXMi8eNTx0aFOBHnYKCEGQU CkqcXscrY7c6jQhp2XiQbQINzS6+U6DvrSYfmCcjebL1EXDKLXtK+eAYGXEWhwvVn7Ke 8GpO2OOVrzC98y1o7nu3wUwbARVlWqnzEjnh/hE5TnhRdERurqbG2h9Qnto7VDg2JzcO MXXie6xQLI7fah+QyD0sfaH29+ZwMdkr7H93HhN86sPrSSI/JC3CHhoNxvqiBjJLm5rM FJwA== X-Gm-Message-State: AC+VfDz3IhmIgqx5felZLda+VG75Yy3uZGl3LJgFhMNC1KZk0zq0UdvH AmhKRLNiZKeuL2hx7TN8wUat7AeUceCnNvEEVM9V6a6j/kNERogXsnk= X-Google-Smtp-Source: ACHHUZ4WwdtiNprp0p11ROGN3DhinaKfLiqX9CXrdS2BPg3V+I9U3AC/4sy98W8j31yzk3TZIEz2ZvBi2qZh1ovj6AA= X-Received: by 2002:a17:902:e80b:b0:1ae:4bbb:e958 with SMTP id u11-20020a170902e80b00b001ae4bbbe958mr1036273plg.14.1684257963334; Tue, 16 May 2023 10:26:03 -0700 (PDT) MIME-Version: 1.0 From: Feraidoon Mehri Date: Tue, 16 May 2023 20:55:24 +0330 Message-ID: Subject: [PATCH] lisp/org/ol.el: org-link-make-description-function is always applied To: emacs-orgmode@gnu.org Content-Type: multipart/mixed; boundary="0000000000009e0b0c05fbd2dd7f" Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=feraidoonmehri@gmail.com; helo=mail-pl1-x62a.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684258021; a=rsa-sha256; cv=none; b=oDlssPxFKKvyNg4grC+vh2BB9pntcOgltmgQ9gopBxqKIBpOdBY+PmG8FOotPgCpRFtyIL P23jASUnrmNNoGvH3IwAywhAgQ09dRuFJHvquvZ4X3y9lG0IlbC0VxV28F5GaLJXAIjzcB Eocj423sSMEv4jKY5bZhsKCPToCeRa3YPPqOlzyCP/++HrNEEqDugGmvzUi5ZDWvsD0rcw x1tJ3wjgNX1MzolCU5QDW9hK+BRUyQSJxFyF3JES5PvsmFmvIdXk5CCQ7LZgBdDSJkpx3r 8lHCFrERPJ2wX9v5dOXlBeL2hlE5Vf4bdJm2BcJl8gi2wcXIm8qN59RHPh1sLA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20221208 header.b=Bv7i13ub; 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=1684258021; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=PFKYc9hIQkq5lvgKf1bNfBokWVJ++tSlm+3rxg605mY=; b=Bbb0S1Niwb41ziChyxCrJVrUk8qFgSu7PkFQSSBQ59v3a3RmgjXtb81ndQAE1cWiQg+BUH PftTicxGPNzNlog2meG2lgIckiqZH8B8G1VR7JTmXOcXVGlgP6R1BK1ACYcBAGv9ox+PmX +8gBcEBcTSY4oemjADcGRqSz74chIfoECVl7Z0+/66fUdTTilVgi9B9zVWXams3IwBc75b 7OzBCZoI8F1Eb/oz7AEOE9shM+uM8u7Tnlq0Ukv32Bm/c4qvIvFTMsxs9azeMf19zP2qWs g8L+SZdllA2BTNJCpqoDtVL5gSA+kkbQVt57sfUBoKslWus/d1YlLqOxyKPRTA== X-Migadu-Spam-Score: -0.31 X-Spam-Score: -0.31 X-Migadu-Queue-Id: 90CF13C032 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20221208 header.b=Bv7i13ub; 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" X-TUID: LU32TtGcf91D --0000000000009e0b0c05fbd2dd7f Content-Type: multipart/alternative; boundary="0000000000009e0b0b05fbd2dd7d" --0000000000009e0b0b05fbd2dd7d Content-Type: text/plain; charset="UTF-8" I have signed the copyright assignment before. The change is very small, so I think taking a look at the diff is more informative than I trying to explain it; the old code did not use `org-link-make-description-function` when some other alternatives were available, but my changes make it always use `org-link-make-description-function` if set. This change is a breaking API change, but I think the previous behavior was a bug. If you want to preserve the old behavior, perhaps we should add a new variable `org-link-postprocess-description-function`? Changelog: * lisp/org/ol.el (org-insert-link): org-link-make-description-function is always applied to the description. --0000000000009e0b0b05fbd2dd7d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have signed the copyright assignment before.
<= div>
The change is very small, so I think taking a look at th= e diff is more informative than I trying to explain it; the old code did no= t use `org-link-make-description-function` when some other alternatives=C2= =A0were available, but my changes make it always use `org-link-make-descrip= tion-function` if set.

This change is a breaking A= PI change, but I think the previous behavior was a bug. If you want to pres= erve the old behavior, perhaps we should add a new variable `org-link-postp= rocess-description-function`?


Chang= elog:

* lisp/org/ol.el (org-insert-link): org-link-make= -description-function is always applied to the description.
--0000000000009e0b0b05fbd2dd7d-- --0000000000009e0b0c05fbd2dd7f Content-Type: application/octet-stream; name="0001-lisp-org-ol.el-org-link-make-description-function-is.patch" Content-Disposition: attachment; filename="0001-lisp-org-ol.el-org-link-make-description-function-is.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lhqjmujc0 RnJvbSA1M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ICAgICAgICAgICAoc2l0LWZvciAyKQotICAgICAgICAgICAg ICAgICAgIG5pbCkpKSkKKyAgICAgICAgICAgICAgICAgICBuaWwpKSkpKSkKKyAgICAgICAgICAg KGluaXRpYWwtaW5wdXQKKyAgICAgICAgICAgIChjb25kCiAgICAgICAgICAgICAgKG9yZy1saW5r LW1ha2UtZGVzY3JpcHRpb24tZnVuY3Rpb24KICAgICAgICAgICAgICAgKGNvbmRpdGlvbi1jYXNl IG5pbAotICAgICAgICAgICAgICAgICAgKGZ1bmNhbGwgb3JnLWxpbmstbWFrZS1kZXNjcmlwdGlv bi1mdW5jdGlvbiBsaW5rIGRlc2MpCisgICAgICAgICAgICAgICAgICAoZnVuY2FsbCBvcmctbGlu ay1tYWtlLWRlc2NyaXB0aW9uLWZ1bmN0aW9uIGxpbmsgaW5pdGlhbC1pbnB1dCkKICAgICAgICAg ICAgICAgICAoZXJyb3IKICAgICAgICAgICAgICAgICAgKG1lc3NhZ2UgIkNhbid0IGdldCBsaW5r IGRlc2NyaXB0aW9uIGZyb20gJVMiCiAgICAgICAgICAgICAgICAgICAgICAgICAgIG9yZy1saW5r LW1ha2UtZGVzY3JpcHRpb24tZnVuY3Rpb24pCiAgICAgICAgICAgICAgICAgIChzaXQtZm9yIDIp Ci0gICAgICAgICAgICAgICAgIG5pbCkpKSkpKQorICAgICAgICAgICAgICAgICBuaWwpKSkKKyAg ICAgICAgICAgICAodCBpbml0aWFsLWlucHV0KSkpKQogICAgICAgKHNldHEgZGVzYyAoaWYgKGNh bGxlZC1pbnRlcmFjdGl2ZWx5LXAgJ2FueSkKICAgICAgICAgICAgICAgICAgICAgIChyZWFkLXN0 cmluZyAiRGVzY3JpcHRpb246ICIgaW5pdGlhbC1pbnB1dCkKICAgICAgICAgICAgICAgICAgICBp bml0aWFsLWlucHV0KSkpCi0tIAoyLjM5LjAKCg== --0000000000009e0b0c05fbd2dd7f--