diff options
| author | Noam Postavsky | 2018-06-29 19:58:58 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2018-07-09 19:39:03 -0400 |
| commit | 8f7d35cabdbeb2404d53af39c5d7c12e870fa1cb (patch) | |
| tree | 7840f69403e63c9ab2576b0b89cff311ebf58131 /test | |
| parent | db3f7797809ed9de8dd92ce38bf34f768ddc64ad (diff) | |
| download | emacs-8f7d35cabdbeb2404d53af39c5d7c12e870fa1cb.tar.gz emacs-8f7d35cabdbeb2404d53af39c5d7c12e870fa1cb.zip | |
Stop using indent-line-to in lisp-indent-line (Bug#32014)
This is partial revert of "Remove ignored argument from
lisp-indent-line", because `indent-line-to' doesn't respect field
boundaries.
* lisp/emacs-lisp/lisp-mode.el (lisp-indent-line): Use delete-region
and indent-to instead of `indent-line-to'.
* test/lisp/emacs-lisp/lisp-mode-tests.el
(lisp-indent-with-read-only-field): Expect to pass.
Don't merge to master, we will fix indent-line-to there instead.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/emacs-lisp/lisp-mode-tests.el | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/lisp/emacs-lisp/lisp-mode-tests.el b/test/lisp/emacs-lisp/lisp-mode-tests.el index 2ac0e5ce1d4..8598d419788 100644 --- a/test/lisp/emacs-lisp/lisp-mode-tests.el +++ b/test/lisp/emacs-lisp/lisp-mode-tests.el | |||
| @@ -226,7 +226,6 @@ Expected initialization file: `%s'\" | |||
| 226 | 226 | ||
| 227 | (ert-deftest lisp-indent-with-read-only-field () | 227 | (ert-deftest lisp-indent-with-read-only-field () |
| 228 | "Test indentation on line with read-only field (Bug#32014)." | 228 | "Test indentation on line with read-only field (Bug#32014)." |
| 229 | :expected-result :failed | ||
| 230 | (with-temp-buffer | 229 | (with-temp-buffer |
| 231 | (insert (propertize "prompt> " 'field 'output 'read-only t | 230 | (insert (propertize "prompt> " 'field 'output 'read-only t |
| 232 | 'rear-nonsticky t 'front-sticky '(read-only))) | 231 | 'rear-nonsticky t 'front-sticky '(read-only))) |