]> git.eshelyaron.com Git - emacs.git/commit
Indent ERT failure explanations rigidly
authorF. Jason Park <jp@neverwas.me>
Fri, 9 Aug 2024 23:49:28 +0000 (16:49 -0700)
committerEshel Yaron <me@eshelyaron.com>
Wed, 4 Sep 2024 07:51:33 +0000 (09:51 +0200)
commit769f758436f98d777888f9d5f596406ad9004690
treeb8f77b501dc9c16b0edb9831f9f792c2ed72df9d
parente69902e605ac29aed8ebfae98be24d7d80bb59bf
Indent ERT failure explanations rigidly

This also affects the listing of `should' forms produced by hitting
the L key on a test button in an ERT buffer.

* lisp/emacs-lisp/ert.el (ert--pp-with-indentation-and-newline):
Indent the pretty-printed result to match the caller's current column
as a reference indentation.
* test/lisp/emacs-lisp/ert-tests.el
(ert--pp-with-indentation-and-newline): New test.  (Bug#72561)

(cherry picked from commit 0a500193087efc96aa3791dc4c2084ef5f6c3c06)
lisp/emacs-lisp/ert.el
test/lisp/emacs-lisp/ert-tests.el