diff options
| author | Glenn Morris | 2020-04-05 07:50:15 -0700 |
|---|---|---|
| committer | Glenn Morris | 2020-04-05 07:50:15 -0700 |
| commit | 333f63d53706de9d1a1dbc04ed62f9dc0e9698db (patch) | |
| tree | 8384df145897e7845c3ef738d9b27ff35c63fbf3 /test | |
| parent | 0e18fdd1b6e86b8b9704e3a73204f94682ee9450 (diff) | |
| parent | 6de20c7eab0dd8360e78d744dbf62aecc7f78281 (diff) | |
| download | emacs-333f63d53706de9d1a1dbc04ed62f9dc0e9698db.tar.gz emacs-333f63d53706de9d1a1dbc04ed62f9dc0e9698db.zip | |
Merge from origin/emacs-27
6de20c7eab (origin/emacs-27) Fix syntax error in man page.
f8607d3c03 Handle filling of indented ChangeLog function entries
7e78f0d1b2 Fix void-variable n-reb in re-builder (Bug#40409)
452d776a5d Fix small bug in copy_string_contents.
fa823653ff Fix invocations of gpg from Gnus
d4f51d0a2e Don't draw GTK's internal border and tab bar on top of eac...
38731d504e ; * src/buffer.c (syms_of_buffer) <inhibit-read-only>: Doc...
44ac9e48bb Tweak htmlfontify's generated output
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/vc/log-edit-tests.el | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/lisp/vc/log-edit-tests.el b/test/lisp/vc/log-edit-tests.el index bb3f6582325..86a40a97b19 100644 --- a/test/lisp/vc/log-edit-tests.el +++ b/test/lisp/vc/log-edit-tests.el | |||
| @@ -74,6 +74,31 @@ couple of sentences. Long enough to be | |||
| 74 | filled for several lines. | 74 | filled for several lines. |
| 75 | \(fun9): Etc.")))) | 75 | \(fun9): Etc.")))) |
| 76 | 76 | ||
| 77 | (ert-deftest log-edit-fill-entry-indented-func-entries () | ||
| 78 | ;; Indenting function entries is a typical mistake caused by using a | ||
| 79 | ;; misconfigured or non-ChangeLog specific fill function. | ||
| 80 | (with-temp-buffer | ||
| 81 | (insert "\ | ||
| 82 | * dir/file.ext (fun1): | ||
| 83 | (fun2): | ||
| 84 | (fun3): | ||
| 85 | * file2.txt (fun4): | ||
| 86 | (fun5): | ||
| 87 | (fun6): | ||
| 88 | (fun7): Some prose. | ||
| 89 | (fun8): A longer description of a complicated change.\ | ||
| 90 | Spread over a couple of sentences.\ | ||
| 91 | Long enough to be filled for several lines. | ||
| 92 | (fun9): Etc.") | ||
| 93 | (goto-char (point-min)) | ||
| 94 | (let ((fill-column 72)) (log-edit-fill-entry)) | ||
| 95 | (should (equal (buffer-string) "\ | ||
| 96 | * dir/file.ext (fun1, fun2, fun3): | ||
| 97 | * file2.txt (fun4, fun5, fun6, fun7): Some prose. | ||
| 98 | \(fun8): A longer description of a complicated change. Spread over a | ||
| 99 | couple of sentences. Long enough to be filled for several lines. | ||
| 100 | \(fun9): Etc.")))) | ||
| 101 | |||
| 77 | (ert-deftest log-edit-fill-entry-trailing-prose () | 102 | (ert-deftest log-edit-fill-entry-trailing-prose () |
| 78 | (with-temp-buffer | 103 | (with-temp-buffer |
| 79 | (insert "\ | 104 | (insert "\ |