Closed kekeimiku closed 3 years ago
WIth clipboard, it does not reproduce. WIth kill-ring, it reproduced.
not clipboard issue, but kill-ring issue?
Yes, is kill-ring issue...
I fixed it in feature/pgtk on savannah. Please try it.
It is indeed fixed in emacs,but there is still a problem. When I copy unicode from emacs to chrom(e)ium
I currently only find chrom(e)ium has problems
Don't think this is an issue from Emacs side. If you input some CJK using Firefox(which runs naively under wayland), then copy/paste it into Chromium. Same issue. @Makima0
You can using Chromium extensions like atomic-chrome or Edit with Emacs to input CJK for now.
Don't think this is an issue from Emacs side. If you input some CJK using Firefox(which runs naively under wayland), then copy/paste it into Chromium. Same issue. @Makima0
You can using Chromium extensions like atomic-chrome or Edit with Emacs to input CJK for now.
I can copy normally from alacritty.
(setq wl-copy-process nil)
(defun wl-copy (text)
(setq wl-copy-process (make-process :name "wl-copy"
:buffer nil
:command '("wl-copy" "-f" "-n")
:connection-type 'pipe))
(process-send-string wl-copy-process text)
(process-send-eof wl-copy-process))
(defun wl-paste ()
(if (and wl-copy-process (process-live-p wl-copy-process)) nil
(shell-command-to-string "wl-paste -t text -n 2>/dev/null")))
(setq interprogram-cut-function 'wl-copy)
(setq interprogram-paste-function 'wl-paste)
(setq confirm-kill-processes nil)
If you change the default interprogram-cut-function
and interprogram-paste-function
of emacs to wl-clip
, everything returns to normal.
So I think it’s an emacs issue.
Nice. Indeed it works. @Makima0
Side question. Which input method software are you using when input CJK characters on alacritty? I can't active fcitix 5 on alacritty nor chromium.
@Makima0 It does not reproduce with emacs -Q.
Please tell me:
@Makima0 It does not reproduce with emacs -Q.
Please tell me:
- version of gtk
- version of chromium
- window manager and its version
gtk3 sway version 1.5.1 Google Chrome 88.0.4324.146
I installed sway 1.5.1 and downgraded chromium to 88.0.4324.146, but the issue does not reproduce.
What OS do you use? And what is its version?
I installed sway 1.5.1 and downgraded chromium to 88.0.4324.146, but the issue does not reproduce.
What OS do you use? And what is its version?
I use the latest Arch Linux.
Use this flag to ensure that chrome runs on Wayland.
--enable-features=UseOzonePlatform --ozone-platform=wayland
I guess you are using xwayland
to run chrome?
If you use xwayland
, this problem will not occur.
Thanks for the OS and version.
chromium on wayland?? I didn't know such a thing... ok, I'll try it tomorrow night.
confirmed.
Run gtk3-demo, double-click Entry Buffer
in Entry
, input a unicode string in the entry buffer, and copy and paste it to chromium.
The same issue reproduces.
Maybe it is gtk's issue or chromium's issue.
I'll look for a work around.
@Makima0 Fixed in feature/pgtk on savannah. Please try again.
@masm11 The issue has been fixed, thank you very much!
I have problem yanking text from Chromium Select some text from Chromium(wayland and xwayland) and copy C-c. Open PGTK Emacs, hit C-y. Copied text is not there. Can you guys verify this? @masm11 @Makima0
@declanqian reproduced.
@declanqian I'm debugging. This should be a work around until fixed:
(setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT STRING text/plain))
@declanqian Fixed in feature/pgtk on savannah. Please try it.
Cool, it's working. @masm11
https://user-images.githubusercontent.com/36557882/107804096-762f3e00-6d9e-11eb-9ba1-a58d6d0eee3e.mp4
emacs version https://github.com/emacs-mirror/emacs/tree/175ebb010477ff0e174fe5145154397f43dee2d2 Interim solution