GNU bug report logs - #23081
emacs-auctex: fill-paragraph always sets the modified flag

Previous Next

Package: auctex;

Reported by: Jaakov <j_k_v <at> ro.ru>

Date: Mon, 21 Mar 2016 20:52:03 UTC

Severity: normal

Done: Jaakov <j_k_v <at> ro.ru>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23081 in the body.
You can then email your comments to 23081 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-auctex <at> gnu.org:
bug#23081; Package auctex. (Mon, 21 Mar 2016 20:52:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jaakov <j_k_v <at> ro.ru>:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Mon, 21 Mar 2016 20:52:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jaakov <j_k_v <at> ro.ru>
To: bug-auctex <at> gnu.org
Subject: emacs-auctex: fill-paragraph always sets the modified flag
Date: Mon, 21 Mar 2016 16:34:43 +0100
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

Some guy from suse claims that this bug is resolved upstream:
https://bugzilla.suse.com/show_bug.cgi?id=971814
Is it really the case?

If no, please repair.

Thanks in advance,

Jaakov.




Information forwarded to bug-auctex <at> gnu.org:
bug#23081; Package auctex. (Mon, 21 Mar 2016 21:33:01 GMT) Full text and rfc822 format available.

Message #8 received at 23081 <at> debbugs.gnu.org (full text, mbox):

From: David Kastrup <dak <at> gnu.org>
To: Jaakov <j_k_v <at> ro.ru>
Cc: 23081 <at> debbugs.gnu.org
Subject: Re: bug#23081: emacs-auctex: fill-paragraph always sets the modified
 flag
Date: Mon, 21 Mar 2016 22:32:35 +0100
Jaakov <j_k_v <at> ro.ru> 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




Information forwarded to bug-auctex <at> gnu.org:
bug#23081; Package auctex. (Mon, 21 Mar 2016 21:40:01 GMT) Full text and rfc822 format available.

Message #11 received at 23081 <at> debbugs.gnu.org (full text, mbox):

From: Jaakov <j_k_v <at> ro.ru>
To: David Kastrup <dak <at> gnu.org>
Cc: 23081 <at> debbugs.gnu.org
Subject: Re: bug#23081: emacs-auctex: fill-paragraph always sets the modified
 flag
Date: Mon, 21 Mar 2016 22:39:17 +0100
On 21.03.2016 22:32, David Kastrup wrote:
> Jaakov <j_k_v <at> ro.ru> 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.
>
You are right! Thank you! I was misled by the openSuSe guy.




bug closed, send any further explanations to 23081 <at> debbugs.gnu.org and Jaakov <j_k_v <at> ro.ru> Request was from Jaakov <j_k_v <at> ro.ru> to control <at> debbugs.gnu.org. (Mon, 21 Mar 2016 21:41:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-auctex <at> gnu.org:
bug#23081; Package auctex. (Mon, 21 Mar 2016 21:41:02 GMT) Full text and rfc822 format available.

Message #16 received at 23081-done <at> debbugs.gnu.org (full text, mbox):

From: Jaakov <j_k_v <at> ro.ru>
Cc: control <at> debbugs.gnu.org, 23081-done <at> debbugs.gnu.org
Subject: Re: bug#23081: emacs-auctex: fill-paragraph always sets the modified
 flag
Date: Mon, 21 Mar 2016 22:40:00 +0100
# Not related to auctex.
close 23081
thanks




Information forwarded to bug-auctex <at> gnu.org:
bug#23081; Package auctex. (Tue, 22 Mar 2016 12:42:01 GMT) Full text and rfc822 format available.

Message #19 received at 23081 <at> debbugs.gnu.org (full text, mbox):

From: Jaakov <j_k_v <at> ro.ru>
To: David Kastrup <dak <at> gnu.org>, 23081 <at> debbugs.gnu.org
Subject: Re: bug#23081: emacs-auctex: fill-paragraph always sets the modified
 flag
Date: Tue, 22 Mar 2016 13:41:08 +0100
By the way, is auctex reimplementing fill-paragraph in some way? If so, 
auctex could do better in latex-mode than emacs itself on text mode...

On 21.03.2016 22:32, David Kastrup wrote:
> Jaakov <j_k_v <at> ro.ru> 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.
>





Information forwarded to bug-auctex <at> gnu.org:
bug#23081; Package auctex. (Tue, 22 Mar 2016 13:26:01 GMT) Full text and rfc822 format available.

Message #22 received at 23081 <at> debbugs.gnu.org (full text, mbox):

From: David Kastrup <dak <at> gnu.org>
To: Jaakov <j_k_v <at> ro.ru>
Cc: 23081 <at> debbugs.gnu.org
Subject: Re: bug#23081: emacs-auctex: fill-paragraph always sets the modified
 flag
Date: Tue, 22 Mar 2016 14:25:16 +0100
Jaakov <j_k_v <at> ro.ru> writes:

> By the way, is auctex reimplementing fill-paragraph in some way? If
> so, auctex could do better in latex-mode than emacs itself on text
> mode...

AUCTeX contains the following pertinent comment:

;; Following lines are copied from `fill.el' (CVS Emacs, March 2005).
;;   The `fill-space' property carries the string with which a newline should be
;;   replaced when unbreaking a line (in fill-delete-newlines).  It is added to
;;   newline characters by fill-newline when the default behavior of
;;   fill-delete-newlines is not what we want.

I seem to remember that Emacs does a better job currently than AUCTeX
with regard to keeping text properties alive.  Some synching may be in
order but it would appear that it would be saner to change this for
filling in Emacs itself before starting to copy code into AUCTeX (or
calling the Emacs code if it's versatile enough) if that's your goal.

-- 
David Kastrup




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 20 Apr 2016 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 121 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.