From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: beginning-of-defun-comments bug [was: Re: 26.0.90: mark-defun problem in c-mode] Date: Sat, 6 Jan 2018 12:00:02 +0000 Message-ID: <20180106120002.GA23284@ACM> References: <834lo8fqyi.fsf@gnu.org> <20171230103432.GB10623@ACM> <20171230120136.GD10623@ACM> <83shbse5rs.fsf@gnu.org> <20171230130529.GE10623@ACM> <87incjh7ef.fsf@mbork.pl> <20180103162403.GB5435@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1515240161 10754 195.159.176.226 (6 Jan 2018 12:02:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Jan 2018 12:02:41 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: Eli Zaretskii , "npostavs@gmail.com" , "emacs-devel@gnu.org" To: zhang cc Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 06 13:02:37 2018 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 1eXnBM-0002NX-KM for ged-emacs-devel@m.gmane.org; Sat, 06 Jan 2018 13:02:36 +0100 Original-Received: from localhost ([::1]:33042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXnDK-0003Ux-60 for ged-emacs-devel@m.gmane.org; Sat, 06 Jan 2018 07:04:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXnDD-0003UA-BT for emacs-devel@gnu.org; Sat, 06 Jan 2018 07:04:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eXnD9-0004GT-Ak for emacs-devel@gnu.org; Sat, 06 Jan 2018 07:04:31 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:50619 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1eXnD9-0004FE-4q for emacs-devel@gnu.org; Sat, 06 Jan 2018 07:04:27 -0500 Original-Received: (qmail 84500 invoked by uid 3782); 6 Jan 2018 12:04:26 -0000 Original-Received: from acm.muc.de (p548C6CC7.dip0.t-ipconnect.de [84.140.108.199]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 06 Jan 2018 13:04:24 +0100 Original-Received: (qmail 7443 invoked by uid 1000); 6 Jan 2018 12:00:02 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.1 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:221640 Archived-At: Hello, Zhang, Eli, and Marcin. On Fri, Jan 05, 2018 at 14:55:54 +0000, zhang cc wrote: > On 4 Jan 2018, 12:28 AM +0800, Alan Mackenzie , wrote: > I applied the patch, and I can’t reproduce the problem now. But there > is something I don’t known if it is intended. Thanks for doing this test. > With the following c code, run mark-defun with cursor in the body of > the second function, and the comment above of the function is also > marked. There was a long discussion about this and related matters on emacs-devel about a year ago, I think. I'm assuming that this marking of the preceding comment is in accordance with that thread on emacs-devel. > int test_func1(int a) > { > int i; > return 0; > } > /* > * aa > */ > int test_func2(int a) > { > int i; > return 0; > } I've committed the change to the emacs-26 branch. -- Alan Mackenzie (Nuremberg, Germany).