From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#13949: 24.4.1; `fill-paragraph' should not always put the buffer as modified Date: Mon, 28 Mar 2016 10:01:54 +0200 Message-ID: <56F8E4F2.1060400@easy-emacs.de> 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> <56F78F77.8000008@easy-emacs.de> <87y494arfr.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1459152083 10007 80.91.229.3 (28 Mar 2016 08:01:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Mar 2016 08:01:23 +0000 (UTC) Cc: 13949@debbugs.gnu.org To: =?UTF-8?Q?=C3=93scar?= Fuentes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 28 10:01:12 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 1akS6o-0000Ct-MC for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Mar 2016 10:01:10 +0200 Original-Received: from localhost ([::1]:39625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akS6n-0007Gm-KX for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Mar 2016 04:01:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akS6j-0007GU-WA for bug-gnu-emacs@gnu.org; Mon, 28 Mar 2016 04:01:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akS6g-0001aB-68 for bug-gnu-emacs@gnu.org; Mon, 28 Mar 2016 04:01:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43619) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akS6g-0001a6-30 for bug-gnu-emacs@gnu.org; Mon, 28 Mar 2016 04:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1akS6f-0004GI-RQ for bug-gnu-emacs@gnu.org; Mon, 28 Mar 2016 04:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Mar 2016 08:01: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.145915201416321 (code B ref 13949); Mon, 28 Mar 2016 08:01:01 +0000 Original-Received: (at 13949) by debbugs.gnu.org; 28 Mar 2016 08:00:14 +0000 Original-Received: from localhost ([127.0.0.1]:40746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akS5u-0004FB-IZ for submit@debbugs.gnu.org; Mon, 28 Mar 2016 04:00:14 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.13]:50991) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akS5t-0004Ex-2i for 13949@debbugs.gnu.org; Mon, 28 Mar 2016 04:00:13 -0400 Original-Received: from [192.168.178.35] ([95.119.46.51]) by mrelayeu.kundenserver.de (mreue101) with ESMTPSA (Nemesis) id 0MHGU7-1aY42L1pxb-00E489; Mon, 28 Mar 2016 10:00:02 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Icedove/38.5.0 In-Reply-To: <87y494arfr.fsf@wanadoo.es> X-Provags-ID: V03:K0:llLvGKkx6gNskxOxftJFAXEYILjuomzqK4uR4oOtBcDRz8yC4+1 /vwdxFh42ZNOe7hngJ2g8uhbrGohYAmtEZWcocPkcy+MJ6B/zpnqyx2bdK1qf8nutcAiH1j xTKDlvCDFoWnV7OrEc3fU0YQN+hDsvttkSmnXco8GKYA8lUqbdHuUZrM/XV7bMnHqUUwWA+ si3hRPnF1S18Xw0T8CESQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:6+wSUh1b4nM=:5v9w/aFOVPFoElYftfyfWd D3pa2iUoiuwwGCccGFiS8Y1p4BPz2eAvPH9tsQWS62Q8TfyTlD04s2bniUX1bgr4T25zAd073 m0Z3QK0njLm9Lq65L6jG6qydkv9hzMUoqwWMINO2Brtffz64R7m4yzFlcc6Zebf1CjNct6fms iauJ6Eu88a26KAn5VC2hVljCLevEJ8jeAMfQ73/9f/GnEE7r/nF5Iu7IXz+gL5aJO+jjzFKhU 00moUlTQjFqy7XU+iez99YXSJlKDppSDUI/hLt/Jcw3VFxndtjWru8+XzcE6OXb8y7/E+/XRB dT6vTtCIa2wAUw/THmDcbEQr308wLm5YwiZ5EAgpYzCC70n3t1gasWP5Uk4iY/HoGNqPk/HRj yWXDCS38+Lebql+pJ5C5pC+xK6bMsLCT70ouvCsCwmY3ru8gzfQuqrknyuisl7af0eVu4xz7q x4x+MTF5od/xng3uweBxsUcmVk/aZ19YVxa3ntag8UgvaY82lAGLrJDy3a/O4J6bVB56+bzYL utTRa/l8C+MDisNKhZe0DI5rlrllhiOMIMHzVdRwQmlPAdHoBmdur/fXbgNH9QAKgDdJCZHK0 Qg9ulBRcUtT5WDvrLeOeWKncOZ2R0s7qRLpB+7ZkcK17B+WIJD4hG3Nkiw7tLsbcm4oMcfKpI xTVXxUTk/lSDdRgn3QUlGvtPCBch2MO59CvPrFTdkhip+siNvCXGYKMxAWnmVZF1hD9mqrjwf 2b9OrAmqwLEs3c2E 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:115624 Archived-At: On 27.03.2016 17:09, Óscar Fuentes wrote: > Andreas Röhler writes: > >> Another solution would hash only the paragraph in question, re-format >> it in a temp buffer and replace original content only if changed. > If we know the paragraph's begin and end points, we can hash just that > range and then there is no need of a temporary buffer. I think that this > condition is met on all cases. Ideally fill-paragraph would know about the borders of action. > Anyway, I've made some experiments and hashing a 160 MB file on a 8 year > old 2.4 GHz 64 bit workstation takes 2.4 seconds. If there is a faster solution, why not use them? Sure such a function isn't called somewhere repeatedly, travelling paragraph by paragraph?