1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-12 10:44:12 -08: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 ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
bib-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
bibtex-style.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
bibtex.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
conf-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
css-mode.el Rename the newly added -ref- faces to -use- 2023-02-28 04:08:55 +02:00
dns-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
emacs-authors-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
emacs-news-mode.el Make 'emacs-news-cycle-tag' work at all levels 2023-02-21 15:25:36 +01:00
enriched.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
fill.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
flyspell.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
glyphless-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ispell.el Improve documentation related to 'ispell-complete-word' 2023-04-11 16:24:13 +03:00
less-css-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
makeinfo.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
mhtml-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
nroff-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
page-ext.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
page.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
paragraphs.el Revert 'forward-sentence-default-function' to return point (bug#62027) 2023-03-07 21:31:15 +02:00
picture.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
pixel-fill.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
po.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
refbib.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
refer.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
refill.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
reftex-auc.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
reftex-cite.el Fix reftex-citation docstring (bug#60710) 2023-01-10 19:02:04 +02:00
reftex-dcr.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
reftex-global.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
reftex-index.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
reftex-parse.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
reftex-ref.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
reftex-sel.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
reftex-toc.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
reftex-vars.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
reftex.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
remember.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
rst.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sgml-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
string-edit.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
table.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
tex-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
texinfmt.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
texinfo.el Fix auto-filling in Texinfo mode 2023-05-13 11:28:38 +03:00
texnfo-upd.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
text-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
tildify.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
toml-ts-mode.el Rename the newly added -ref- faces to -use- 2023-02-28 04:08:55 +02:00
two-column.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
underline.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
word-wrap-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
yaml-ts-mode.el Rename the newly added -ref- faces to -use- 2023-02-28 04:08:55 +02:00