From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.devel Subject: Re: beginning-of-defun (again) Date: Sat, 31 Oct 2015 16:55:11 +0100 Message-ID: <5634E45F.8000703@online.de> References: <56320200.4050503@online.de> <56331269.1040804@online.de> <56347561.2010900@online.de> <87pozv2pl8.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1446306913 31413 80.91.229.3 (31 Oct 2015 15:55:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Oct 2015 15:55:13 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 31 16:55:04 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZsYUi-0004qa-Ag for ged-emacs-devel@m.gmane.org; Sat, 31 Oct 2015 16:55:04 +0100 Original-Received: from localhost ([::1]:56131 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsYUh-0000KF-KL for ged-emacs-devel@m.gmane.org; Sat, 31 Oct 2015 11:55:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsYUU-0000K7-J4 for emacs-devel@gnu.org; Sat, 31 Oct 2015 11:54:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZsYUT-0004r8-Ic for emacs-devel@gnu.org; Sat, 31 Oct 2015 11:54:50 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.187]:49974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsYUP-0004qT-Ns; Sat, 31 Oct 2015 11:54:45 -0400 Original-Received: from [192.168.178.31] ([77.3.59.187]) by mrelayeu.kundenserver.de (mreue004) with ESMTPSA (Nemesis) id 0MW7C9-1ZzLyv3L57-00XK7H; Sat, 31 Oct 2015 16:54:44 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 In-Reply-To: <87pozv2pl8.fsf@fencepost.gnu.org> X-Provags-ID: V03:K0:3kIkJaYwiCcgCwqvO7d3g1lJurPcsoSTwQjp/XVthg0fXbDU8wo H6uMwdGaE2tKHNeuMb9ZnnM/hGDDkqaAa/PKJbpRivNRgFmNGNJR4LahLTuvXKuvmHytdnv 2p/P43DzR7D/bZ3IrlVH0nnFFZBGRnIFlL+3IcFSpUIRsPxSeDk4r2F68YfPtA/0h1MfUSc EYdPPZNjFsdnGbkm65EWw== X-UI-Out-Filterresults: notjunk:1;V01:K0:VRKj7N2M1ko=:H5Bd0r82idepf8xlGn0fJU 5OELq26ew1/Tf/iOHVfntwHWvcctcvUP09RKe8IbF88TrXfku7hBTt663TdTBncrfnkVIL+Kg Wc1yfigPaM1d/Zhfl4ySmq+6iEXSvz9eXT+U2tFODOnqeLf9FSBHhxTGfNxWS7BYLeF/EUN0I Z853DGP0m0zS4DErv/36J41kG9aCUWtCH6NDxFNoVu6EifBYBC8jTKRMSjmG5L0+Iljb9yJIK NNJpcV/A6UtoFkQonqW0IDlJxy5uAcxy30DgRdATyRM78bdQ6ZyY5WLS3HkHS8ArE1fIoOjoE f0oAhMZyWnupkffrAX/touIRkWA8113boA3QlT9odG2w1sC9TGkogUa9zZLd5zgamEW5EUXSc ZsZi68B+AjqNm5qTw23acDiYGh8EewgdS8DUhMVEeY6feZjdPskMNfM0mSQNNoH8/ytbMreow v5hhilchVdnL0OyQQeDKPSr4Vm8f+DQbUHsqiuN9xOC+0z7e1tTpugnzE5QFp3TUFVxyBZWIT YvtG8QEKWsC6Af+aG6re6VWVtmBgXllZUK8M6tQHHulgkctdaa5e5J4y7Wv1+DfDxLSonhq1K Pd35/jr3Y2hL7V9OEhHPNIj9ZnNqzPNu+G1l27CPg6HriykN/OWub63L5KuupHYIQrTE0X3wE 3p/YMuUM6Eyv9ebd3OnjS6WtG32bJg3iqrdYcqz58o+yQROjvDqI3DZWt2CYpnaVHGSOfYFWb NP4IINiR0eq+EAW+ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.187 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:193018 Archived-At: On 31.10.2015 13:24, David Kastrup wrote: > Andreas Röhler writes: > >> On 31.10.2015 00:14, Richard Stallman wrote: >>> [[[ To any NSA and FBI agents reading my email: please consider ]]] >>> [[[ whether defending the US Constitution against all enemies, ]]] >>> [[[ foreign or domestic, requires you to follow Snowden's example. ]]] >>> >>> > With emacs -Q, C-M-a from behind example below, stops at "(bar)", >>> > missing the beginning of function. >>> >>> > (defun foo () >>> > (insert " >>> > (bar)")) >>> >>> Our convention is that you should write it this way: >>> >>> (defun foo () >>> (insert " >>> \(bar)")) >>> >> A convention which probably predates Aristoteles :) >> Working-by-convention is rather a social thing... >> >> That design was a real nuisance when generating and writing functions >> on the fly. >> Sure, it's possible to live with it. But why not remove that >> constraint, if possible? > Because reparsing every file from its beginning in order to indent the > current line is too expensive for large files? > Delivered some benchmark showing a reliable solution must not be slower. > The meaning of every Lisp file can be changed by putting > > (setq everything " > > at its beginning. There really is no correct way to determine current > state apart from parsing from the start. So we have a convention for an > "incorrect way" of avoiding parsing from the start. > With the side-effect of creating a certain number of bugs - which are already inside, but not reported, because "configure..." would be the answer. The current buggy behavior detects beginning-of-defun inside a string - which is not to cure by conventions.