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 ms13.migadu.com with LMTPS id MKvTBTH0wWYiKwEA62LTzQ:P1 (envelope-from ) for ; Sun, 18 Aug 2024 13:16:33 +0000 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 MKvTBTH0wWYiKwEA62LTzQ (envelope-from ) for ; Sun, 18 Aug 2024 15:16:33 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=STJhBkGi; dmarc=pass (policy=none) header.from=posteo.net; 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=1723986992; 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=NoknBdFnl6OMIrScmoCJgoeRMhJ3ta+VSbZLnrkIzKM=; b=WQrgDF/q+0zuyFy/Xnzn5gO/UGp77hHkn47wk4/CzXTEULy+gSYU89HaogcmJlZHEkyaCI /JKxtqlUMzZuC6VVYC2zE3MEIkpJhIBJfReR1ZA+QG1pYnNe8LUNVVM9kWm4o3a1/ilsrf CbLbSdMKgpDE4iXGsELaQn5l4HTCXxqEH4y/5R8LtsyTj9Gqq1Q/gzOS1wrWHzWJcm5iFK THWkQ7Zu2Sdi38K7kD2h13tnHfEaERHoA61CKQV5Z/OnSuiz9fPrDPnqOJhBT6U4GCKPpz jHfjdhrxoPeI23ZFMkhZNjrkLDJGPqAvFkWg0xAMxebNDUxoOa7FOM6D+d3V+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723986992; a=rsa-sha256; cv=none; b=r0Hmd24fwsxV2iwAQ2S4BpnGLtfWCqNverPqYfZVMFJq4Tl+rX+/2YWCwNu4opXKYPkuM1 WHGMA+Wwve6qIljDMGAoOxQDqaOxgXgBpDM2l5bh+8WbmXAHgVDsiNpYfzs3OrDso14Bzw 2IRqnSef7o6XTVvEQDCCtIYdLNYJt6HHbPOuIAh4nl8bbe77u1KnMbLarC3LqWogkOK0LP 3kX8MNrWVySZX1RV6ZLtxPJR6jpyyYx9i6doVchbw51DbYj0Cl8WuKcM+lVK3dF54eA2ht v+F6CgZDpOQb+5VMzxaMZMPV4ir00Sa9Np3UFrgG8QaPGsB1CPCzTGAsaNB1Ag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=STJhBkGi; dmarc=pass (policy=none) header.from=posteo.net; 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" 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 E2CD235787 for ; Sun, 18 Aug 2024 15:16:32 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfflY-0000rh-Ln; Sun, 18 Aug 2024 09:16:16 -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 1sfflV-0000rX-9p for emacs-orgmode@gnu.org; Sun, 18 Aug 2024 09:16:13 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sfflT-0005ps-KX for emacs-orgmode@gnu.org; Sun, 18 Aug 2024 09:16:13 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 4F07C240101 for ; Sun, 18 Aug 2024 15:16:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1723986969; bh=NoknBdFnl6OMIrScmoCJgoeRMhJ3ta+VSbZLnrkIzKM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=STJhBkGidjUDlZknf/g3ApjC2kQYwOJF7ObFFOeP2eXqhuXU64AQFZCZv2/3C5Vb4 xSviHa2bF453M63xhY40GQAlIMx9wJYZgxOnN7oDpSUQD4qfhByFE4AX79WYsiSbIR AZBBVicavyDmcLHLeB9dwj5Mq/d5dcYm9Qha5kRbSzCTKl2eBDOH43B7DuMfl6hje5 ibbXdl3EqCrv8DXe2vDtoIxH4YS8Igr0SxZUUoPPlBcAmf0n9zRSPTGMOyRpo7O6ns NQcakMKNENZns6UfmSVXu2z5TuSCY7I0y9gd5gp0qqeWAvTUlvgJoWpgwli+YCZXDS 5COs9XjapLgOA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Wmx7X6ds6z9rxD; Sun, 18 Aug 2024 15:16:08 +0200 (CEST) From: Ihor Radchenko To: =?utf-8?Q?S=C3=A9bastien?= Gendre Cc: Org mode Subject: Re: Org-mode element API: How to extract link description In-Reply-To: <87o75qyqwm.fsf@k-7.ch> References: <87o75qyqwm.fsf@k-7.ch> Date: Sun, 18 Aug 2024 13:17:13 +0000 Message-ID: <87frr2x95y.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: E2CD235787 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.69 X-Spam-Score: -9.69 X-TUID: glKBmincRpeq 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. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at