emacs/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
..
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 Update `fill-region-as-paragraph-semlf' to follow fill.el protocols 2025-06-30 17:33:43 -04: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