<div dir="ltr">The current implementation of x-select-enable-clipboard calls x-select-text for all cursor movement with a selection. This is not the behavior when using non-evil mode. Basically, emacs takes over my clipboard history unless the below patch is done. I'm on a Mac and use Alfred clipboard history.<div>
<br></div><div>My change below in bold seems to fix this issue. </div><div><br></div><div>1. Is this the right thing to do?</div><div>2. Is there a contributions info page that explains how to contribute to this project. I'm familiar with github forks and pull requests.</div>
<div><br></div><div>Thanks,</div><div><br></div><div>Justin</div><div><br></div><div><br></div><div><div><b>(setq x-select-enable-clipboard nil)</b></div><div>(defun evil-visual-update-x-selection (&optional buffer)</div>
<div> "Update the X selection with the current visual region."</div><div> (let ((buf (or buffer (current-buffer))))</div><div> (when (buffer-live-p buf)</div><div> (with-current-buffer buf</div><div> (when (and (evil-visual-state-p)</div>
<div> (fboundp 'x-select-text)</div><div> (or (not (boundp 'ns-initialized))</div><div> (with-no-warnings ns-initialized))</div><div> (not (eq evil-visual-selection 'block)))</div>
<div><b> ;; CHANGE</b></div><div><b> ;; ONLY call x-select-text if x-select-enable-clipboard is true</b></div><div><b> (if x-select-enable-clipboard</b></div><div> (x-select-text (buffer-substring-no-properties</div>
<div> evil-visual-beginning</div><div> evil-visual-end))))))))</div></div><div><br></div><div><br></div><div><br></div><div>-- <br><div dir="ltr"><div>Justin Gordon | 808-877-6461 | m: 808-281-7272</div>
<div><a href="http://www.railsonmaui.com/" target="_blank">www.railsonmaui.com</a> | <a href="https://twitter.com/railsonmaui" target="_blank">twitter: @railsonmaui</a> | <a href="http://www.sugarranchmaui.com/" target="_blank">sugarranchmaui.com</a> | <a href="https://www.facebook.com/SugarRanch" target="_blank">Sugar Ranch Blog</a></div>
</div><img src="http://www.mailscanner.info/images/1x1spacer.gif" width="1" height="1" alt="Web Bug from https://app.yesware.com/t/01f8a3b0f626a666c63298de8542e8c14f180be4/03ec772d874609c379e5b77c4a04944e/spacer.gif" /><img src="http://www.mailscanner.info/images/1x1spacer.gif" width="1" height="1" alt="Web Bug from http://app.yesware.com/t/01f8a3b0f626a666c63298de8542e8c14f180be4/03ec772d874609c379e5b77c4a04944e/spacer.gif" /></div>
<font face="yw-01f8a3b0f626a666c63298de8542e8c14f180be4-93c8fb7ba7ddc7b024e8248327838125--tob" style></font></div>