Bug 494768

Summary: Disabling middle-click "Pastes selected text" setting disables Emacs clipboard synchronization
Product: [Plasma] plasmashell Reporter: Tomasz Hołubowicz <services>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: kde
Priority: NOR    
Version First Reported In: 6.2.0   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Tomasz Hołubowicz 2024-10-14 19:28:27 UTC
SUMMARY
Disabling "Pastes selected text" for middle-click (almost) disables Emacs clipboard synchronization. 

STEPS TO REPRODUCE
1. Disable "Pastes selected text" setting and restart system.
2. Open Emacs and try to copy text with M-w (kill-ring-save) or C-w (kill-region). 
3. Try to paste text or open history popup.

OBSERVED RESULT
Nothing gets saved to system clipboard. Weirdly enough C-k (kill-line) or C-M-k (kill-sexp) still saves things to clipboard. 

EXPECTED RESULT
Copying and cutting text in Emacs works as usual.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2
Kernel Version: 6.11.3-300.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 1 David Edmundson 2024-10-16 17:31:13 UTC
If emacs is using the primary buffer (middle click paste) buffer for storage, and we disable it there's nothing we can do at our level.

You can try reporting it to emacs.