GNU bug report logs -
#51685
29.0.50; Yanking from clipboard broken (Win10)
Previous Next
Reported by: Arash Esbati <arash <at> gnu.org>
Date: Mon, 8 Nov 2021 10:59:01 UTC
Severity: normal
Found in version 29.0.50
Done: Arash Esbati <arash <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 51685 in the body.
You can then email your comments to 51685 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51685
; Package
emacs
.
(Mon, 08 Nov 2021 10:59:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Arash Esbati <arash <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 08 Nov 2021 10:59:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi all,
yanking text from clipboard into Emacs doesn't work for me. Yanking
control <at> debbugs.gnu.org into Emacs looks like this:
[yank.png (image/png, inline)]
[Message part 3 (text/plain, inline)]
Steps to reproduce:
1) Start Emacs with emacs -Q (from a MinGW64 shell)
2) Open Windows Editor
3) Enter control <at> debbugs.gnu.org in Editor
4) Mark and Copy in Editor
5) Yank in scratch with C-y
This is Emacs 990aad47 from master.
Can others reproduce this?
Best, Arash
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51685
; Package
emacs
.
(Mon, 08 Nov 2021 11:03:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 51685 <at> debbugs.gnu.org (full text, mbox):
Arash Esbati <arash <at> gnu.org> writes:
> Steps to reproduce:
> 1) Start Emacs with emacs -Q (from a MinGW64 shell)
> 2) Open Windows Editor
> 3) Enter control <at> debbugs.gnu.org in Editor
> 4) Mark and Copy in Editor
> 5) Yank in scratch with C-y
Does reverting 5e66c75e0 fix the issue?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51685
; Package
emacs
.
(Mon, 08 Nov 2021 11:28:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 51685 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Arash Esbati <arash <at> gnu.org> writes:
>
>> Steps to reproduce:
>> 1) Start Emacs with emacs -Q (from a MinGW64 shell)
>> 2) Open Windows Editor
>> 3) Enter control <at> debbugs.gnu.org in Editor
>> 4) Mark and Copy in Editor
>> 5) Yank in scratch with C-y
>
> Does reverting 5e66c75e0 fix the issue?
I've reverted it now and will have to reexamine the problem before
attempting a new fix.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Reply sent
to
Arash Esbati <arash <at> gnu.org>
:
You have taken responsibility.
(Mon, 08 Nov 2021 11:34:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Arash Esbati <arash <at> gnu.org>
:
bug acknowledged by developer.
(Mon, 08 Nov 2021 11:34:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 51685-done <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>
>> Arash Esbati <arash <at> gnu.org> writes:
>>
>>> Steps to reproduce:
>>> 1) Start Emacs with emacs -Q (from a MinGW64 shell)
>>> 2) Open Windows Editor
>>> 3) Enter control <at> debbugs.gnu.org in Editor
>>> 4) Mark and Copy in Editor
>>> 5) Yank in scratch with C-y
>>
>> Does reverting 5e66c75e0 fix the issue?
>
> I've reverted it now and will have to reexamine the problem before
> attempting a new fix.
Thanks, I also just tried it and 5e66c75e0 is the problematic change.
I'm closing this report for now.
Best, Arash
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51685
; Package
emacs
.
(Mon, 08 Nov 2021 13:39:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 51685 <at> debbugs.gnu.org (full text, mbox):
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Mon, 08 Nov 2021 12:27:43 +0100
> Cc: 51685 <at> debbugs.gnu.org
>
> >> 1) Start Emacs with emacs -Q (from a MinGW64 shell)
> >> 2) Open Windows Editor
> >> 3) Enter control <at> debbugs.gnu.org in Editor
> >> 4) Mark and Copy in Editor
> >> 5) Yank in scratch with C-y
> >
> > Does reverting 5e66c75e0 fix the issue?
>
> I've reverted it now and will have to reexamine the problem before
> attempting a new fix.
Whatever you do, don't decode the selection text on MS-Windows. It is
already decoded (see w32-get-clipboard-data), and
selection-coding-system is UTF-16 on MS-Windows, so decoding a decoded
string by that will not do anything useful ;-)
The existing code carefully side-steps the decoding by looking at the
foreign-selection property on the string, which the Windows code
doesn't set. But your changes removed that test, and thus caused the
clipboard text to be decoded on Windows.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51685
; Package
emacs
.
(Mon, 08 Nov 2021 13:42:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 51685 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> The existing code carefully side-steps the decoding by looking at the
> foreign-selection property on the string, which the Windows code
> doesn't set. But your changes removed that test, and thus caused the
> clipboard text to be decoded on Windows.
Ah, I see. Thanks for the explanation. I plan on getting my Windows
VMs up and running again (I'm in the middle of switching some computers
here) so that I can do some testing on Windows too, and then I'll
attempt the fix again. 😀
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 07 Dec 2021 12:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 152 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.