From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#13949: 24.3.50; `fill-paragraph' should not always put the buffer as modified Date: Fri, 15 Mar 2013 00:02:00 -0400 Message-ID: References: <83li9qir3i.fsf@gnu.org> <83boalj2ai.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1363320172 20461 80.91.229.3 (15 Mar 2013 04:02:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Mar 2013 04:02:52 +0000 (UTC) Cc: 13949@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 15 05:03:17 2013 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 1UGLrQ-0006MU-Gy for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Mar 2013 05:03:16 +0100 Original-Received: from localhost ([::1]:60654 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGLr3-0005pZ-Oo for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Mar 2013 00:02:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGLqz-0005pK-ES for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2013 00:02:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGLqy-0001eI-DY for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2013 00:02:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGLqy-0001eC-Ar for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2013 00:02:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UGLsA-0007Z9-Hk for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2013 00:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Mar 2013 04:04: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.136332020529035 (code B ref 13949); Fri, 15 Mar 2013 04:04:02 +0000 Original-Received: (at 13949) by debbugs.gnu.org; 15 Mar 2013 04:03:25 +0000 Original-Received: from localhost ([127.0.0.1]:55215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGLrX-0007YF-K7 for submit@debbugs.gnu.org; Fri, 15 Mar 2013 00:03:24 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:2748) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGLrV-0007Y1-Gh for 13949@debbugs.gnu.org; Fri, 15 Mar 2013 00:03:21 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFHO+KL9/2dsb2JhbABEuzWDWRdzgh4BAQQBViMQCzQSFBgNJIgeBsEtkQoDpHqBXoMT X-IPAS-Result: Av8EABK/CFHO+KL9/2dsb2JhbABEuzWDWRdzgh4BAQQBViMQCzQSFBgNJIgeBsEtkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="4961530" Original-Received: from 206-248-162-253.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([206.248.162.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 15 Mar 2013 00:01:58 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 54D03AE0BC; Fri, 15 Mar 2013 00:02:00 -0400 (EDT) In-Reply-To: <83boalj2ai.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 14 Mar 2013 19:53:41 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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:72515 Archived-At: >> AFAIK there are two ways to go about it: >> - compare the sha1 of the paragraph before and after filling and reset >> buffer-modified-p if it shows the text hasn't changed. > This has the disadvantage of scanning the entire buffer, which might > increase paging and memory pressure in general. I think you can compute the sha1 of only the paragraph, so that should be cheap enough that it's not a big issue. >> - change fill.el so that filling paragraph doesn't just "unfill whole >> paragraph + fill whole paragraph" but instead goes line by line, and >> only modifies the text where there's a need to. > But it sounds like Dani wants this behavior not only for > fill-paragraph, but for any command that can potentially modify the > buffer, but actually doesn't. While I think he'd be happy if we could do that, I didn't take his request to be so extreme. So even if we can't handle all cases, it makes sense to try and improve this one case. Stefan