bug#42016: 26.3; In latex-mode, fill-paragraph changes code to comments
In latex-mode, using fill-paragraph (M-q) on a non-comment line
following a comment will sometimes merge the non-comment line into the
comment, thus messing up the code.
To reproduce, try opening the following file (with C-x f):
----- snip -----
%% Demonstrate fill bug with GNU emacs
%% Open this file in latex-mode. Position point on the "yyy" line and hit M-q.
----- snip ------
Select latex-mode if necessary, position point on the 'yyy' line, and
hit M-q. The result is
%% xxx yyy
so that the "live" code 'yyy' has unintentionally been commented out.
This is bad, as M-q should not change the semantics of the file.
In GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu)
of 2020-03-26, modified by Debian built on lcy01-amd64-020
System Description: Ubuntu 20.04 LTS
Loading /etc/emacs/site-start.d/00debian.el (source)...done
Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
value of $LANG: en_US.UTF-8
Major mode: LaTeX
Minor modes in effect: