https://bugs.kde.org/show_bug.cgi?id=498956
Bug ID: 498956 Summary: Klipper applet interferes with Emacs lost-selection-mode Classification: Plasma Product: plasmashell Version: master Platform: Gentoo Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Clipboard widget & pop-up Assignee: plasma-b...@kde.org Reporter: j...@keelhaul.me.uk Target Milestone: 1.0 SUMMARY GNU Emacs implements lost-selection-mode which, when enabled, causes the selection within Emacs to be cleared if another application makes a primary selection. IMHO this is good behaviour which I would like other applications to also implement, but that is a personal preference and a separate issue. The problem is that, when the Plasma clipboartd applet is active and this mode is enabled, every time a selection is made in Emacs (by any means) somehow it is immediately cleared. Disabling the clipboard applet restores Emacs to normal. STEPS TO REPRODUCE 1. Enable the Klipper applet in Plasma, and start Emacs. 2. Ensure that Emacs' transient-mark-mode is enabled (this enables marked region highlighting). 2. Make a text selection in Emacs by any means: by dragging the mouse, Shift-arrow keys, or double or triple clicking. 3. Observe that the selection in Emacs is highlighted as expected, and that it is added to Klipper's history. 4. Enable lost-selection-mode in Emacs. 5. Make a text selection again, and observe that as soon as the selection action is finished (e.g. the mouse button is released at the end of a drag), the highlighting disappears but the selected text is still added to Klipper's history. 6. Without changing anything in Emacs, disable the Klipper applet. Observe that selecting works and is highlighted as expected. OBSERVED RESULT In step 5 the selection highlighting in Emacs disappears. EXPECTED RESULT In step 5 the highlighting should remain. ADDITIONAL INFORMATION Klipper settings: Save history across desktop sessions = on Keep selection and clipboard the same = on Text selection = Always save in history Non-text selection = Never save in history SOFTWARE/OS VERSIONS Operating System: Gentoo 2.17 KDE Plasma Version: 6.3.80 KDE Frameworks Version: 6.11.0 Qt Version: 6.8.1 Kernel Version: 6.6.47-gentoo-x86_64 (64-bit) Graphics Platform: X11 Processors: 3 × AMD Phenom(tm) II X3 705e Processor Memory: 15.6 GiB of RAM Graphics Processor: NVIDIA GeForce GT 730 -- You are receiving this mail because: You are watching all bug changes.