1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00
emacs/test/lisp/textmodes
Roi Martin 0ac21120cf Update `fill-region-as-paragraph-semlf' to follow fill.el protocols
Update the `fill-region-as-paragraph-semlf' function to follow the
`fill-region-as-paragraph-function' protocol.  This allows us to
reimplement the `fill-paragraph-semlf' function using `fill-paragraph'
and `fill-region-as-paragraph-function'.
* lisp/textmodes/fill.el (fill-region-as-paragraph-semlf): Make this
function compatible with `fill-region-as-paragraph-function'.  Avoid
narrowing.
(fill-paragraph-semlf): Reimplement using `fill-paragraph' and
`fill-region-as-paragraph-function'.
* test/lisp/textmodes/fill-tests.el (fill-test-semlf-fill-region): Add
test.
(fill-test-fill-paragraph-semlf-fill-paragraph-function): Remove test.
(fill-test-fill-paragraph-semlf, fill-test-semlf)
(fill-test-fill-paragraph-semlf-justify, fill-test-semlf-justify)
(fill-test-fill-paragraph-semlf-sentence-end-double-space)
(fill-test-semlf-sentence-end-double-space)
(fill-test-fill-paragraph-semlf-fill-column, fill-test-semlf-fill-column)
(fill-test-fill-paragraph-semlf-punctuation-marks)
(fill-test-semlf-punctuation-marks, fill-test-fill-paragraph-semlf-twice)
(fill-test-semlf-twice, fill-test-fill-paragraph-semlf-fill-prefix)
(fill-test-semlf-fill-prefix)
(fill-test-fill-paragraph-semlf-indented-block)
(fill-test-semlf-indented-block, fill-test-fill-paragraph-semlf-revert)
(fill-test-semlf-revert, fill-test-fill-paragraph-semlf-emacs-lisp-mode)
(fill-test-semlf-emacs-lisp-mode, fill-test-fill-paragraph-semlf-c-mode)
(fill-test-semlf-c-mode, fill-test-fill-paragraph-semlf-org-mode)
(fill-test-semlf-org-mode, fill-test-fill-paragraph-semlf-markdown-mode)
(fill-test-semlf-markdown-mode): User shorter function names consistent
with erts file names.
* test/lisp/textmodes/fill-resources/semlf-fill-region.erts: Add test
data.
* test/lisp/textmodes/fill-resources/semlf-fill-paragraph-function.erts:
Delete file.
* test/lisp/textmodes/fill-resources/semlf-emacs-lisp-mode.erts: Remove
newlines around indented block.
* doc/lispref/text.texi (Filling): Highlight that
`fill-region-as-paragraph-function' changes the behavior of
`fill-paragraph'.
2025-06-30 17:33:43 -04:00
..
css-mode-resources Recognize some more SCSS selectors 2022-05-15 16:42:56 +02:00
emacs-news-mode-resources Make 'emacs-news-cycle-tag' work at all levels 2023-02-21 15:25:36 +01:00
fill-resources Update `fill-region-as-paragraph-semlf' to follow fill.el protocols 2025-06-30 17:33:43 -04:00
paragraphs-resources Revert mark-paragraph change and add tests 2021-01-07 13:08:52 +01:00
texinfo-resources Make paragraph/filling functions in texinfo-mode work better 2021-11-07 23:47:47 +01:00
bibtex-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
conf-mode-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
css-mode-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
dns-mode-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
emacs-news-mode-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
fill-tests.el Update `fill-region-as-paragraph-semlf' to follow fill.el protocols 2025-06-30 17:33:43 -04:00
mhtml-mode-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
page-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
paragraphs-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
po-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
reftex-tests.el Add RefTeX support for non-file buffers 2025-04-04 14:37:33 -04:00
sgml-mode-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
texinfo-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
tildify-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
underline-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00