From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jaakov Newsgroups: gmane.emacs.bugs Subject: bug#13949: 24.4.1; `fill-paragraph' should not always put the buffer as modified Date: Tue, 22 Mar 2016 11:50:08 +0100 Message-ID: <56F12360.5030301@ro.ru> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1458643970 12602 80.91.229.3 (22 Mar 2016 10:52:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Mar 2016 10:52:50 +0000 (UTC) To: control@debbugs.gnu.org, 13949@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 22 11:52:39 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aiJvR-0003KC-B0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Mar 2016 11:52:37 +0100 Original-Received: from localhost ([::1]:35217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiJvQ-0005G8-MW for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Mar 2016 06:52:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiJv7-0005D2-AE for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2016 06:52:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiJtu-0005hc-Pb for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2016 06:52:17 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiJtu-0005hJ-Dd for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2016 06:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aiJtu-0003bu-62 for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2016 06:51:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Jaakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Mar 2016 10:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13949 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13949-submit@debbugs.gnu.org id=B13949.145864381613819 (code B ref 13949); Tue, 22 Mar 2016 10:51:02 +0000 Original-Received: (at 13949) by debbugs.gnu.org; 22 Mar 2016 10:50:16 +0000 Original-Received: from localhost ([127.0.0.1]:57742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aiJt9-0003ao-Ng for submit@debbugs.gnu.org; Tue, 22 Mar 2016 06:50:15 -0400 Original-Received: from huan3.mail.rambler.ru ([81.19.66.33]:36198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aiJt7-0003ac-OJ; Tue, 22 Mar 2016 06:50:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ro.ru; s=mail; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Message-ID:Subject:From:To; bh=5f2l8uUH7bGI4CT2d9S6lPNujjyiodBAlXkLPIES/64=; b=Ns3saket0pZ+LkMjuxI+mazB+7cRfw5n7t2JbGd95LAHgvjG8vSKAoUyjHOud36MKAZp69AwptQn+Qcghw0sy9S+MNwLvTMOzHV4QbiS7iVxdZwoGGZFQGCyZg1ujd7PIp2LzDk6CKl8vXMQ7MwxWn+3K5fRkjL91WJ3yhWKjq4=; Original-Received: from [UNAVAILABLE] ([91.52.57.226]:52312 helo=[192.168.3.203]) by huan3.mail.rambler.ru with esmtpa (Exim 4.76) (envelope-from ) id 1aiJt3-0000Dz-OY; Tue, 22 Mar 2016 13:50:11 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.7.0 X-Rambler-User: j_k_v@ro.ru/91.52.57.226 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115303 Archived-At: found 13949 24.4.1 severity 13949 normal thanks Dani said: > fill-paragraph first removes all the newlines from the paragraph, and > then inserts only as many as needed to get a filled paragraph. So the > buffer gets changed at least twice in the process. This is _how_ it is done, not _what_ is done. Then "what" is described in the documentation https://www.gnu.org/software/emacs/manual/html_node/elisp/Buffer-Modification.html : "Emacs keeps a flag called the modified flag for each buffer, to record whether you have changed the text of the buffer. This flag is set to t whenever you alter the contents of the buffer, and cleared to nil when you save it." The description of fill-paragraph at http://www.gnu.org/software/emacs/manual/html_node/emacs/Fill-Commands.html mentions no exception to the above and "Emacs always behaved like that" is just saying that the issue is old. Since fill-paragraph does not heed the above piece of "modified"-flag--documentation, it represents a non-compliance with the (informal) specification, i.e., a typical bug. Therefore, I changed the severity from wishlist to normal. There are two ways to deal with it: to repair fill-paragraph or to repair the documentation. (A non-related personal aside: since recently, I had to rely both on the star in the left lower corner /which means modified/ and paragraph filling quite a lot. So the issue really, really bothers me. Of course, nobody is forced to repair it if it is just extremely hard to do. We are all busy. But I would be extremely happy to see the fill-paragraph repaired, at least for text-mode and latex-mode with/without installed auctex, if it makes any difference. Btw., I tend to think that hash computing like sha1 could potentially lead to rare, hard-to-reproduce hash clashes, where the text has changed, but the sha1 says that the text is the same. If so, implementing hash-checking would be worse that the current situation.)