diff options
author | Sebastian Miele <iota@whxvd.name> | 2024-06-19 15:48:59 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2024-06-27 10:48:18 +0300 |
commit | 058bb4ca25adb8f4bf78cc0f09a65d730dbd797d (patch) | |
tree | 8c361b2ac539898c038903439a6ee18da67086a6 /lisp/emacs-lisp/regexp-opt.el | |
parent | e45173d114e37d5a652b5393ce7bcab1acea3f1a (diff) | |
download | emacs-058bb4ca25adb8f4bf78cc0f09a65d730dbd797d.tar.gz emacs-058bb4ca25adb8f4bf78cc0f09a65d730dbd797d.tar.bz2 emacs-058bb4ca25adb8f4bf78cc0f09a65d730dbd797d.zip |
kill-whole-line: Honor visibility; fix kill-ring when read-only (bug#65734)
* lisp/simple.el (kill-whole-line): Use visibility state before
performing any edits as reference instead of expecting that visibility
cannot change. First of the two calls to `kill-region' may trigger
`after-change-functions' that might alter the visibility state.
Make sure that we populate the `kill-ring' with the contents of the
whole line when buffer is in `read-only-mode'.
Diffstat (limited to 'lisp/emacs-lisp/regexp-opt.el')
0 files changed, 0 insertions, 0 deletions