Do not empty kill ring when save a file
humitos opened this issue · 3 comments
humitos commented
Steps to reproduce it:
- open emacs with this configuration (use docker)
- create new Python file,
C-x C-f
- write something on it
- save the file,
C-x C-s
- select a region,
C-SPC
C-w
(removes it and put it in the kill ring) / the same happens when killing the lineC-k
C-y
(it should yank it from the kill ring)- save the file,
C-x C-s
C-y
in the last step, it will yank a different thing from the kill ring nothing will be inserted since the kill ring is empty.
Only the values that were C-w
are removed from the kill ring, and this not happen in regular Text files.
humitos commented
I test this with other modes and it doesn't happen, so it's something tied to elpy or python-mode or some of the autosave commands that I have configured.
humitos commented
This is the one that empty the kill-ring
-> https://github.com/humitos/buftra.el/blob/0d9f64e7b810ca6f56f267fc7fe42783474b95b6/buftra.el#L41
humitos commented
Fixed at humitos/buftra.el@04007b7