From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: beginning-of-defun-comments bug [was: Re: 26.0.90: mark-defun problem in c-mode] Date: Sat, 30 Dec 2017 14:53:27 +0200 Message-ID: <83shbse5rs.fsf@gnu.org> References: <834lo8fqyi.fsf@gnu.org> <20171230103432.GB10623@ACM> <20171230120136.GD10623@ACM> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1514638358 18465 195.159.176.226 (30 Dec 2017 12:52:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 30 Dec 2017 12:52:38 +0000 (UTC) Cc: ccsmile2008@outlook.com, npostavs@gmail.com, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 30 13:52:33 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eVGch-0003zw-GS for ged-emacs-devel@m.gmane.org; Sat, 30 Dec 2017 13:52:23 +0100 Original-Received: from localhost ([::1]:53354 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eVGeg-0007ze-Hq for ged-emacs-devel@m.gmane.org; Sat, 30 Dec 2017 07:54:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eVGe3-0007zN-Ju for emacs-devel@gnu.org; Sat, 30 Dec 2017 07:53:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eVGe2-0004bF-OL for emacs-devel@gnu.org; Sat, 30 Dec 2017 07:53:47 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eVGdw-0004Ts-QC; Sat, 30 Dec 2017 07:53:40 -0500 Original-Received: from [176.228.60.248] (port=1062 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eVGdw-0000mj-7i; Sat, 30 Dec 2017 07:53:40 -0500 In-reply-to: <20171230120136.GD10623@ACM> (message from Alan Mackenzie on Sat, 30 Dec 2017 12:01:36 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:221470 Archived-At: > Date: Sat, 30 Dec 2017 12:01:36 +0000 > Cc: emacs-devel@gnu.org, zhang cc , > Noam Postavsky > From: Alan Mackenzie > > > I see the error, with point anywhere in the body of the second function. > > Critical seems to be there being no blank line between the functions. > > > I think there's a bug in beginning-of-defun-comments, which I'm in the > > middle of edebugging. It moves point into the first function. > > beginning-of-defun-comments has a bug. On doing M-x > beginning-of-defun-comments from the inside of a function, when there's > no blank lines between it and the previous function, point ends up > inside that previous function, not at the comments which may separate > them. > > Perhaps this bug should be fixed before the next Emacs-26 pretest. How old is this problem? It looks like it's new in Emacs 26? If so, we should try fixing it on the release branch.