From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id sHIfDnf7wWb6igAAqHPOHw:P1 (envelope-from ) for ; Sun, 18 Aug 2024 13:47:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id sHIfDnf7wWb6igAAqHPOHw (envelope-from ) for ; Sun, 18 Aug 2024 15:47:35 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723988855; 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=MjsRtbu4OLWZTwv3q1SeFOEAB0wu8tgXV/MO7sMim64=; b=Bmup8ZOd36d+VpjjxXv28iVZi3j+JhTruNxsdDxUWgT0sAOLLMDXF+YtTley+v53d6QrFc 4LZElvjUcUFhLWSfK29bOnr1ZRPEXt/AU756s7JFy5KdiJIGNw3XR99TilVtQzW+z67yLh Bi4QEEnkP7ooM6obfHzd7eDq8rGEb6oRK8AYIbr4DlR/5nmoT2wZBtpmcXM6mY25rgkbOA i2Xb+/rHnhaWdO5T+S44OEIXUE60XNL6hFStBmaj1y1ZTUzvyXuEz8PGFiZ0ufmg0SF21+ NLibtobtoGuBj1uQyJqY3iIMhwpOr5h2VFEmWz+tkKtib9wa02m4Q1einreIEg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723988855; a=rsa-sha256; cv=none; b=XDw+q8w3WKTATJF+VgxzNoOvWVrGQraXdueaes6IYsn4PUuL+rfp1muCNvp/RqWJ79aMwc aa3dBNIIzbR6oWCAiETFkQ0qOyYcWDEuzA2AKOYl0Ya8RBcaMCJUCKp4/Q6J5CvbEcIKws 8WrqqO/6Sfz8YYZBXwbMyJ8EZ6r3fU5xolaqacbZI41i+zQrkdi4hyICHiX/8BKUK6RxVU IadLgMMXyItFzRhFIzs9jhcNqvPZMLDdn3K/15TVvmOoCLHNhXrEnonH6rtV8XtB+XMNqh ZGAeOFUoi9gvRRcM/61Kgx2+wExzENq8/9tmHWGHg+9OlqFRFqHDszwZmTRwvg== 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 07CC58014 for ; Sun, 18 Aug 2024 15:47:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfgFi-00073l-7I; Sun, 18 Aug 2024 09:47:26 -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 1sfgFf-000738-Oo for emacs-orgmode@gnu.org; Sun, 18 Aug 2024 09:47:23 -0400 Received: from k-7.ch ([185.31.100.96]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sfgFd-00019t-V5 for emacs-orgmode@gnu.org; Sun, 18 Aug 2024 09:47:23 -0400 Received: from van (_gateway [192.168.1.1]) (Authenticated sender: seb) by k-7.ch (Postfix) with ESMTPSA id 181A2E8109; Sun, 18 Aug 2024 15:47:18 +0200 (CEST) From: =?utf-8?Q?S=C3=A9bastien_Gendre?= To: Ihor Radchenko Cc: Org mode Subject: Re: Org-mode element API: How to extract link description In-Reply-To: <87frr2x95y.fsf@localhost> (Ihor Radchenko's message of "Sun, 18 Aug 2024 13:17:13 +0000") References: <87o75qyqwm.fsf@k-7.ch> <87frr2x95y.fsf@localhost> User-Agent: mu4e 1.12.1; emacs 29.4 Date: Sun, 18 Aug 2024 15:47:17 +0200 Message-ID: <87ikvyymca.fsf@k-7.ch> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=185.31.100.96; envelope-from=seb@k-7.ch; helo=k-7.ch X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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 X-Spam-Score: -8.57 X-Migadu-Queue-Id: 07CC58014 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -8.57 X-TUID: MzqGMaPgINod --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thank you very much. Ihor Radchenko writes: > S=C3=A9bastien Gendre writes: > >> With the Org-mode element API, when I get an element of type "link", how >> do I extract the link description=C2=A0? > >> It's not a property of a link, from what I can see in when explore the >> content of a link element. And I found nothing on the documentation. > > Link description is considered to be link contents. > But do note that simple `org-element-at-point' does not compute > contents. It is only available in the full parse tree. From > `org-element-at-point', a practical way to retrieve description text is > using substring between :contents-begin/end. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQI/BAEBCAApFiEEaA9vw9ypVj1kP0tAtYb3x3I54p4FAmbB+2ULHHNlYkBrLTcu Y2gACgkQtYb3x3I54p5ztBAAjM41f5mwncmHay8w3m4/Fs563wdFHSgehVldMBcB 0vrGVd6aTV2dcWGlo15y6qzckhAo+dsEKIuKVkrGMRTVb6RwsL4Cw+/nzwidYfCt l7EmgteKiWzmP+MzFeHZFEEngleWJjChfxgeLE+vR3OeRXtK7zNzoSiobENA9sjV oUA6/oPShEeE/iLxhGvkJQxa/XGC1T7bmNzm6RRgaYlKnkNfH8SR7lrqTiR34wZJ T7CtSexl7z2ttLE23O1j61Usjun8HMIYZxyepXz84y6yCrpcdaBYxAuCPcugp3Pf I7BY6vMNaoQD0McUp1i8vyvcRKp6NyQBEqNs3ANfJfTo4Do202TzpwDUJjcfIzUM tPDFVeUKG3DpL7PvYYMEPlFhlByMTqK0oMmu4r+ofVASv5lSVlMXJHxL/bN4jfnK NhMgc53zP98TQGDjphhNmg3aZMoKwTVW4qe+K0FQCyUj8+rqLIONHoExCfPHGq6m nLlhnZg0e4E2vNaXqqDr3cppFmXZZTIjlpE6siUucvxYwswffed1V/+t+x60zgh/ CR8sv0l/mdgFZBozcLY75wkz1DZy+dTqbxpPGrriKFsOjp8OJ6PCGBni/U0WBlAl 2ROoFrhvlE8XubKQQrjjpJ9kGtvjTB5yXhh6kdiGZMCDvaG/W5ouJKvv/A6maep/ rTE= =OqUD -----END PGP SIGNATURE----- --=-=-=--