diff options
| author | Roi Martin | 2025-06-17 10:45:13 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2025-06-29 07:33:24 +0300 |
| commit | 99ec286d7803fa59f770013a2135f23918510103 (patch) | |
| tree | be00bf8d6ac6555fd1cdc96e57d10b9358f885df /exec | |
| parent | bca0ce9d071fee66893015bb45c3eae7ba05c938 (diff) | |
| download | emacs-99ec286d7803fa59f770013a2135f23918510103.tar.gz emacs-99ec286d7803fa59f770013a2135f23918510103.zip | |
Add variable `fill-region-as-paragraph-function'
Add the variable `fill-region-as-paragraph-function' to provide
a way to override how functions like `fill-region' fill text.
* doc/lispref/text.texi (Filling): Document
`fill-region-as-paragraph-function' variable.
* doc/emacs/text.texi (Fill Commands): Reference
`fill-region-as-paragraph-function' variable.
* lisp/textmodes/fill.el (fill-region-as-paragraph-function):
Add variable.
(fill-region-as-paragraph): Convert into
`fill-region-as-paragraph-function' wrapper.
(fill-region-as-paragraph-default): Rename old
`fill-region-as-paragraph' function.
(fill-region-as-paragraph-semlf): Update calls to
`fill-region-as-paragraph-default'.
(fill-region): Add reference to `fill-region-as-paragraph-function'
in doc string.
* test/lisp/textmodes/fill-tests.el (fill-test-fill-region): Add
test case for the `fill-region' function.
* test/lisp/textmodes/fill-resources/fill-region.erts: Add test
data. (Bug#78816)
Diffstat (limited to 'exec')
0 files changed, 0 insertions, 0 deletions