aboutsummaryrefslogtreecommitdiffstats
path: root/java/org/gnu
diff options
context:
space:
mode:
authorSebastian Miele2024-06-19 15:48:59 +0200
committerEli Zaretskii2024-06-27 10:48:18 +0300
commit058bb4ca25adb8f4bf78cc0f09a65d730dbd797d (patch)
tree8c361b2ac539898c038903439a6ee18da67086a6 /java/org/gnu
parente45173d114e37d5a652b5393ce7bcab1acea3f1a (diff)
downloademacs-058bb4ca25adb8f4bf78cc0f09a65d730dbd797d.tar.gz
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 'java/org/gnu')
0 files changed, 0 insertions, 0 deletions