From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GKKsOQ3uI2XcLgEA9RJhRA:P1 (envelope-from ) for ; Mon, 09 Oct 2023 14:11:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GKKsOQ3uI2XcLgEA9RJhRA (envelope-from ) for ; Mon, 09 Oct 2023 14:11:58 +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 756275E3E8 for ; Mon, 9 Oct 2023 14:11:57 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=edOf9lJ0; 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=1696853517; 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=io8cdOQPiT/Tfrb4Gqr/JINoqTmFrP5fWi6BHBrfayg=; b=mkQuQOSDWP0JeC236K33c1tzQZetEF2IreHKiO/6zS4vjLZarpaNpSfM3470DMAz8eQs80 j8q3Z/BR8fGXy8iIls1QAF25UjDnRJyDfI5WfhY5zQcY1E3VBLKTRCvEx47nQyAVQGjEwn rEgNb+0Aty+yUHSrrVr6k1pimKSwWkJkjP3tYF9nTLMkbKz278GiXcWYLEx6FIM8AiZrKU P5T/dA8hqkzPz16hbIfGT2a6YBAb7B4onC0wIuuxKDlQyyn7ahI5rmDUjUWHpyerf/isqN IsMtybh91y5KnKykiyLaD+nMIjMZDJCHzd3SJl3stFvJXKYeHStuy42SzC6B8w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=edOf9lJ0; 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-Seal: i=1; s=key1; d=yhetil.org; t=1696853517; a=rsa-sha256; cv=none; b=mYEEzhKESIYsDxDrrw0WMpOFFUC53GFeFcMe0gcC+1AdCpV4dIkV2qnY90/moI3jfViRV8 3FRdX2sX77N5f3+yI9IKOXzzrUdeU85wP5UKe8XkGbNLpEyjTICwsarl5uwFmbyOT3Mr8A oWWM7UVimYx3wv0+zSgClCXe+WYCR5hmjWEwn7912d5GsnJjn0NDrxpuX9V1ruKEdKZujC e0pHGX9k86UM69QEGlYdrSnWp6UKM27rPRjgU7KLDzdacMwlY4Y11g/VmZdtHv19Ua8Lz2 9hmTI4+KGk2fy7FLG6DJiYk/ZMpkwck+xvDLGepMdU7/7HZASvDuqAhw9wWO5Q== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpp6D-00089x-Mw; Mon, 09 Oct 2023 08:11:01 -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 1qpp6B-00089f-QW for emacs-orgmode@gnu.org; Mon, 09 Oct 2023 08:10:59 -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 1qpp68-0008Q5-G6 for emacs-orgmode@gnu.org; Mon, 09 Oct 2023 08:10:59 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 942B4240103 for ; Mon, 9 Oct 2023 14:10:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696853452; bh=Q4CoveJuBoUTvhATTNfJb1Ii1kCtIM9bkRxfQ60gQgg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=edOf9lJ0lvro8VfyJ3z6Q0wuQoiBj5SC86ZqVj1rl3i0GhZA+QrPHqFt7TU5HIEsq QxLj9dkK3VGqeqX86MmIOy/W0yikTUz/+zBvKD39od5Lcwn6v07jC3eCDRO9mjcPDk X6E4G5WmzewI8VgcAKERKPRGZzH1BUbCK5rxhZ4Q+Cmg0/N8Lw2OBuH0IT/iqW7oIa 6nensh6XvQkzyGQX2omNHwnU3Y10q5MfmYLBsZM1EMBuIUeSx6DrQQ+V/cCrcdfZ47 xIwdgna0aSH5SsL29MgKheZnpq37YGzuX5mowWQ6voORGfX8I0AMfbpKIPF2pACe0q 6ZkfYpgbphBpQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S3yY80KR2z6vDj; Mon, 9 Oct 2023 14:10:52 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: Exporting elisp: and shell: links In-Reply-To: References: <87il8v2q00.fsf@riseup.net> <89434f4f-8aea-23f2-bbfc-3961c18f2154@gmail.com> <87a5u6tgb3.fsf@localhost> <878r9nofpw.fsf@localhost> <8734ztvtvk.fsf@localhost> <875y4326v2.fsf@localhost> <8734z19pwy.fsf@localhost> <87r0m5phrc.fsf@localhost> Date: Mon, 09 Oct 2023 12:12:30 +0000 Message-ID: <87zg0skn9t.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 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-Migadu-Queue-Id: 756275E3E8 X-Spam-Score: -6.62 X-Migadu-Spam-Score: -6.62 X-Migadu-Scanner: mx1.migadu.com X-TUID: eoajxB/v9y6U Max Nikulin writes: >> +(defun org-link--export-code (path description _ info &optional lang) > > I think, the fragment above should be a public function that is a > building block for users who want to override export of links having > descriptions. Sure, but that's minor. >> + (when description (format " (%s)" description)))) > > I hope, path was never added as default description, so checks (or > (string-equal path description) (string-equal (concat type ":" path) > description))) are not necessary to avoid annoying repetitions. Valid, but I am more concerned about the whole idea. I _feel_ that code (description) does not look nice in html export. I like more how ox-ascii (without the proposed diff) handles the situation via footnote-like link. That's my personal preferences though. Which is why I want to hear more opinions. In particular, I encourage others to play around with various exported documents with and without the diff and comment on how they look. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at