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 SFzDKYQ4WWMFcgEAbAwnHQ (envelope-from ) for ; Wed, 26 Oct 2022 15:39:16 +0200 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 4PyyKYQ4WWMhQAEAauVa8A (envelope-from ) for ; Wed, 26 Oct 2022 15:39:16 +0200 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 376681B9E3 for ; Wed, 26 Oct 2022 15:39:16 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ongcZ-0001PV-UX; Wed, 26 Oct 2022 09:39:03 -0400 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 1ongcZ-0001N0-8g for bug-guix@gnu.org; Wed, 26 Oct 2022 09:39:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ongcY-0000Y5-Qe for bug-guix@gnu.org; Wed, 26 Oct 2022 09:39:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ongcY-00010r-47 for bug-guix@gnu.org; Wed, 26 Oct 2022 09:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#58606: Emacs next pgtk crashes when pasting to other app Resent-From: bokr@bokr.com Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 26 Oct 2022 13:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58606 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Joshua Branson Cc: 58606@debbugs.gnu.org, Andrew Tropin Received: via spool by 58606-submit@debbugs.gnu.org id=B58606.16667915013840 (code B ref 58606); Wed, 26 Oct 2022 13:39:02 +0000 Received: (at 58606) by debbugs.gnu.org; 26 Oct 2022 13:38:21 +0000 Received: from localhost ([127.0.0.1]:53733 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ongbt-0000zs-0U for submit@debbugs.gnu.org; Wed, 26 Oct 2022 09:38:21 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:57254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ongbm-0000zX-LW for 58606@debbugs.gnu.org; Wed, 26 Oct 2022 09:38:19 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id AB6BC65B61; Wed, 26 Oct 2022 13:38:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=bokr.com; s=easymail; t=1666791488; bh=IetinELyTF8qlAhatsq+EEz5GLEEiNYYxPEZOa2596Y=; h=From:Date:To:Cc:Subject:References:In-Reply-To:From; b=HA4L1Y308hG8tJsykxM9YbrYjwtopad0AEfLdTeB5LIZ2Ys4q4sOYWrLj5fxsvEXS hKSl48F41Sx8Df1CrtZAoTtiIGavmM8S5CvsZyikuQikV1xsGkzYyqfO5B+RXUjykh tNjz159wR7G+qHUv9wrzpOH3ovma++YNEl8OxxO8w0Y4x3ohD6t/DTLbufyYPkBWyL gcjrjjdy9+1DKapTsAEADkhnPfUmDi1/kcN2+mRBkspVgrNIgRpSSeFgO298HYgDE5 Vi8oF8vQCcdQyu4LK7LSbjPEYu2+aHjTDdxFRBteYJgjocZLGBis4+XchNX98oPcJx rhWS/V4UobG9g== X-Virus-Scanned: Debian amavisd-new at emo07-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo07-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vCEEPNXNLEIC; Wed, 26 Oct 2022 13:38:08 +0000 (UTC) Received: from localhost (m90-129-200-243.cust.tele2.se [90.129.200.243]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id D74856597E; Wed, 26 Oct 2022 13:38:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=bokr.com; s=easymail; t=1666791488; bh=IetinELyTF8qlAhatsq+EEz5GLEEiNYYxPEZOa2596Y=; h=From:Date:To:Cc:Subject:References:In-Reply-To:From; b=HA4L1Y308hG8tJsykxM9YbrYjwtopad0AEfLdTeB5LIZ2Ys4q4sOYWrLj5fxsvEXS hKSl48F41Sx8Df1CrtZAoTtiIGavmM8S5CvsZyikuQikV1xsGkzYyqfO5B+RXUjykh tNjz159wR7G+qHUv9wrzpOH3ovma++YNEl8OxxO8w0Y4x3ohD6t/DTLbufyYPkBWyL gcjrjjdy9+1DKapTsAEADkhnPfUmDi1/kcN2+mRBkspVgrNIgRpSSeFgO298HYgDE5 Vi8oF8vQCcdQyu4LK7LSbjPEYu2+aHjTDdxFRBteYJgjocZLGBis4+XchNX98oPcJx rhWS/V4UobG9g== From: bokr@bokr.com Date: Wed, 26 Oct 2022 15:37:47 +0200 Message-ID: <20221026133747.GA5784@LionPure> References: <874jw1aajg.fsf@trop.in> <871qqwfr5d.fsf@trop.in> <87fsfcgeqj.fsf@dismail.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87fsfcgeqj.fsf@dismail.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "bug-Guix" Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org 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=1666791556; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=dyt/faNag7y27zhyZJlt/BstsMx8Q5a6rfYDntjKfvQ=; b=rW/FxKUXvfqBXa3M3lKfBXPx9g+eFDqXX9Uz4WTNIYp5efsSTyepg1P8aRe1YhqZ7GQT5Q Amvg+PkcJTMzs68wi1353j1aFRm0jD5YrRO1VO+IFCfXT4hjt18LMx+bwvIiFot/Z+lULE dUIZQHd7+jjhoH11aZNy481uBlF8vksWLwOQn7Bp92Ns4GUXyYeGVRez1YLRgXKotoyqVo 1JCib7wn6Ek42vad/I78yTVxUo1W3rvYIoPqgzTz/6ssbhzxYP7Y2oD8v78aD1Df5eNoYn 0hu4bX933oP0YBs+i0G8QrpoiiUyaxaUaHSd2vLCS0wdnEZ/lSo82qJgksga1A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666791556; a=rsa-sha256; cv=none; b=hAGoAgXP3d/ubCuCUgOwDHdrxdycOlxBYwrfKkJt36mOfWL7PF599Rnp0O0n1yQJZIiDRB XdrK+1hLIqIqUwnGUPoq5/4AEvEt1wHtW5nNgUsi/ES2egOIHuFgWE8qBWIwvvKVSbJth7 6Mj9UJV/9Ty+AX8ufxKMMt7OEbID1+sBGxe+TVgjPN+qQh/kbKnSAlBTlWdelO+xJwu9yR 5pfe6HPyFi8vD/543FT4x1C1GZrVCLxBoLjWGeDQb77vyDv3nCI0A6+AYvrsmpCwXVR7T7 71uLBjpg+VltPahY8hbGS8bOK9uGbKFxNDfvn8ATixsYHMK3YGtc+cRXEyh8Nw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=HA4L1Y30; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=HA4L1Y30; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.88 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=HA4L1Y30; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=HA4L1Y30; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 376681B9E3 X-Spam-Score: 2.88 X-Migadu-Scanner: scn1.migadu.com X-TUID: nNV3WI6KE8l0 Hi Joshua, On +2022-10-25 10:27:48 -0400, Joshua Branson via Bug reports for GNU Guix wrote: > Andrew Tropin writes: > > > On 2022-10-18 10:52, Andrew Tropin wrote: > > > >> Recently discovered a problem, which reproduces this way: > >> - Open a new emacs instance. > >> - Yank anything with M-w or select with mouse. > >> - Paste yanked text to chromium/icecat. > >> > > I sometimes run two instances of Emacs. I discovered today, that Emacs > cannot yank from one and paste to another. When I try to paste I get this > mysterious warning message in Emacs: > > "waiting for reply from selection owner." > > > Disclaimer: Sharing newbie discovery, inviting risk commentary, no warranty :) A hack to get around clipboarding hangs (which I won't go into here :) is (if you are safely by yourself on your laptop) this: Select what you want to copy-paste as usual (Ctl-Space and move point to end of region) but then don't copy it with Mx w -- instead do shell-op on region like --8<---------------cut here---------------start------------->8--- Esc | tee /tmp/foo --8<---------------cut here---------------end--------------->8--- that should write your region into /tmp/foo Then switch to your other emacs instance and insert foo contents at point using --8<---------------cut here---------------start------------->8--- Ctl-x i /tmp/foo --8<---------------cut here---------------end--------------->8--- tee should not have added any newline unless you had it in your selected region, and Ctl-x i should insert verbatim. (well, probably modulo different encodings in various buffers. Idk :) If you want to hop between gui and emacs -nw it should work fine there too. I've tried that. If you want to do like append-string, adding to the end of foo, use ...|tee -a /tmp/foo or use separate files ad lib, of course: whatever|tee /tmp/bar If you want to be a bit safer, it'd probably be good to make a restricted temp dir like --8<---------------cut here---------------start------------->8--- $ mktemp -d /tmp/joshclips.XXXXXX.d /tmp/joshclips.rinY4L.d $ ls -ltra /tmp/joshclips.rinY4L.d/ total 8 drwxrwxrwt 16 root root 4096 Oct 26 12:59 .. drwx------ 2 bokr bokr 4096 Oct 26 12:59 . --8<---------------cut here---------------end--------------->8--- (note the restricted write perm just to user, not group) and then tee to /tmp/joshclips.rinY4L.d/foo Of course, if you want to preserve your cutting room detritus, you can use other directories than /tmp :) BTW, you could of course plain write foo with Crl-x w but then you'd get interaction that using tee and insert avoids. Also you could use cat > or cat >> in place of tee and tee -a respectively, but then your selected region would disappear because redirected cat effectively returns '' as the filtered region, unlike tee which makes no mod, just sneaks a copy. Using cat you'd have to undo with Crl-underscore. No big deal, but tee avoids it :) Please excuse that this wasn't on the fseg topic. SFTN. -- Regards, Bengt Richter