From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0Kh8FOLFv2OejAAAbAwnHQ (envelope-from ) for ; Thu, 12 Jan 2023 09:33:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cDI/FOLFv2OfcAEAauVa8A (envelope-from ) for ; Thu, 12 Jan 2023 09:33:38 +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 493C43DDCA for ; Thu, 12 Jan 2023 09:33:37 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFt0v-000084-Pc; Thu, 12 Jan 2023 03:32:45 -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 1pFt0r-00007e-Ix for emacs-orgmode@gnu.org; Thu, 12 Jan 2023 03:32:42 -0500 Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFt0o-0004d1-KW for emacs-orgmode@gnu.org; Thu, 12 Jan 2023 03:32:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=apdKQLmvcXctxIGupBGahUnm/ovPkpwGTE/E2MoST/E=; b=vMe8W4aTpfG+8PH2DSbiN1L8NN 8b5kRZX3r7gUnQZPGcs74+MYl/e/or8+55mp4+YVBaoIOyvdpoNclcpYwd7WsSTNEyDJIxKpxT/HK 3je8972sYuBt/7mSt5vljYM48UfqGVcuHXDBzneEGOy2FezXyne0NbJx0KJe5FCK2lrMrLci//1wQ cd2Qds0mpyLIBM4Xy6e7k9elYPfAnpoqWdfIbYBPenn5Cd6sI3p15iGM2kNckTns19ajS+okVSPwS I0u+qfVkVENE/kIR5NkVQNs2Z7eqnEjQlvAPjOBwrPX8OV8RHvA7QlgySsAYAxv+EO9u1GGF2XPGb DXQyVF2w==; Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1pFt0l-0007QD-RT for emacs-orgmode@gnu.org; Thu, 12 Jan 2023 09:32:35 +0100 Date: Thu, 12 Jan 2023 09:32:35 +0100 To: emacs-orgmode@gnu.org Subject: Re: copying text from links makes it with a starting [[ Message-ID: References: <877cyd2d12.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Z82erf9TSWWmIVOI" Content-Disposition: inline In-Reply-To: From: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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=fail ("headers rsa verify failed") header.d=tuxteam.de header.s=mail header.b=vMe8W4aT; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673512417; a=rsa-sha256; cv=none; b=YjIBhQsP2jJDRnZSLQHDut3FjLW6+VEG15cnUvvILZZAMSy/6n2uki+ytmDnaraXni0VZl dLEG8O4FMDititT/yXE1cqSrEaI0yChyABe/Ygq+YOXwO11AF1vcxm4RBvRaTpWEllQAQL gZvGucB0MBdZuN1xIq/HOBEzT4OYNOk5NQaEpIEEJKXBkv857aySiixECRtZmVmaW52SbR pcJOXn3VEVZ6v8VeB0nQ8cgRS7VMTNvM2CbbI0PHjvNgC/1Vime19RbUakw4Ynv2Pfvb5G W1cFc18cmeDeccl1THYg6du3pjMVsJ9BCog1zZpNI/i7Wzwqpim9nnVTT4VLig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673512417; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=apdKQLmvcXctxIGupBGahUnm/ovPkpwGTE/E2MoST/E=; b=VPhhsoviHq10fOlHmdD+uEiDPYJP8o3lQnPN3ZXGpWsptkZ3x1wMIA6tE7fLx35H8UZSM8 YPNVz+RiP26HB3IvoIgFG55mriZtRMPYawvnJkuaK8Deuc7M/nwlRPSC+8c2px0Ijc5ioU gE5PF2Hr7mzNFNdUpZhZleHp5ZGNrm1PmHk0EoUiIwBRmFoYyDePRbX19qS9/uEZ+QJjJF VYDvfwfYwdmaGX6irNPIyGSPf8AjGkZBhSDRSEZ7FaQpJUpJ2zWIx53AnOnEIeOrKu1dSA I3FwSxxUiNeq8r2BWOolxUUaHIODr081NPVZ0c8UwgQYWXmucLPVK9EACdeeoQ== X-Migadu-Queue-Id: 493C43DDCA X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tuxteam.de header.s=mail header.b=vMe8W4aT; 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=none X-Migadu-Spam-Score: -4.30 X-Spam-Score: -4.30 X-TUID: q89nYTg5VGQL --Z82erf9TSWWmIVOI Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 12, 2023 at 08:42:54AM +0100, Luca Ferrari wrote: > On Tue, Dec 27, 2022 at 2:26 PM Ihor Radchenko wrot= e: > > > > Luca Ferrari writes: > > Could you please provide more details about what is happening? > > What exactly do you do to copy the link? > > See https://orgmode.org/manual/Feedback.html#Feedback > > >=20 > Imagine I've this org fragment: >=20 > Link: [[https://foo.com]] >=20 > 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. > I've seen that sometimes the link is copied as text, so both beginning > and ending brackets are there, but with long links the ending brackets > are not there, but it could be they I remove them accidentally. > I would like to copy only the visible part, but I guess there's no > solution unless I do something manually or configure a web package to > open the link into another application. Perhaps what's needed is to teach M-e (org-forward-sentence) to handle this. The challenge still is that you don't quite know whether the link "consumer" wants to have the wrapping [[...]] or not, since the consumer isn't known at "copy" time. Cheers --=20 t --Z82erf9TSWWmIVOI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCY7/FowAKCRAFyCz1etHa RolqAJ9Bvr12IyyTeOW+vT8tRQOicEjYxACffHwR1sN0ckiAGvLdC9MBRP7Ubtw= =rbeM -----END PGP SIGNATURE----- --Z82erf9TSWWmIVOI--