From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: 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 1487145435 4109 195.159.176.226 (15 Feb 2017 07:57:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 15 Feb 2017 07:57:15 +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: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 15 08:57:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1cduSc-0000iH-16 for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Feb 2017 08:57:10 +0100 Original-Received: from localhost ([::1]:38938 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cduSh-0005RP-S9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Feb 2017 02:57:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cduSV-0005MK-4D for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2017 02:57:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cduSU-0001uI-5T for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2017 02:57:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42250) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cduSU-0001ts-2O for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2017 02:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cduST-00024G-Oh for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2017 02:57:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Feb 2017 07:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21072 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21072-submit@debbugs.gnu.org id=B21072.14871453927907 (code B ref 21072); Wed, 15 Feb 2017 07:57:01 +0000 Original-Received: (at 21072) by debbugs.gnu.org; 15 Feb 2017 07:56:32 +0000 Original-Received: from localhost ([127.0.0.1]:40449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cduS0-00023T-BM for submit@debbugs.gnu.org; Wed, 15 Feb 2017 02:56:32 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:2031) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cduRx-00023D-Vn for 21072@debbugs.gnu.org; Wed, 15 Feb 2017 02:56:30 -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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129375 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