summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoi Martin <jroi.martin@gmail.com>2025-07-02 14:59:07 +0200
committerEli Zaretskii <eliz@gnu.org>2025-07-05 12:08:21 +0300
commit8e49ced04c1941f9f8df6613013a135e1039ce3c (patch)
tree7a650f2fa0615dcef0687819447eea4f1b046cc2
parentcbd4616ae2f876251411ec4217d4ee0b300c401d (diff)
Update NEWS with info about `fill-region-as-paragraph-function'
* etc/NEWS: Add an entry for `fill-region-as-paragraph-function'. Document that `fill-region-as-paragraph-semlf' is a valid `fill-region-as-paragraph-function' value. (Bug#78949)
-rw-r--r--etc/NEWS14
1 files changed, 13 insertions, 1 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 8b36023078b..acb6e04f9cd 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -624,7 +624,10 @@ The new command 'fill-paragraph-semlf' fills a paragraph of text using
"semantic linefeeds", whereby a newline is inserted after every
sentence. The new command 'fill-region-as-paragraph-semlf' fills a
region of text using semantic linefeeds as if the region were a single
-paragraph.
+paragraph. You can set the variable 'fill-region-as-paragraph-function'
+to the value 'fill-region-as-paragraph-semlf' to enable functions like
+'fill-paragraph' and 'fill-region' to fill text using "semantic
+linefeeds".
+++
** 'C-u C-x .' clears the fill prefix.
@@ -2306,6 +2309,15 @@ each refresh. The sort direction can be controlled by using a cons cell
of a format string and a boolean. Alternatively, a sorting function can
be provided directly.
+** Fill
+
++++
+*** New variable 'fill-region-as-paragraph-function'.
+The new variable 'fill-region-as-paragraph-function' provides a way to
+override how functions like 'fill-paragraph' and 'fill-region' fill
+text. Major modes can bind this variable to a function that fits their
+needs. It defaults to 'fill-region-as-paragraph-default'.
+
---
** 'report-emacs-bug' now checks whether the bug report is about Org.
The command 'report-emacs-bug' looks in the report text for symbols that