From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#17978: 24.3; forward-paragraph broken with javadocs Date: Sun, 13 Jul 2014 13:23:01 +0000 Message-ID: <20140713132301.GA4056@acm.acm> References: <864myoe66i.fsf@yandex.ru> <86zjggcp7s.fsf@yandex.ru> <53C1D74D.5010709@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1405258109 27117 80.91.229.3 (13 Jul 2014 13:28:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Jul 2014 13:28:29 +0000 (UTC) Cc: Justine Tunney , 17978@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 13 15:28:22 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X6JpF-0007FW-LS for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jul 2014 15:28:21 +0200 Original-Received: from localhost ([::1]:52297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6JpF-0005ol-7Z for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jul 2014 09:28:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6Jp5-0005nl-85 for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2014 09:28:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6Jox-0008Ml-LF for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2014 09:28:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6Jox-0008MO-IN for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2014 09:28:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X6Jow-0002Cm-LM for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2014 09:28:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Jul 2014 13:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17978 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17978-submit@debbugs.gnu.org id=B17978.14052580788462 (code B ref 17978); Sun, 13 Jul 2014 13:28:02 +0000 Original-Received: (at 17978) by debbugs.gnu.org; 13 Jul 2014 13:27:58 +0000 Original-Received: from localhost ([127.0.0.1]:53569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6Joq-0002CP-Tc for submit@debbugs.gnu.org; Sun, 13 Jul 2014 09:27:57 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:35836 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6Jol-0002CA-Pu for 17978@debbugs.gnu.org; Sun, 13 Jul 2014 09:27:53 -0400 Original-Received: (qmail 11035 invoked by uid 3782); 13 Jul 2014 13:27:49 -0000 Original-Received: from acm.muc.de (pD951B126.dip0.t-ipconnect.de [217.81.177.38]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 13 Jul 2014 15:27:41 +0200 Original-Received: (qmail 4204 invoked by uid 1000); 13 Jul 2014 13:23:01 -0000 Content-Disposition: inline In-Reply-To: <53C1D74D.5010709@yandex.ru> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91503 Archived-At: Hi, Justine, Hi, Dmitry and Stefan. On Sun, Jul 13, 2014 at 03:48:13AM +0300, Dmitry Gutov wrote: > On 07/11/2014 04:51 PM, Stefan Monnier wrote: > >> Or maybe we should save the computed value, but then kill the > >> buffer-local value of `paragraph-start'? > > That's probably the most straightforward solution, yes. > Seems like it would need to be done in `c-setup-paragraph-variables' for > all CC Engine modes, if done at all. So the choice is probably up to its > maintainer. > Alan, what do you think? With all due respect to the OP, the purpose of C-{ and C-} is to move between paragraphs, not blank lines. Or, alternatively, in CC Mode, a line which contains only a comment prefix is considered to be blank. The motivation for this is to be able to move by paragraphs in large comments, such are frequently found at the beginning of source files. Sometimes, comments for individual functions are also quite sizeable. And of course, as already mentioned, filling should do the Right Thing inside comments. If backward-paragraph (and forward-paragraph) were to be redefined not to handle comment prefices specially, the facility to move by paragraphs inside large comments (when the comment prefix is non-null) would be lost. I don't think we should change things here. Maybe what we really need is commands beginning-of-comment and end-of-comment. As an alternative to C-{, there's always M-- C-M-e (move to the end of the previous function) which does almost the same thing in the OP's particular use case, and is only slightly more awkward to type. -- Alan Mackenzie (Nuremberg, Germany).