From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6Nz2DMkGuWTgBwAASxT56A (envelope-from ) for ; Thu, 20 Jul 2023 12:04:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kHrtDMkGuWSi3AAA9RJhRA (envelope-from ) for ; Thu, 20 Jul 2023 12:04:57 +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 49D554BBDE for ; Thu, 20 Jul 2023 12:04:56 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=aUBu+g2S; 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=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689847496; 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:dkim-signature; bh=R4odRONttDjG5t7/a0ONy+ZsgvsZmd5egZcj5fB0wdI=; b=QXmpNQ+CPGCZnZGlcX1OCs9HYVEovjSZ/B3RrCzhANsYXv+aaHEelb+tHC/9Vntry52dq1 2fCqd6x9sNMRRBd/zyvry/QsR/b12T6n6XCYekn8MVv3AJWmj8au94J6//3WAC0RRZ1NtM WgyooyhZPbz/Us25eH4s47iJRF07aB/JFQCsDIP9uNXJ7/8WBwtl3FMrLA6Q8aggLuS3BB u8gpDukGeBFTn4ue3EY449fSkkypMjIEnlkvLyGIiA9448suD94A785g1YmIfxamT6fvHZ D0V3l9d65FjQhswztdTUYdVn42yRWxg/VsSXS486xyXvGvZ+379Zn9XucsQLJw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=aUBu+g2S; 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=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689847496; a=rsa-sha256; cv=none; b=pbkxZe7E81Nln3kgafJZ60XizaFIW2xyYQ+/OoyhXmgqRukwbgyHbdIzbtte+MXzD8bq64 ALwXOaApq7hQq7qtVoQrHsdX3byIPPOYerz8eK2vvZ07t5Yb6Ih4Nq+TnKTo7hfK/dCoFj PTOfBqUW25Svfmwpn6RM6GOAr2yOV8NwwV90jccXWCb9pR9jnvzntTKbp5AVJHRiZeCgOe 1ZvHA27NbgLrYymeH2uNBL19eLB2xNxw7htFaK1fFuvUnBdO5pXq1nnKTyDoGacW6kzAao /h2qEDJRhxsdf2d/AUA3b5WQuLUuneNtNxUpk/UGY+leWuh0S8pY3y272wkaNg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMQVx-0004XA-F9; Thu, 20 Jul 2023 06:04:05 -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 1qMQVw-0004X2-AB for emacs-orgmode@gnu.org; Thu, 20 Jul 2023 06:04:04 -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 1qMQVu-0000f5-6E for emacs-orgmode@gnu.org; Thu, 20 Jul 2023 06:04:04 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A62D7240103 for ; Thu, 20 Jul 2023 12:03:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1689847439; bh=RFNS+e99d6kgLfiqk5ID8wfvbd6cdPijS6c7hQAiOv8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=aUBu+g2SBfBkbwc7nQwgsAiNz29YQTCSH/KHq3gk5Bwv7LW5DoFjrmFgo9oMbi6Su eB7rwFCRr2cEJ04geC3gbviBEMi9U4a7CnlMwJwU8P8k5L6vqVv1cnktKd7pWrc5GZ FVPYSF4A6VFyKQa5F5xThmzSXPDZzZtNHfCefi1jbB4k/xsrArNZ/7i2j6ShehOVhz DplJ9qM0LaFPWcvf2oVcIm7CRjEXXBc/+U5RnawSHtv466+FSakr3745uuoHqsryEH Mpi2ey1CCRv3VRE3pWmLPnn9Fx/2OJ15/kRedP8/Lf1Mguc6LgUSm8oYIgaeXGEzaz Mp8a27NdP3REA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R67Z70kq7z6txp; Thu, 20 Jul 2023 12:03:58 +0200 (CEST) From: Ihor Radchenko To: Arthur Miller Cc: emacs-orgmode@gnu.org Subject: Re: Is there a better (built-in) way to insert an org link with title as description? In-Reply-To: References: Date: Thu, 20 Jul 2023 10:04:10 +0000 Message-ID: <87351irjad.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain 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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Spam-Score: -6.86 X-Migadu-Queue-Id: 49D554BBDE X-Migadu-Spam-Score: -6.86 X-Migadu-Scanner: mx0.migadu.com X-TUID: IjaOl520f2w0 Arthur Miller writes: > I want to auto insert a title from an HTML page as description for an org link in > my notes. I stumbled upon some old message by Miro Bezjak on this list: > > https://lists.gnu.org/archive/html/emacs-orgmode/2012-09/msg01435.html > > I have seen the replies, but I am not sure how to use > org-make-link-description-function Since that time, Org got a capability to set description function per link type. Just use (org-link-set-parameters "http" :insert-description #'your-function) (org-link-set-parameters "https" :insert-description #'your-function) The calling convention is the same as `org-link-make-description-function'. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at