emacs/lisp/textmodes
Roi Martin 99ec286d78 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)
2025-06-29 07:33:24 +03:00
..
artist.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
bib-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
bibtex-style.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
bibtex.el ; Fix typos 2025-02-22 14:48:29 +01:00
conf-mode.el Add major mode for highlighting npmrc files (Bug#77138) 2025-03-29 13:19:04 +03:00
css-mode.el Use keyword :commit with full hashes for treesit-language-source-alist. 2025-06-20 19:58:28 +03:00
dns-mode.el Prefer plusp/minusp to cl-plusp/cl-minusp 2025-02-17 22:46:56 +01:00
emacs-authors-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
emacs-news-mode.el Delete redundant lambdas around unary functions 2025-02-11 19:04:00 +01:00
enriched.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
fill.el Add variable `fill-region-as-paragraph-function' 2025-06-29 07:33:24 +03:00
flyspell.el Make turn-on-flyspell/turn-off-flyspell obsolete 2025-03-14 19:50:22 +01:00
glyphless-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
html-ts-mode.el Use keyword :commit with full hashes for treesit-language-source-alist. 2025-06-20 19:58:28 +03:00
ispell.el Use defvar-keymap for some trivial keymaps 2025-03-16 13:48:11 +01:00
less-css-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
makeinfo.el Recommend using 'keymap-set' in Commentaries 2025-03-15 04:10:27 +01:00
markdown-ts-mode.el Use keyword :commit with full hashes for treesit-language-source-alist. 2025-06-20 19:58:28 +03:00
mhtml-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
mhtml-ts-mode.el New variable 'comment-setup-function' for multi-language modes. 2025-05-05 19:57:29 +03:00
nroff-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
page-ext.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
page.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
paragraphs.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
picture.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
pixel-fill.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
po.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
refbib.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
refer.el Recommend using 'keymap-set' in Commentaries 2025-03-15 04:10:27 +01:00
refill.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
reftex-auc.el ; RefTeX: Update author email 2025-05-07 22:08:46 +02:00
reftex-cite.el ; RefTeX: Update author email 2025-05-07 22:08:46 +02:00
reftex-dcr.el ; RefTeX: Update author email 2025-05-07 22:08:46 +02:00
reftex-global.el ; RefTeX: Update author email 2025-05-07 22:08:46 +02:00
reftex-index.el ; RefTeX: Update author email 2025-05-07 22:08:46 +02:00
reftex-parse.el ; RefTeX: Update author email 2025-05-07 22:08:46 +02:00
reftex-ref.el ; RefTeX: Update author email 2025-05-07 22:08:46 +02:00
reftex-sel.el ; RefTeX: Update author email 2025-05-07 22:08:46 +02:00
reftex-toc.el ; RefTeX: Update author email 2025-05-07 22:08:46 +02:00
reftex-vars.el ; RefTeX: Update author email 2025-05-07 22:08:46 +02:00
reftex.el ; * lisp/textmodes/reftex.el: Update author email (bug#77850). 2025-06-24 23:20:39 +02:00
remember.el Recommend using 'keymap-set' in Commentaries 2025-03-15 04:10:27 +01:00
rst.el Merge from origin/emacs-30 2025-03-30 16:17:00 +02:00
sgml-mode.el Revert addition of electric-block-comment-mode & follow-up commits 2025-04-22 20:47:56 +08:00
string-edit.el ; Fix compilation warning in string-edit.el 2025-04-26 18:01:42 +03:00
table.el Recommend using 'keymap-set' in Commentaries 2025-03-15 04:10:27 +01:00
tex-mode.el Extend prettify-symbols-alist in TeX mode 2025-04-05 12:21:29 +03:00
texinfmt.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
texinfo.el Merge branch 'scratch/no-purespace' into 'master' 2025-02-01 04:56:52 +01:00
texnfo-upd.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
text-mode.el Merge from origin/emacs-30 2025-04-30 07:14:23 -04:00
tildify.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
toml-ts-mode.el Use keyword :commit with full hashes for treesit-language-source-alist. 2025-06-20 19:58:28 +03:00
two-column.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
underline.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
word-wrap-mode.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
yaml-ts-mode.el Fix yaml-ts-mode comment-start-skip to improve commenting/uncommenting 2025-06-25 21:50:06 +03:00