From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 8EaaBogNq2PUYgAAbAwnHQ (envelope-from ) for ; Tue, 27 Dec 2022 16:21:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2K+eBogNq2MIcAEA9RJhRA (envelope-from ) for ; Tue, 27 Dec 2022 16:21:44 +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 048D512A13 for ; Tue, 27 Dec 2022 16:21:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pABkv-0000Pc-07; Tue, 27 Dec 2022 10:20:41 -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 1pABkt-0000PE-Al for emacs-orgmode@gnu.org; Tue, 27 Dec 2022 10:20:39 -0500 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pABkr-0001f2-Lr for emacs-orgmode@gnu.org; Tue, 27 Dec 2022 10:20:39 -0500 Received: by mail-lf1-x132.google.com with SMTP id bp15so19974917lfb.13 for ; Tue, 27 Dec 2022 07:20:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=CGg3ITRB5SXmv4HclbLr7bmk4JzpQRYrETPPIPi5MoE=; b=cD9VRNVLLdosmSHvLOnsWsvdhJGy7ogGrcyfvQf2Tdi9EP0+EX8wDsPWrWszCAXcYd hny6ewuowAdG5a9HJ6PGLj4/4eF3ThnsMFehF1QBE7/T2B4tzfiQvCTCi9SUIcoQK/pj bygfPesY87PjHB0nME9sCjD+yohGQzSOUwVPoWE2D51vw43qexXNIJo1U0R1NCsQ1uYV 4414i7wEoqIIfQ4ocpQs0EZDUpc6Bl9Fl2fD78k6b/SvtocjiZJcoAL4kJJw/2mrxVDw j94LEQ/PpCVidfremVh9/VkEYImgnotzOqsYK2RTCIpoS9Cad/Lr+KdYyB5s9O4qXzA+ UJ6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CGg3ITRB5SXmv4HclbLr7bmk4JzpQRYrETPPIPi5MoE=; b=Wxejec5TfzKcxHq2LmgfDDWTRBHDbQbaHcTOyGuK7jO+J4iop/L9enLtrmgqq8MqxI SbygldNgFuqYWvGkbNU/yT4py8PlPV/UBQTrPdd4nObrAbJScjVAe2SSVPaZKUcD7SPP 5yAEpRz/FuaUxOZwNVWjXaLapQDk99DbXB+9p3K6r0GAAucIZMcpRhkV5iDh6sgviPNs j9w5C8QmxFu1H8rUikt1SBD2cH2KblyV1FywyaADdpIjHgKe0rOrSobrENAXjHNvouth 6Sf3UFYdAgO9YpMr0MlmlqIijXLUH0KTxOEqiZKNnuu1fKK7ZZq9ZqHH5ayKMfareNve dKeg== X-Gm-Message-State: AFqh2kqDPiMrBIscZB8Wc3Ddk+Q7vYXh6PuU5RGW1bf10LcZnxe4k8ir Y5qZaq3fcPmYuz0tT/anFYPrUSnBDy+eSg== X-Google-Smtp-Source: AMrXdXt7owpDY/RDrXlItcQURz+8R0Ii07lstGxz+0VoizXaYSBkDX4cHhBwyUPgYxkywyEzmrN/MA== X-Received: by 2002:ac2:4e06:0:b0:4a4:68b7:dec3 with SMTP id e6-20020ac24e06000000b004a468b7dec3mr9000990lfr.31.1672154435548; Tue, 27 Dec 2022 07:20:35 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id x11-20020a0565123f8b00b004b5adb59ed5sm2269952lfa.297.2022.12.27.07.20.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Dec 2022 07:20:34 -0800 (PST) Message-ID: Date: Tue, 27 Dec 2022 22:20:33 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: copying text from links makes it with a starting [[ Content-Language: en-US To: Luca Ferrari , emacs-org list References: From: Max Nikulin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=manikulin@gmail.com; helo=mail-lf1-x132.google.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 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_FROM=0.001, NICE_REPLY_A=-1.147, 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.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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672154503; 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: 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=CGg3ITRB5SXmv4HclbLr7bmk4JzpQRYrETPPIPi5MoE=; b=eINJ23oBNsggnS6ogx8swWdL+1C8JdSwjVpqsX/7U0P+4bZ4G6YpLK99caGZmOt3JHMPxi k+Ev/vVzG518in6vGJwmdNayylBrBMZOs+NQG28n+3xFhRH4+YFDtssN3bBNym28Rp3MNh eTPACV5ZcS1ZF6wIv4vcSlBZStD6mg/N0izRvfIIJeVoA+evqfTWP8No/NrB1HiFe7dmrJ 3DMQhM/txIk+Fyr1/bbqYqEtqUpJsCxqDv8f3YGLYlKZtXc14rO6YKZyFAmoZCvahLrJp8 kLiLsh0Qa9S0p+9vkU5G7+kE2craMUVFsioypo1fkw5ZKvuhKlHyc6VMD3nrGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=cD9VRNVL; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672154503; a=rsa-sha256; cv=none; b=W8fyN9e0mC4rQe7lvy+lHOQwebA41Emqe7L0yHXP7oE9E0j5rwlsCB9o0laGMhOOFcn8AC I8azZyQJlyubtbNQWWs9N8EpHGiazEfYSwLSESEmk3mwzdce8U4eg1wCbNv9egWnagLCGe UHrD9ZjzAhPMA1pmxOsWo+Tkc8eJOCmtqgIQ8Zn27M+yhF2CCpUACQZ6hbThPQfcPGqITA 5LP2Puj/e9nODVR3PhrlmEDtlwJaqUC+a/IR6zEQzmGBNHlQrfPXHXp15vGVpS1U+M6rPp 2ZxLrdXgtocsNCQhB5U3Ibtg4r0vNoS6/IZoQJX0peBUsnj1QcV4dZEtg4iR2g== X-Spam: Yes X-Migadu-Queue-Id: 048D512A13 X-Migadu-Spam: Yes X-Spam-Score: 7.67 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=cD9VRNVL; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: 7.67 X-TUID: cVSMOKCr5HqQ On 27/12/2022 20:06, Luca Ferrari wrote: > I'm not sure this is an org problem, rather a clipboard problem or > what else, but when I select an org link in Emacs and I copy into my > Firefox browser, the link has always a starting pair of square > brackets (e.g. [[https://...). Selecting link to copy it to an external application or even to a non-org buffer has another problem. Some links may contain square brackets. Org needs to escape them (and backslash character as well). To reliably copy a link, it is necessary to define a dedicated command what unescapes URL. Alternatively you may copy URL using C-c C-l (`org-insert-link') and abort the command after that. Besides copy, another action is open URL (C-c C-o) and it should handle unescaping properly. Depending on your environment, you may need to configure the browse-url package to use the preferred browser.