From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QGtuMRMZwWMCsgAAbAwnHQ (envelope-from ) for ; Fri, 13 Jan 2023 09:40:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iJZQMRMZwWN2hgAAauVa8A (envelope-from ) for ; Fri, 13 Jan 2023 09:40:51 +0100 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 6A2B610C9 for ; Fri, 13 Jan 2023 09:40:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGFbX-000808-0h; Fri, 13 Jan 2023 03:40:03 -0500 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 1pGFbP-0007yQ-Rd for emacs-orgmode@gnu.org; Fri, 13 Jan 2023 03:39:57 -0500 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 1pGFbO-0003s9-3N for emacs-orgmode@gnu.org; Fri, 13 Jan 2023 03:39:55 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 4CE882403A8 for ; Fri, 13 Jan 2023 09:39:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1673599191; bh=qAp019V/LfqsBUOoYvjhugHuyOHZd6YCPxOUIBQQVRg=; h=From:To:Cc:Subject:Date:From; b=hzmK+ZgzjlVa43xTWaK1ee9OthGPyhNxihXs+s/xZFBzXMvkncTVwtCiIErmSDbbX Po9KyNpLk8l2zxHohb742MqbTYRcDYm5Pl3TnyOY1mX9EWvqu9lImoHZ+jyKYwCJua BXw8JBHZpxZz3agwhr9eO5Y2VUDwCmyDosjTBWCupvmYwXFzVCfij2DU1xRdXb+vPL N8LMEwhA9EuUS6WZwjkpg5bTDSfqSW2gH2TQeplgC7XRT+0QnWDZTs3/G1DToscs1U EKLXBXGQ703JowCIyv0LVYXmE8HORuBt5Co4rbk0Buhoj6wmF7/HfN0T/PIFCAQZyW RULhcCT7RHriw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NtZbp3mr7z9rxN; Fri, 13 Jan 2023 09:39:50 +0100 (CET) From: Ihor Radchenko To: Luca Ferrari Cc: emacs-org list Subject: Re: copying text from links makes it with a starting [[ In-Reply-To: References: <877cyd2d12.fsf@localhost> Date: Fri, 13 Jan 2023 08:40:22 +0000 Message-ID: <87h6wu7rpl.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_H2=-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 ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hzmK+Zgz; 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=1673599251; a=rsa-sha256; cv=none; b=offoT6lup3h3FFNrv1OAtjHGtazFhTOHSR1+MNS7bz+9/rq6qdztq6wYVehS2HotXqaoPh 0Q4xG8dQl5jOhJNYnpi7W4Qhf2QdChDDF7ufYUxIpPeqyYcHzGfi1H3C0aQdI7BYGuzJWh v0V5Hd8AHx+FjHrun0h5dNdyHOeSxZP9upM2aYgOPIMDoiaGGfiggCsk81LZk+4XCPCiGd 6LCvPuKmF5RP8f0MNFg9luGLiIXvzTblplnHu+og7UaCqc2n6IGoUITVkDJ8Rg9utFF+2b p0dgUEiU4CThcHv3WwHpB8fZUP4F3Rw3hX9J0xTaMpFF+imUgfm7BaW4d+8+Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673599251; 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=iUGE9IeMwJrekawOv62L7ebsnSeO0NGi5+5EDAXlgOQ=; b=JV2eLxfSUEglvOVJMqG+R3TTUfamjgXlX8OkdGPiHiwvzz68HF1AGbfi/XAOndtJUL6+2a dml2CYC1BaaVGpPskel6KQfrFNnVopv9mq0Crpr9QrM0YtBNffY4JYgOuwTTxukbJytdSf 9o9QPbeFljZw/bT57/++RMFXQ3HqI9B3QPV6CW59QaakCr4hpn0pDlDZa4YUx7CFpeU0NK wl8Zm69ano+Fcv9vJRi5ijS8Qw7jaP9Gq9rHDVJ6m5KwQGFvTCcNvA4GtrJwSuIpu5ZKoE fouR/HJI1bI82S7q0+warinMOYaE/HSTKBpPi4LWedhtHQnaaBfHtrlA3gEgLw== X-Migadu-Queue-Id: 6A2B610C9 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hzmK+Zgz; 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 X-Migadu-Spam-Score: -8.05 X-Spam-Score: -8.05 X-TUID: qctatnBzm99V Luca Ferrari writes: >> What exactly do you do to copy the link? >> See https://orgmode.org/manual/Feedback.html#Feedback >> > > Imagine I've this org fragment: > > Link: [[https://foo.com]] > > where the link is displayed without brackets, in org mode. > I place the point at the beginning of the first visibile character, > hence the 'h', and the C-space M-e M-w and then go to another > application and paste the content of the clipboard. Then, brackets being included is expected behaviour. Org cannot really know whether you want to copy link as actual link or as Org markup. If your link also contains escaped symbols, copying becomes even more tricky: [[https:test.asd/\]\]s]] (original link: ) I am not sure what would be the best interface in your situation other than creating a dedicated function to copy the link address. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at