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: Thu, 20 Apr 2017 14:11:04 +0200 Message-ID: <8737d3b7on.fsf@jane> References: <87o9ydrzkr.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> <87tw5l7v26.fsf@jane> <877f2hs1nw.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1492690658 15274 195.159.176.226 (20 Apr 2017 12:17:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 20 Apr 2017 12:17:38 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 26.0.50 Cc: 21072@debbugs.gnu.org, Stefan Monnier , Noam Postavsky To: John Mastro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 20 14:17:32 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 1d1B1g-0003qp-Bk for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Apr 2017 14:17:32 +0200 Original-Received: from localhost ([::1]:53631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1B1m-0002fr-6T for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Apr 2017 08:17:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1AvS-0006ur-U7 for bug-gnu-emacs@gnu.org; Thu, 20 Apr 2017 08:11:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d1AvO-0006Fd-Md for bug-gnu-emacs@gnu.org; Thu, 20 Apr 2017 08:11:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59857) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d1AvO-0006FV-Ei for bug-gnu-emacs@gnu.org; Thu, 20 Apr 2017 08:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d1AvO-0002Px-3b for bug-gnu-emacs@gnu.org; Thu, 20 Apr 2017 08:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Marcin Borkowski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Apr 2017 12:11:02 +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.14926902289254 (code B ref 21072); Thu, 20 Apr 2017 12:11:02 +0000 Original-Received: (at 21072) by debbugs.gnu.org; 20 Apr 2017 12:10:28 +0000 Original-Received: from localhost ([127.0.0.1]:58056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1Aup-0002PC-Ny for submit@debbugs.gnu.org; Thu, 20 Apr 2017 08:10:27 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:38863) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1Auo-0002P3-6v for 21072@debbugs.gnu.org; Thu, 20 Apr 2017 08:10:26 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id CAE77E66A8; Thu, 20 Apr 2017 14:10:22 +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 GL1j0msECLU6; Thu, 20 Apr 2017 14:10:20 +0200 (CEST) Original-Received: from localhost (apn-31-0-23-7.dynamic.gprs.plus.pl [31.0.23.7]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 27084E602D; Thu, 20 Apr 2017 14:10:20 +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:131799 Archived-At: On 2017-04-20, at 02:47, John Mastro wrote: > I realized that `forward-comment' returns nil when something besides a > comment or whitespace was found, so my idea boils down to: > > (defun beginning-of-defun-comments (&optional arg) > (interactive "^p") > (beginning-of-defun (or arg 1)) > (while (forward-comment -1)) > (skip-chars-forward "[:space:]\r\n")) Hi John, this definitely does not work - my `beginning-of-defun-comments' stops at the first blank line, yours does not. Thanks anyway, -- Marcin Borkowski