From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Roehler Newsgroups: gmane.emacs.devel Subject: Re: end-of-defun is fubsr. Date: Tue, 03 Feb 2009 18:18:14 +0100 Message-ID: <49887C56.405@online.de> References: <20090202202703.GB11077@muc.de> <20090203105035.GB1396@muc.de> <20090203122906.GC1396@muc.de> <20090203130028.GD1396@muc.de> <20090203160941.GE1396@muc.de> <87prhziink.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1233681544 29090 80.91.229.12 (3 Feb 2009 17:19:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2009 17:19:04 +0000 (UTC) Cc: acm@muc.de, emacs-devel@gnu.org, Juanma Barranquero To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 03 18:20:17 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LUOwY-0000iU-Bw for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2009 18:20:14 +0100 Original-Received: from localhost ([127.0.0.1]:34071 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUOvF-0002j7-Bd for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2009 12:18:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUOt8-0001Vd-DL for emacs-devel@gnu.org; Tue, 03 Feb 2009 12:16:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUOt4-0001Tt-TD for emacs-devel@gnu.org; Tue, 03 Feb 2009 12:16:42 -0500 Original-Received: from [199.232.76.173] (port=58195 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUOt4-0001To-O2 for emacs-devel@gnu.org; Tue, 03 Feb 2009 12:16:38 -0500 Original-Received: from moutng.kundenserver.de ([212.227.17.10]:65135) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUOt4-0002vu-3f for emacs-devel@gnu.org; Tue, 03 Feb 2009 12:16:38 -0500 Original-Received: from [192.168.178.27] (p54BE9DCF.dip0.t-ipconnect.de [84.190.157.207]) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis) id 0MKxQS-1LUOt12zmj-0006Fz; Tue, 03 Feb 2009 18:16:36 +0100 User-Agent: Thunderbird 2.0.0.6 (X11/20070801) In-Reply-To: <87prhziink.fsf@cyd.mit.edu> X-Provags-ID: V01U2FsdGVkX197o/rI6Tce02+qAgZkbohnD1ZOYpzTwkh0cAU 02Cgq7jC6indpCSpFb7KKjL+8OU120fdHUGaA14rWvL5qQOYtf um8jRHT1qf2aHkvlb7hxYs+T2VMrdXcIResL2ABETI= X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108695 Archived-At: Chong Yidong wrote: > Juanma Barranquero writes: > >> On Tue, Feb 3, 2009 at 17:09, Alan Mackenzie wrote: >> >>> end-of-defun (in .../lisp/emacs-lisp/lisp.el) is buggy, at least when an >>> end-of-defun-function has been defined: >> Is this related to bug#2106? (The title talks about Python, but >> according to Chong it was a bug in end-of-defun.) > > A while back, Stefan changed end-of-defun, making it do some additional > movement beyond what end-of-defun-function does. > > 2007-11-26 Stefan Monnier > > * emacs-lisp/lisp.el (end-of-defun): Restructure so that > end-of-defun-function is called consistently, even for > negative arguments. > > This led to an infloop in python under the circumstances of bug#2106, > and I made some additional changes to try to prevent such infloops from > occurring. But possibly the original, simpler version of end-of-defun > is better, I don't know. > > > I have remarked buggy/risky implementation already here http://www.archivum.info/emacs-devel@gnu.org/2007-11/msg01940.html Andreas Röhler