From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#13949: 24.4.1; `fill-paragraph' should not always put the buffer as modified Date: Sun, 27 Mar 2016 18:28:43 +0200 Message-ID: References: <56F12360.5030301@ro.ru> <83y49a4hga.fsf@gnu.org> <56F1837D.4060300@ro.ru> <83io0e4b5r.fsf@gnu.org> <56F19203.5040501@ro.ru> <87a8lkd2bc.fsf@wanadoo.es> <83lh54ynol.fsf@gnu.org> <83a8ljzz3h.fsf@gnu.org> <8360w7zyh3.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1459096162 10108 80.91.229.3 (27 Mar 2016 16:29:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Mar 2016 16:29:22 +0000 (UTC) Cc: ofv@wanadoo.es, jwiegley@gmail.com, 13949@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 27 18:29:11 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 1akDYs-0006te-J1 for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Mar 2016 18:29:10 +0200 Original-Received: from localhost ([::1]:36645 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akDYr-0004Mx-VQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Mar 2016 12:29:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akDYp-0004Mr-1N for bug-gnu-emacs@gnu.org; Sun, 27 Mar 2016 12:29:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akDYk-0003ny-2X for bug-gnu-emacs@gnu.org; Sun, 27 Mar 2016 12:29:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akDYj-0003nt-VP for bug-gnu-emacs@gnu.org; Sun, 27 Mar 2016 12:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1akDYj-0005ag-MY for bug-gnu-emacs@gnu.org; Sun, 27 Mar 2016 12:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Mar 2016 16:29:01 +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.145909612821470 (code B ref 13949); Sun, 27 Mar 2016 16:29:01 +0000 Original-Received: (at 13949) by debbugs.gnu.org; 27 Mar 2016 16:28:48 +0000 Original-Received: from localhost ([127.0.0.1]:40323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akDYW-0005aD-3u for submit@debbugs.gnu.org; Sun, 27 Mar 2016 12:28:48 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:33382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akDYV-0005a6-8w for 13949@debbugs.gnu.org; Sun, 27 Mar 2016 12:28:47 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.84_2) (envelope-from ) id 1akDYS-00037m-CK; Sun, 27 Mar 2016 18:28:46 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX++/xdBxiLIC4HAQQS AggyBA92Ch3qvsO0vvdGAAACW0lEQVQ4jX2TQW/jIBCFueU8bqBno+34XEF+QBbonkkhPYPW9Br5 EP/9fTiRWu2260OQ5pv35nlMxKP45nkUl6/KO/G4+xJAsX5n9Y1A/Gf4v4Nhcvka7C5/gd26rlov U9d8BgtXfXumD8VumdblXm6l6TvYoXaBTYOk6dLUDey21nU8LY01Vy5EDStZ77aa84R2zVyiUmJg UgN3UDnX3tTaHKEgIqnQV5faMk0wokixNSEpy9i4VW6N5HAd+gRqJEhRpljUxKByWAg8UqWuyFnN qqdpMq48tkLcrfYhS4xZStWYOo1MhUpjQVIGSbHqgrHzcUJYpO2pcsoYUq+lNVjhbUqhQQEkD69z 5X3TTMirqBQsS0jrPYDmvUJQ2WdENfThPoSQouZ0hEd6H2uh/lIAsMrDwv4FM/ZVQ9jXImTwOcf3 hcNRs5TIjAUVdVP48wSFPTGkfbl1xIeSBrHUuozJPBe4Tlemisxd4W0+aZ38y5Oxebg2Yu7AeQT+ uaBBsTX+Teu51T7cGOutfjDmUDlZH35pajzUDox9dvg9cPttnT/SOMxqUxjjzQYGaZyxYYiycgfB vHZga5XWGRdOsY3UgfcbMOf6AIU7BC5PEakg3uqY/tSFwZdckpDJHu7ADD/6vJBUIFyGZEK61e3B bYc/v8wBwOU7eL4dPsTz7IXMPt7Brd26FGQCkFkl/6mO3YW9M/2Kluw+gANIyXZQx/xqLGo34Kzt jSIWLnPvA3CbU6cdqKLm7FMOIRuLuoOyg0z4+rh0KgQyWK69JxH4j+iCaDknv0XCATvzB0Ti2BJm 2Fl0AAAAAElFTkSuQmCC In-Reply-To: <8360w7zyh3.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 27 Mar 2016 19:18:00 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) 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:115588 Archived-At: Eli Zaretskii writes: > One could hack something together along the lines of > compare_string_intervals and intervals_equal, I think. That is, > traverse the tree as they do, and compute the hash while at that. *peruses code* I see. Looking at this, and looking at the sha1 reference for all of two minutes, it looks like we could create a new C-level function called something like hash_buffer that would look basically like sha1_init_ctx sha1_process_bytes(first_part_of_buffer, len) sha1_process_bytes(last_part_of_buffer, len) for iterate_over_all_intervals sha1_process_bytes(interval, len) sha1_finish_ctx and there you have it. A hashing function that would not allocate anything much, and it should be fast enough even in huge buffers for `M-q'. I think. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no