# HG changeset patch # User Oleksandr Gavenko # Date 1666869489 -10800 # Node ID f02cdc92b5607ab93432ddf89a1b98dfd57436e3 # Parent bda24877724a56a355ffd33d153961ee86b00568 Fixed: on selection the text is copied, so it is impossible to replace the text with what is in clipboard as the content of clipboard is already replaced by old text. https://emacs.stackexchange.com/questions/74298/setq-select-enable-primary-t-breaks-copy-paste-in-emacs-28 diff -r bda24877724a -r f02cdc92b560 .emacs-my --- a/.emacs-my Wed Oct 12 00:14:04 2022 +0300 +++ b/.emacs-my Thu Oct 27 14:18:09 2022 +0300 @@ -1001,7 +1001,8 @@ (set-face-attribute 'region nil :background "light blue")) (setq select-enable-clipboard t) -(setq select-enable-primary t) +(unless (eq window-system 'w32) + (setq select-enable-primary t)) (setq save-interprogram-paste-before-kill nil) (when (fboundp 'er/expand-region)