From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Is this fallout from the end-of-defun changes? Date: Thu, 19 Feb 2009 19:57:20 +0000 Message-ID: <20090219195720.GB5356@muc.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1235072202 31221 80.91.229.12 (19 Feb 2009 19:36:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Feb 2009 19:36:42 +0000 (UTC) Cc: Emacs developers To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 19 20:37:58 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 1LaEi7-0005lh-Jp for ged-emacs-devel@m.gmane.org; Thu, 19 Feb 2009 20:37:27 +0100 Original-Received: from localhost ([127.0.0.1]:39245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaEgn-0005nR-Bd for ged-emacs-devel@m.gmane.org; Thu, 19 Feb 2009 14:36:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LaEgj-0005nF-05 for emacs-devel@gnu.org; Thu, 19 Feb 2009 14:36:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LaEgi-0005n3-EP for emacs-devel@gnu.org; Thu, 19 Feb 2009 14:36:00 -0500 Original-Received: from [199.232.76.173] (port=32852 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaEgi-0005n0-82 for emacs-devel@gnu.org; Thu, 19 Feb 2009 14:36:00 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:1077 helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LaEgh-0005Ro-Jh for emacs-devel@gnu.org; Thu, 19 Feb 2009 14:36:00 -0500 Original-Received: (qmail 13966 invoked by uid 3782); 19 Feb 2009 19:35:54 -0000 Original-Received: from acm.muc.de (pD9E50DB9.dip.t-dialin.net [217.229.13.185]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Thu, 19 Feb 2009 20:35:52 +0100 Original-Received: (qmail 12531 invoked by uid 1000); 19 Feb 2009 19:57:20 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.6-4.9 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:109228 Archived-At: Hi, Juanma, On Thu, Feb 19, 2009 at 11:01:04AM +0100, Juanma Barranquero wrote: > ;;; bug.el ;;; > (defun function1 () > nil) > > (defun function2 () > nil) > ;;; end ;;; > Doing > emacs -Q bug.el --eval "(progn (forward-list) (eval-defun nil))" > With 22.3 => function1 > With the pretest => function1 > With the current trunk => function2 > I'll file a bug report as soon as Stefan confirms that it is one (it > should, it's quite weird to be on a line of function1 and get > function2 evalled). It appears to be a bug fix - eval-defun now does what the doc string says (evaluate the function surrounding point, or the one after point). For point outside a defun, the behaviour in Emacs 22 was somewhat heuristic - compile the previous defun if point is on the same line as that defun's closing paren, else compile the following defun, if any, else the previous defun. I think this is reasonable behaviour ;-) > Juanma -- Alan Mackenzie (Nuernberg).