From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yFJvOXwwqmCkMwAAgWs5BA (envelope-from ) for ; Sun, 23 May 2021 12:37:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IGEhNXwwqmCwGAAAB5/wlQ (envelope-from ) for ; Sun, 23 May 2021 10:37:48 +0000 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 2E585CBFE for ; Sun, 23 May 2021 12:37:47 +0200 (CEST) Received: from localhost ([::1]:54986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lklUP-0003AB-Ld for larch@yhetil.org; Sun, 23 May 2021 06:37:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lklTi-00039R-4v for emacs-orgmode@gnu.org; Sun, 23 May 2021 06:37:02 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:39605) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lklTg-0005da-7R for emacs-orgmode@gnu.org; Sun, 23 May 2021 06:37:01 -0400 Received: by mail-pf1-x431.google.com with SMTP id c17so18455977pfn.6 for ; Sun, 23 May 2021 03:36:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:cc:date:message-id :mime-version:content-transfer-encoding; bh=8dhrcc3NDtlrk79uY3e5gXQwI9t6LnaJ3MudiP+nN/U=; b=S5/ODMiVG6ZII+IDRR55UQYM9ebX7ofn/ZsMYSWQh3pL+RoUspIEhnkBqGDKARsrZc ghf7fjZkX6CBCRIPCo2Ncfs2ZI7WJhLvB8/PiYsJ/8AUh+gI5qJm2AydUkY8haFWRQ1L 0Y6pdSKH8a2VDGLmJmK29f7TSB5/HGJdkO5ISRiNH3XUgnQ7H7BKTEy5lJTzYLCVDI/V aSg95fcpqdED9ii/fu7uJTOtDqLh9RZzLZzVuwGx2lVYY4o6TJ1AoSdeBtcAvavJ70uu ll2/ZodVTQcV5TS0/cbiWi1HuXsNuF44JPF+yH+UwxweU2AUWxtY0N4lXgf8j310M69x yTKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:cc:date :message-id:mime-version:content-transfer-encoding; bh=8dhrcc3NDtlrk79uY3e5gXQwI9t6LnaJ3MudiP+nN/U=; b=KU4Xakdr6q5kKl+XE+AhQuzEeD24smOMBHaQ27hlFfO3a6egeJwsnI2pJvOSkRX3qe zAEfQkHF9UuI8KGvxerAkgltat/VBzJ/4eNSEBSwrffasdUi3lkWKzWerWvYH5aeeOgY d+3xwuNzEQH8K0U4ss3tQdadDK0XEj9zmzcU5bbMAPpv2CsHrOLXRtULiAsW2GH8VuEQ nfsV2M7x3pKzjZu8vtCoQAgdD7tUJCW+R7KElgM+aX+gwBroX1znOc1iiHJbjugpoh+3 cJBEf7QyLWblsQfSduf3mpuzsYxmm/7+61H04QW9lwMiCr3sUmZqKEVi19qe069jyIrd XqJw== X-Gm-Message-State: AOAM531lbvgDmHVZ5FP72UEkFSnkJid7oWJoBiHpoAAsqO0mB+Q06mNH A5j5VkhcxkJ1Jcicaql6XCI= X-Google-Smtp-Source: ABdhPJzqo15V1lI3/7TIKvjSBshxhqVECrmoJNjDc+LmMX9OUtmqGLJUwb8gEL+SyhextkBhkcQ/CA== X-Received: by 2002:a63:e709:: with SMTP id b9mr8138305pgi.18.1621766218720; Sun, 23 May 2021 03:36:58 -0700 (PDT) Received: from localhost ([104.250.131.79]) by smtp.gmail.com with ESMTPSA id k38sm8562079pgi.73.2021.05.23.03.36.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 May 2021 03:36:58 -0700 (PDT) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Subject: Re: [PATCH] org.el: use only link descriptions in indirect buffer names In-Reply-To: <875yzac0xf.fsf@posteo.net> References: <875yzac0xf.fsf@posteo.net> Date: Sun, 23 May 2021 18:41:46 +0800 Message-ID: <87lf85u3yt.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=yantar92@gmail.com; helo=mail-pf1-x431.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621766268; 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=8dhrcc3NDtlrk79uY3e5gXQwI9t6LnaJ3MudiP+nN/U=; b=G7cOZBS4fnZQzK6fPLy3xx2AN3acQdQZGgczqzDqal9wSZF1cA1pUoQZEnGZbQM3bxwTTI TWBV2BetV1PKUANI2RZQWiSetZD8fnC4wRvzYF1gyzxwSeHd0oL74DM2ejKDgy2fiI114B RpVU7k70HYYXb9Y7gv00YkBNVQh9lVLVj/k3yLx3gAs2utGwr4Ikq8AUy2fKD3Mx45ELJG dBu6UrHKak6EA1gYD4PADhIODVcPFyTzVavgTIWs48V8jRTZr+dh4V70HNb368L/sR3X3V rxqPTxAy0yumPGoj/icG1FZfU/NXuxuyr2He7NoxZlmeCjJ9R5tyeYBUdsKkFw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621766268; a=rsa-sha256; cv=none; b=JvmG/kwMgXrlWQaeY+NXMxinRceZgBBtFD8cZRF0+LKJcbWnD/AE1lHEFnZ2rRkjlOrhjX YsLdb++AwQ8xMEu3gvcYiOxxlsVh8CiQPVIWm9HSR/oxk9OWCwVNfToUzpAhxWyqdlVMVU a64O+dmQn/WoLCaDsjtEoILr0Cxl/z9JlnZKflqX7v5dRBtwzBA2KNEigJMBQI+Zew7bsR uesuYlxM345WRNuda54IDkLUGlrR7C4EjIVDqa33WDEjCkxn9qijicryR9KeIfGrZTyV6k PlmfUs3zOuYbBcFdDVGaQ4gO/7MvOLhwgrk7K/COh39DEa7YgZb6agW9+1BBlQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="S5/ODMiV"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="S5/ODMiV"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 2E585CBFE X-Spam-Score: -2.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: chNt0MYZvzzE Juan Manuel Mac=C3=ADas writes: > + heading (replace-regexp-in-string > + org-link-bracket-re > + (lambda (x) > + (pcase (match-string 2 x) > + (`nil (match-string 1 x)) > + ((pred stringp) (match-string 2 x)))) > + (org-get-heading 'no-tags))) You can simply do (org-link-display-format (org-get-heading 'no-tags)) Best, Ihor