From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: end-of-defun is fubsr. Date: Tue, 03 Feb 2009 11:34:23 -0500 Message-ID: <87prhziink.fsf@cyd.mit.edu> References: <20090202202703.GB11077@muc.de> <20090203105035.GB1396@muc.de> <20090203122906.GC1396@muc.de> <20090203130028.GD1396@muc.de> <20090203160941.GE1396@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233678856 18839 80.91.229.12 (3 Feb 2009 16:34:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2009 16:34:16 +0000 (UTC) Cc: Alan Mackenzie , Miles Bader , Stefan Monnier , emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 03 17:35:29 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 1LUOF2-0007JX-VA for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2009 17:35:17 +0100 Original-Received: from localhost ([127.0.0.1]:52575 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUODk-00055d-5d for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2009 11:33:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUODg-00055Y-JR for emacs-devel@gnu.org; Tue, 03 Feb 2009 11:33:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUODe-00055M-6E for emacs-devel@gnu.org; Tue, 03 Feb 2009 11:33:51 -0500 Original-Received: from [199.232.76.173] (port=36929 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUODe-00055J-0a for emacs-devel@gnu.org; Tue, 03 Feb 2009 11:33:50 -0500 Original-Received: from cyd.mit.edu ([18.115.2.24]:37059) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUODc-00067J-05; Tue, 03 Feb 2009 11:33:48 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 01D6357E20C; Tue, 3 Feb 2009 11:34:23 -0500 (EST) In-Reply-To: (Juanma Barranquero's message of "Tue, 3 Feb 2009 16:56:05 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) 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:108688 Archived-At: 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.