From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4DUpNF3h8WHv9wAAgWs5BA (envelope-from ) for ; Thu, 27 Jan 2022 01:03:41 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0EcXK13h8WEEhAAAG6o9tA (envelope-from ) for ; Thu, 27 Jan 2022 01:03:41 +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 2F9F82182E for ; Thu, 27 Jan 2022 01:03:41 +0100 (CET) Received: from localhost ([::1]:35590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCsGJ-0006XY-Th for larch@yhetil.org; Wed, 26 Jan 2022 19:03:39 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41982) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCsFt-0006XO-73 for emacs-orgmode@gnu.org; Wed, 26 Jan 2022 19:03:13 -0500 Received: from [2a00:1450:4864:20::42a] (port=42728 helo=mail-wr1-x42a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCsFr-0003y9-Fz for emacs-orgmode@gnu.org; Wed, 26 Jan 2022 19:03:12 -0500 Received: by mail-wr1-x42a.google.com with SMTP id a13so1676333wrh.9 for ; Wed, 26 Jan 2022 16:03:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=COZhJLuwG6TlJ0MYTh7gt0FRp7idc5yLMlgie3e1O+M=; b=ZMX0HkqdONTZbj5ieXHm3dyenDe9Gp6GStzMmkBqI0HVHZ2LBHhokG6M2iECXKxgSU mAq7o2SGBmFbq/u1eAptqqASr1PppbeMgBV2n1H0+ECjsxFvH+IzcJVS2n2Ic0KcKGOu u3cF2Ptx33YOQN5MxK4D2RdJrN2tIVJ6MFW61dhSeObk2/5t3by6sO8JF25MZ3GRAhnC R9yTi0tFaUO7Xg1omuV32Yn7UyXZcMAKrHMlMP0548v+li+0nxZD377flA4Wj5gABKXK +a2gBHbqbPk0ifBcDDg4jAJFu291RuGGWlwptdOIMnnzDLBQNonmVzQceO6K/juLjsTP AQ+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=COZhJLuwG6TlJ0MYTh7gt0FRp7idc5yLMlgie3e1O+M=; b=feJJYqgJWtXMn6mKKf35XZAYcHU9nhFGhXK+n9Rd1gukaM0Enbdaxp8XuunBCgJ8nu 99JB80ZIjtCbR4W1kBNMBhdFmfKpnQUq4cozg/gUlaAALwos5v7+Qp2e6s5TNr5//qu8 vGWZR+/xffTjVceVU/kULdRPexT2eqoKyxXnOzSurF21Q0cmxkPH+W6xYBbZJBZh8zh6 +0ybcdQjiJxmIt1VY2edyKZgUwGaU0OVYNJtlRZwXWR9nmH6PJ7JbeJV4gr/Iksln15q My8if1NGMPMSB1teB/0GOZTj5+7RnW5/gJ39c5P0MxwHXM5DcFTX9VAjwxb7YI995uBG Mjkg== X-Gm-Message-State: AOAM532jPLf7eUjR/nNMTPczQ/0fc28t60xulqsdwUL64Ahi92PBvWyq htlGtUMG/PwVXZeDU+j8+yCKiXtJVns= X-Google-Smtp-Source: ABdhPJxz1AJ1GsYXg54CGEDEu0WLEcE6cAtVA7e+kKvRGJb3NVIdSsRJr5mnaOtFsXbvP8e0oApF+w== X-Received: by 2002:a05:6000:18a1:: with SMTP id b1mr771304wri.53.1643241789512; Wed, 26 Jan 2022 16:03:09 -0800 (PST) Received: from pluto.localnet (alagny-552-1-21-233.w83-200.abo.wanadoo.fr. [83.200.40.233]) by smtp.gmail.com with ESMTPSA id s17sm601608wrm.62.2022.01.26.16.03.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 16:03:09 -0800 (PST) From: chris To: emacs-orgmode@gnu.org Subject: cut and paste not working after xdg-open "org-protocol://store-link?url=URL&title=TITLE" Date: Thu, 27 Jan 2022 01:03:08 +0100 Message-ID: <1902025.jDVfpnRRgo@pluto> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="nextPart2025140.NEOvbpfGNe" Content-Transfer-Encoding: 7Bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42a (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=inkbottle007@gmail.com; helo=mail-wr1-x42a.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643241821; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=COZhJLuwG6TlJ0MYTh7gt0FRp7idc5yLMlgie3e1O+M=; b=W5NQzeWw2C5h2hCAm4HLtqnogAn0srWkAQW43VNr6F3t5lZ9ofA85d/mQgiFyahADFRsAG IAWj1sejm6ElKEz9fxnT0ovYrxVJYTem8CrSIsl11QeUV+OxSgawOUPLVNyZcFYqa4h7VP ColcgsCCVemwSdHef+Bl372ED19AncLv6rZOpikr+tPWwTwP27X3ZToukrCbTbt4r7SXWi JDjsI1WuVxf78t5ueJoVxXGQVCDoGvljpcAa1tMY70hLCyB9BRgjyKQh4U7+o6bqHSkXqP Y21SMdo2QJBpLpbddSdfjAcMT6WU2Fyv8NYOIRaG/NEC9JjuNNch/hEjHOjc0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643241821; a=rsa-sha256; cv=none; b=RQE6l8R/Oe/jYb3c+dtg8/5uD/gYhur3tabG4RSgG2UtMzSrMn6r2rP4mNEK+b3/+b7iwJ G/OnC+eFYPzTH4tSSBkNkrPjlvt7h0U6m8PZxoxZ5DB7tkB+uMfGnixX0NONrB/RaVdwXy MP4lhBxeIuccxJh3RdvET6KqRgwLdbPH3/hW8SPVlAgl1i6Wo1k0J7SP58eP7j/qWS5Own 5CvsA3iYkCvDbXXPvYvnAy8NKeJ2KcCsM3GouZ2CIxmInV+ZRBFMLoTk/QXvMzO2FUHeVj MdKx5T5nHP/OClau85BmWewZXQxfhj8CMerIL0r+hLfpeVxXTfer94+tVPMCjw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZMX0Hkqd; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -2.33 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZMX0Hkqd; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 2F9F82182E X-Spam-Score: -2.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: lrATzv1oLpXc This is a multi-part message in MIME format. --nextPart2025140.NEOvbpfGNe Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" Hi people, First: `xdg-open "org-protocol://store-link?url=URL&title=TITLE"` from a terminal. Then `M-x org-insert-link` in emacs, or not (it makes no difference). Then cut-and-paste from non-emacs-application (e.g., Kde's Konsole, or Firefox) to emacs. When doing `C-y` what it pastes is "URL", not what I have copied from Firefox. For it to work again: one cut-and-paste operation from emacs to emacs. Then it works again until the next time. Doing `C-k` is enough, but it's still cumbersome. My compositor is Wayland. It was like this, before, with `emacs-pgtk` 28.0.50. It is still like that with: GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.31, cairo version 1.16.0) of 2022-01-26 System is debian sid upgraded just before. Thanks, Chris PS: some XY-problem: What sort of argument to pass to `org-protocol-store-link`. When I do `(org-protocol-parse-parameters "url=U&title=T" t '(:url :title))` it works. It works when I do `xdg-open "org-protocol://store-link?url=URL&title=TITLE" ` from a terminal. But why is there a `nil` here: https://github.com/emacs-mirror/emacs/blob/19dcb237/lisp/org/org-protocol.el#L467[1] And why is it working at all from `xdg-open "org-protocol://store-link? url=URL&title=TITLE"`, with a `nil` in that position? Note: `(org-protocol-store-link "U/T")` works, `(org-protocol-store-link "url=U&title=T")` doesn't work. Produces link `[[url=U&title=T]]` instead of `[[U][T]]`. -------- [1] https://github.com/emacs-mirror/emacs/blob/ 19dcb237b5b02b36580294ab309124f346a66024/lisp/org/org-protocol.el#L467 --nextPart2025140.NEOvbpfGNe Content-Transfer-Encoding: 7Bit Content-Type: text/html; charset="UTF-8"

Hi people,


First: `xdg-open "org-protocol://store-link?url=URL&title=TITLE"` from a terminal.

Then `M-x org-insert-link` in emacs, or not (it makes no difference).

Then cut-and-paste from non-emacs-application (e.g., Kde's Konsole, or Firefox) to emacs.

When doing `C-y` what it pastes is "URL", not what I have copied from Firefox.

For it to work again: one cut-and-paste operation from emacs to emacs.

Then it works again until the next time.

Doing `C-k` is enough, but it's still cumbersome.


My compositor is Wayland. It was like this, before, with `emacs-pgtk` 28.0.50.

It is still like that with: GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.31, cairo version 1.16.0) of 2022-01-26

System is debian sid upgraded just before.


Thanks,

Chris


PS: some XY-problem:

What sort of argument to pass to `org-protocol-store-link`.

When I do `(org-protocol-parse-parameters "url=U&title=T" t '(:url :title))` it works.

It works when I do `xdg-open "org-protocol://store-link?url=URL&title=TITLE"
` from a terminal.

But why is there a `nil` here:

https://github.com/emacs-mirror/emacs/blob/19dcb237/lisp/org/org-protocol.el#L467

And why is it working at all from `xdg-open "org-protocol://store-link?url=URL&title=TITLE"`, with a `nil` in that position?


Note: `(org-protocol-store-link "U/T")` works, `(org-protocol-store-link "url=U&title=T")` doesn't work. Produces link `[[url=U&title=T]]` instead of `[[U][T]]`.

--nextPart2025140.NEOvbpfGNe--