1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-15 11:21:19 -07:00
emacs/lisp/textmodes
Eli Zaretskii 7acae22f42 Fix auto-filling in Texinfo mode
This fixes auto-filling in Texinfo buffers.  It was broken by the
fix to bug#49558, which made M-q fill over-long @noindent lines by
refraining from customizing 'paragraph-separate' in Texinfo mode.
The underlying problem here is that 'auto-fill-mode' doesn't call
mode-specific filling functions, but does its job by itself, and
depends on 'forward-paragraph' to find the beginning of the
paragraph as appropriate for calculation of 'fill-prefix', and a
different value of 'paragraph-separate' broke that.  As a side
effect, the change below also changes paragraph-movement commands
in Texinfo back to how they behaved prior to that bugfix, but I
don't see why the paragraph-movement behavior introduced by that
fix made more sense.  Try to move through a series of
@-directives, like a paragraph preceded by several @cindex
entries, and you will see the inconsistencies.  In any case, the
adverse effects of that fix on auto-filling is unacceptable.

* lisp/textmodes/texinfo.el (fill-paragraph-separate): New
variable.
(texinfo-mode): Set 'fill-paragraph-separate' to the default value
of 'paragraph-separate'.  Customize 'paragraph-separate' to the
Texinfo-specific value, as it was before commit dde591571a.
(texinfo--fill-paragraph): Bind 'paragraph-separate' to the value
of 'fill-paragraph-separate', to keep 'M-q' happy.
2023-05-13 11:28:38 +03:00
..
artist.el
bib-mode.el
bibtex-style.el
bibtex.el
conf-mode.el
css-mode.el Rename the newly added -ref- faces to -use- 2023-02-28 04:08:55 +02:00
dns-mode.el
emacs-authors-mode.el
emacs-news-mode.el Make 'emacs-news-cycle-tag' work at all levels 2023-02-21 15:25:36 +01:00
enriched.el
fill.el
flyspell.el
glyphless-mode.el
ispell.el Improve documentation related to 'ispell-complete-word' 2023-04-11 16:24:13 +03:00
less-css-mode.el
makeinfo.el
mhtml-mode.el
nroff-mode.el
page-ext.el
page.el
paragraphs.el Revert 'forward-sentence-default-function' to return point (bug#62027) 2023-03-07 21:31:15 +02:00
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 Fix auto-filling in Texinfo mode 2023-05-13 11:28:38 +03:00
texnfo-upd.el
text-mode.el
tildify.el
toml-ts-mode.el Rename the newly added -ref- faces to -use- 2023-02-28 04:08:55 +02:00
two-column.el
underline.el
word-wrap-mode.el
yaml-ts-mode.el Rename the newly added -ref- faces to -use- 2023-02-28 04:08:55 +02:00