Respect field boundaries in indent-line-to (Bug#32014)
* lisp/indent.el (indent-line-to): Use the back-to-indentation point as the end-point of whitespace removal, rather than backward-to-indentation which doesn't respect field boundaries. * test/lisp/emacs-lisp/lisp-mode-tests.el (lisp-indent-with-read-only-field): Don't expect to fail.
This commit is contained in:
parent
737481cc62
commit
e4ad2d1a8f
2 changed files with 3 additions and 3 deletions
|
@ -226,7 +226,6 @@ Expected initialization file: `%s'\"
|
|||
|
||||
(ert-deftest lisp-indent-with-read-only-field ()
|
||||
"Test indentation on line with read-only field (Bug#32014)."
|
||||
:expected-result :failed
|
||||
(with-temp-buffer
|
||||
(insert (propertize "prompt> " 'field 'output 'read-only t
|
||||
'rear-nonsticky t 'front-sticky '(read-only)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue