From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.bugs Subject: bug#21072: Brave new mark-defun (and a testing tool) Date: Tue, 18 Apr 2017 14:35:13 +0200 Message-ID: <87tw5l7v26.fsf@jane> References: <87o9ydrzkr.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> <87efyze00g.fsf@jane> <87bmu2eoji.fsf@jane> <87wpcpw61w.fsf@jane> <83o9xdghmc.fsf@gnu.org> <87o9wkoald.fsf@jane> <87a881ofsu.fsf@jane> <87k272wh8x.fsf@users.sourceforge.net> <871st4aal7.fsf@jane> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1492518920 4928 195.159.176.226 (18 Apr 2017 12:35:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 18 Apr 2017 12:35:20 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 26.0.50 Cc: 21072@debbugs.gnu.org, Stefan Monnier To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 18 14:35:15 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 1d0SLf-00014m-DD for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Apr 2017 14:35:11 +0200 Original-Received: from localhost ([::1]:41648 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0SLj-00053Q-Qp for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Apr 2017 08:35:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0SLc-0004zG-55 for bug-gnu-emacs@gnu.org; Tue, 18 Apr 2017 08:35:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0SLW-0004bv-97 for bug-gnu-emacs@gnu.org; Tue, 18 Apr 2017 08:35:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55331) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d0SLW-0004bi-4K for bug-gnu-emacs@gnu.org; Tue, 18 Apr 2017 08:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d0SLV-0005G8-Rr for bug-gnu-emacs@gnu.org; Tue, 18 Apr 2017 08:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Marcin Borkowski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Apr 2017 12:35: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.149251888120187 (code B ref 21072); Tue, 18 Apr 2017 12:35:01 +0000 Original-Received: (at 21072) by debbugs.gnu.org; 18 Apr 2017 12:34:41 +0000 Original-Received: from localhost ([127.0.0.1]:53530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0SLB-0005FX-36 for submit@debbugs.gnu.org; Tue, 18 Apr 2017 08:34:41 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:44823) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0SL9-0005FP-JQ for 21072@debbugs.gnu.org; Tue, 18 Apr 2017 08:34:40 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 75DD1E6888; Tue, 18 Apr 2017 14:34:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QpVV0lFNHaPI; Tue, 18 Apr 2017 14:34:31 +0200 (CEST) Original-Received: from localhost (unknown [83.13.149.242]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 1B289E6789; Tue, 18 Apr 2017 14:34:31 +0200 (CEST) In-reply-to: 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:131727 Archived-At: On 2017-04-07, at 16:41, Noam Postavsky wrote: >>> This entry should go before the page separator, and the "+++" should go >>> on the line just above the entry, not after it. >> >> That one I do not understand. This means that "+++" goes essentially >> _to the previous entry_, which doesn't seem to make sense (especially >> when viewing NEWS folded, which I assume everyone does, right?). > > Hmm, no, I wasn't really aware of folding (you mean via > `outline-hide-sublevels', right?). Actually, via Org-mode. Is there anyone who does that without Org-mode? Out of curiosity: why??? > I guess the convention wasn't made with folding in mind, but the "+++" > and "---" markup is just temporary anyway. OK. Anyway, I fixed that. > [...] > > Oh, right, I thought it was doing backward-comment, but the difference > is that it stops at blank lines, thus the *non-redundant* looking-at > call. > > I wonder if that's a sensible thing to do for languages that have > multiline comments though, e.g. Javascript: > > /* > > This function returns 0 > > */ > function foo () { > return 0; > } > > Although we might say that such comments should have "*" on the empty lines. Definitely. OTOH, what if they don't...? I'm not sure how to detect such a situation. Any ideas? Best, -- Marcin Borkowski