From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: bug#21072: Brave new mark-defun (and a testing tool) Date: Wed, 15 Feb 2017 02:56:22 -0500 Message-ID: References: <87o9ydrzkr.fsf@mbork.pl> <87mvdriuss.fsf@mbork.pl> <87bmu6icea.fsf@mbork.pl> <87wpctgieu.fsf@mbork.pl> <52e67f43-edcf-09e3-5fd6-6079763fd234@yandex.ru> <87tw7wh9sf.fsf@mbork.pl> <87k28sdka6.fsf@jane> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487145423 1030 195.159.176.226 (15 Feb 2017 07:57:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 15 Feb 2017 07:57:03 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 21072@debbugs.gnu.org, emacs-devel@gnu.org To: Marcin Borkowski Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 15 08:56:59 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 1cduSP-0008DW-9p for ged-emacs-devel@m.gmane.org; Wed, 15 Feb 2017 08:56:57 +0100 Original-Received: from localhost ([::1]:38936 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cduSV-0004Js-42 for ged-emacs-devel@m.gmane.org; Wed, 15 Feb 2017 02:57:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cduRw-0004Ig-D1 for emacs-devel@gnu.org; Wed, 15 Feb 2017 02:56:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cduRt-0001dC-B6 for emacs-devel@gnu.org; Wed, 15 Feb 2017 02:56:28 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:31855) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cduRt-0001c3-3Z for emacs-devel@gnu.org; Wed, 15 Feb 2017 02:56:25 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AxCwBOCKRY//7rSC1eGwEBAQMBAQEJAQEBg1JBhDSFVoVykR4pAZcYhhwEAgKCBEQUAQIBAQEBAQEBYiiEcQEEAVYjEAsOJhIUGA0kiXYIsgyLZgEBAQcCASWLPIo5BZBCizOTd4hNhlaTFjYhgQAgFAgqhx4iijwBAQE X-IPAS-Result: A0AxCwBOCKRY//7rSC1eGwEBAQMBAQEJAQEBg1JBhDSFVoVykR4pAZcYhhwEAgKCBEQUAQIBAQEBAQEBYiiEcQEEAVYjEAsOJhIUGA0kiXYIsgyLZgEBAQcCASWLPIo5BZBCizOTd4hNhlaTFjYhgQAgFAgqhx4iijwBAQE X-IronPort-AV: E=Sophos;i="5.35,165,1484024400"; d="scan'208";a="292926402" Original-Received: from 45-72-235-254.cpe.teksavvy.com (HELO pastel.home) ([45.72.235.254]) by smtp.teksavvy.com with ESMTP; 15 Feb 2017 02:56:22 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id BE4506591A; Wed, 15 Feb 2017 02:56:22 -0500 (EST) In-Reply-To: <87k28sdka6.fsf@jane> (Marcin Borkowski's message of "Wed, 15 Feb 2017 07:45:37 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:212396 Archived-At: >>> Why? It seems to me that it may be of general use. >> If you want it to be general, it'll have to be better defined. >> What is a "comment line"? > A line containing only a comment (possibly after whitespace). Is a line (using C syntax) like: /* blablabla considered as a "comment line"? What about the likely next line: blablabla */ ? How about blablabla on a line between the previous two (i.e. within a comment)? Regardless of the answer you give above, I'm wondering in which kind of circumstance we'd want to test if we're on "a line containing only a comment". Stefan