From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#47642: 28.0.50; (error "Selection owner couldn't convert" UTF8_STRING) Date: Mon, 12 Apr 2021 19:03:48 +0300 Organization: LINKOV.NET Message-ID: <87k0p73e1n.fsf@mail.linkov.net> References: <86czv656gm.fsf@protected.rcdrun.com> <87y2dteurl.fsf@mail.linkov.net> <87im4ryfqn.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28227"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: Jean Louis , 47642@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 12 18:16:03 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lVzEJ-0007BX-39 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Apr 2021 18:16:03 +0200 Original-Received: from localhost ([::1]:45372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVzEI-0003bk-49 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Apr 2021 12:16:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVzDK-0003b1-LT for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2021 12:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46270) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVzDK-0007S9-Db for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2021 12:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lVzDK-0003PX-8e for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2021 12:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Apr 2021 16:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47642 X-GNU-PR-Package: emacs Original-Received: via spool by 47642-submit@debbugs.gnu.org id=B47642.161824406213012 (code B ref 47642); Mon, 12 Apr 2021 16:15:02 +0000 Original-Received: (at 47642) by debbugs.gnu.org; 12 Apr 2021 16:14:22 +0000 Original-Received: from localhost ([127.0.0.1]:57807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVzCg-0003No-78 for submit@debbugs.gnu.org; Mon, 12 Apr 2021 12:14:22 -0400 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:43173) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVzCf-0003NZ-7I for 47642@debbugs.gnu.org; Mon, 12 Apr 2021 12:14:21 -0400 Original-Received: from mail.gandi.net (m91-129-96-157.cust.tele2.ee [91.129.96.157]) (Authenticated sender: juri@linkov.net) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 9D989240005; Mon, 12 Apr 2021 16:14:13 +0000 (UTC) In-Reply-To: <87im4ryfqn.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 12 Apr 2021 12:11:28 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:203914 Archived-At: >> after copying an image in Gimp, then exiting Gimp, and trying to paste >> in Emacs. > > I was unable to reproduce that (on Debian/bullseye) -- I just get nil > back from > > (x-get-selection-internal 'CLIPBOARD 'UTF8_STRING nil nil) > > no matter whether Gimp is running or not (after choosing Edit -> Copy). Here is a complete test case with 100% reproducibility: 1. In GIMP 2.10.18 on Ubuntu create a new image 2. Select a rectangle 3. Copy with Ctrl+C or Edit -> Copy 4. in 'emacs -Q' version 28, GTK+ version 3.24.20 5. evaluating (x-get-selection-internal 'CLIPBOARD 'UTF8_STRING nil nil) returns nil 6. quit Gimp 7. evaluate the same (x-get-selection-internal 'CLIPBOARD 'UTF8_STRING nil nil) 8. it fails with Debugger entered--Lisp error: (error "Selection owner couldn't convert" UTF8_STRING) x-get-selection-internal(CLIPBOARD UTF8_STRING nil nil) (progn (x-get-selection-internal 'CLIPBOARD 'UTF8_STRING nil nil)) eval((progn (x-get-selection-internal 'CLIPBOARD 'UTF8_STRING nil nil)) t) elisp--eval-last-sexp(nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp) This is strange since there is no owner anymore, the selection owner was closed. It's a big problem for me because I customized save-interprogram-paste-before-kill to t, and I can't use copy/paste in Emacs anymore after this error, because I raises the same error on trying to copy a new text, so even can't overwrite the old unavailable selection with a new one in Emacs. Then I need to switch to some other app, copy some text from it to the clipboard, that fixes the broken state of copy/paste in Emacs. > In any case -- I'm not sure there's anything we can do on the Emacs > side... except perhaps change the error message? "Couldn't convert" > isn't really informative. "Couldn't get selection from selection > owner", perhaps? I wonder why this error should be raised at all instead of just returning nil?