mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-04 03:13:24 +00:00
![]() 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'. |
||
---|---|---|
.. | ||
artist.el | ||
bib-mode.el | ||
bibtex-style.el | ||
bibtex.el | ||
conf-mode.el | ||
css-mode.el | ||
dns-mode.el | ||
emacs-authors-mode.el | ||
emacs-news-mode.el | ||
enriched.el | ||
fill.el | ||
flyspell.el | ||
glyphless-mode.el | ||
html-ts-mode.el | ||
ispell.el | ||
less-css-mode.el | ||
makeinfo.el | ||
markdown-ts-mode.el | ||
mhtml-mode.el | ||
mhtml-ts-mode.el | ||
nroff-mode.el | ||
page-ext.el | ||
page.el | ||
paragraphs.el | ||
picture.el | ||
pixel-fill.el | ||
po.el | ||
refbib.el | ||
refer.el | ||
refill.el | ||
reftex-auc.el | ||
reftex-cite.el | ||
reftex-dcr.el | ||
reftex-global.el | ||
reftex-index.el | ||
reftex-parse.el | ||
reftex-ref.el | ||
reftex-sel.el | ||
reftex-toc.el | ||
reftex-vars.el | ||
reftex.el | ||
remember.el | ||
rst.el | ||
sgml-mode.el | ||
string-edit.el | ||
table.el | ||
tex-mode.el | ||
texinfmt.el | ||
texinfo.el | ||
texnfo-upd.el | ||
text-mode.el | ||
tildify.el | ||
toml-ts-mode.el | ||
two-column.el | ||
underline.el | ||
word-wrap-mode.el | ||
yaml-ts-mode.el |