Subject: bug#23081: emacs-auctex: fill-paragraph always sets the modified flag

From: David Kastrup <[email-masked]>
Date: Mon, 21 Mar 2016 22:32:35 +0100

Jaakov <[email-masked]> writes:

> Dear maintainer:
>
> Here is the bug:
>
> 1) Create a tex file with some long multi-line text, e.g.,
>
> % This buffer is for notes you don't want to save, and for
> % Lisp evaluation.  If you want to create a file, visit that file with
> % C-x C-f, then enter the text in that file's own buffer.
>
> 2) Open this file in Emacs.
>
> 3) Put the cursor into the text and press Alt-Q to adjust it to your
> column width. If there are less than two lines, add more text and
> press Alt-Q; repeat until you finally get at least two lines after
> Alt-Q.
>
> 4) a) Save the file.
>    b) Observe that the buffer is indicated as stored.
>
> 5) a) Press Alt-Q again.
>    b) Observe that the buffer contents did not change but the buffer
> is indicated as modified by the stars in the left lower corner.
>
> This is contrary to the modified flag behavior as stated in
> https://www.gnu.org/software/emacs/manual/html_node/elisp/Buffer-Modification.html

This is the same in Emacs' *scratch* buffer as of

GNU Emacs 25.1.50.2 (i686-pc-linux-gnu, GTK+ Version 3.18.7) of 2016-02-24

so it's not particular to AUCTeX.

-- 
David Kastrup