From unknown Wed Jun 18 00:26:44 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#17978 <17978@debbugs.gnu.org> To: bug#17978 <17978@debbugs.gnu.org> Subject: Status: 24.3; forward-paragraph broken with javadocs Reply-To: bug#17978 <17978@debbugs.gnu.org> Date: Wed, 18 Jun 2025 07:26:44 +0000 retitle 17978 24.3; forward-paragraph broken with javadocs reassign 17978 emacs submitter 17978 Justine Tunney severity 17978 wishlist tag 17978 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 09 14:13:17 2014 Received: (at submit) by debbugs.gnu.org; 9 Jul 2014 18:13:17 +0000 Received: from localhost ([127.0.0.1]:48034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4wMj-0005At-18 for submit@debbugs.gnu.org; Wed, 09 Jul 2014 14:13:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55293) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4w3P-0004XZ-8S for submit@debbugs.gnu.org; Wed, 09 Jul 2014 13:53:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4w3F-0007jy-Pf for submit@debbugs.gnu.org; Wed, 09 Jul 2014 13:53:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,HTML_MESSAGE, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4w3F-0007ju-Kq for submit@debbugs.gnu.org; Wed, 09 Jul 2014 13:53:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4w3E-0002qG-FR for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 13:53:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4w3D-0007jX-93 for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 13:53:04 -0400 Received: from mail-ie0-x22e.google.com ([2607:f8b0:4001:c03::22e]:51051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4w3D-0007jO-2t for bug-gnu-emacs@gnu.org; Wed, 09 Jul 2014 13:53:03 -0400 Received: by mail-ie0-f174.google.com with SMTP id rd18so6606091iec.19 for ; Wed, 09 Jul 2014 10:53:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=UBtwyITnftWzk4aULSURav8qlGyClOln3W5S0Gakjv4=; b=KTX7fn7jS4dSXUwVmD5NK8WnUc6QABderSiB2EcvxQNs9CIIaKNkcQsZ0G7Bpz4dZ4 lV9Yr0bx+g1Msg/edtYHyIckzXTHXgyJRP6wNRduFntOxBQxj2q+wcdkNO7EogB2Njxt RZgG8rX3W4Wc+hPUD3wl9catL6zrARsCo9Q5EGCUskO7lUOmf8g0gmQr+F9mZjktBXNv es1wZkBGqQGeLA/D5LmZIu5XSn+hxdl/OzIjMz2YLEeapSC19/em3P7zgCUFW8T07Z1F vgpZ1SsLdH9wS3qRP2FWi5Uqn7YuShkPEMnsWrXrbxr7Ah++z0lhQ/GWUoD56REyZHZQ 63eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=UBtwyITnftWzk4aULSURav8qlGyClOln3W5S0Gakjv4=; b=f2fXnOJcwXlXpTCcxq6bGTcwbK/JFHMe42A+HFSK3JsA6Zr65O0GDMk21yRj/CP/EY SBV6cvDFpCrcxai8lQ03cdLRcIsQlb6nMaOOi5Ax5sOclEVikt125fUcBZq3XXLCium5 ha8dwjFg5/3DJeznmnnxAka9FSpu/CPx6AnqltvHTKlO69gP/pgokZP1vV5QUeuBgcAn VXhOJWzKj3TzymrSkgNwRp3jrgnPbOwt1dn/86APiJ1LJj+wRx3lRrtuxpKHo6W1/oSG 94YZbuK6+267EBfMAgR98IUatESVY7A6ij0UTjuJuTFILWoM4oXA46+nOYun63TdMNVk gGWQ== X-Gm-Message-State: ALoCoQmHJWDQ3hjGcA9x87HmkyT0VR0smYN4h/NcLHwoeCH+KPQdBhkNnyegql5QSqADk61BljrX MIME-Version: 1.0 X-Received: by 10.50.138.99 with SMTP id qp3mr15287481igb.12.1404928381611; Wed, 09 Jul 2014 10:53:01 -0700 (PDT) Received: by 10.64.236.18 with HTTP; Wed, 9 Jul 2014 10:53:01 -0700 (PDT) Date: Wed, 9 Jul 2014 13:53:01 -0400 Message-ID: Subject: 24.3; forward-paragraph broken with javadocs From: Justine Tunney To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a11c3c6e01f279504fdc661d7 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 09 Jul 2014 14:13:11 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a11c3c6e01f279504fdc661d7 Content-Type: text/plain; charset=UTF-8 The default emacs behavior for the forward-paragraph and backward-paragraph functions is to hop between blank lines in a source code file. This breaks in java-mode in the presence of javadoc @clauses. I sent a pull request to the js2-mode project (which also supports javadocs, and thus the same error occurs) but it was rejected since they told me it was an emacs bug. Here's the pull request I sent the js2-mode authors: https://github.com/mooz/js2-mode/pull/147 Here's the video explanation I gave the js2-mode authors: http://youtu.be/cXerimuxNK8 Thanks! --001a11c3c6e01f279504fdc661d7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The default emacs behavior for the forward-paragraph = and
backward-paragraph functions is to hop between blank lines in= a source
code file. This breaks in java-mode in the presence of = javadoc @clauses.

I sent a pull request to the js2-mode project (which al= so supports
javadocs, and thus the same error occurs) but it was = rejected since they
told me it was an emacs bug.

Here's the pull request I sent the js2-mode authors:
https://github.com= /mooz/js2-mode/pull/147

Here's the video e= xplanation I gave the js2-mode authors:

--001a11c3c6e01f279504fdc661d7-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 09 15:26:58 2014 Received: (at 17978) by debbugs.gnu.org; 9 Jul 2014 19:26:58 +0000 Received: from localhost ([127.0.0.1]:48104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4xW2-0007Oh-3f for submit@debbugs.gnu.org; Wed, 09 Jul 2014 15:26:58 -0400 Received: from mercure.iro.umontreal.ca ([132.204.24.67]:57260) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4xVw-0007OR-SQ for 17978@debbugs.gnu.org; Wed, 09 Jul 2014 15:26:53 -0400 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id AB9E584DD2; Wed, 9 Jul 2014 15:26:48 -0400 (EDT) Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 731891E5B8B; Wed, 9 Jul 2014 15:26:24 -0400 (EDT) Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 52438B4167; Wed, 9 Jul 2014 15:26:24 -0400 (EDT) From: Stefan Monnier To: Justine Tunney Subject: Re: bug#17978: 24.3; forward-paragraph broken with javadocs Message-ID: References: Date: Wed, 09 Jul 2014 15:26:24 -0400 In-Reply-To: (Justine Tunney's message of "Wed, 9 Jul 2014 13:53:01 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 17978 Cc: 17978@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) > The default emacs behavior for the forward-paragraph and > backward-paragraph functions is to hop between blank lines in a source > code file. This breaks in java-mode in the presence of javadoc @clauses. In which sense does it "break"? Can you show some example code and the behavior you expect compared to the behavior you get? Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 09 17:11:30 2014 Received: (at 17978) by debbugs.gnu.org; 9 Jul 2014 21:11:30 +0000 Received: from localhost ([127.0.0.1]:48169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4z9F-0003OZ-4o for submit@debbugs.gnu.org; Wed, 09 Jul 2014 17:11:29 -0400 Received: from mail-ie0-f178.google.com ([209.85.223.178]:64466) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4z9B-0003OF-8O for 17978@debbugs.gnu.org; Wed, 09 Jul 2014 17:11:26 -0400 Received: by mail-ie0-f178.google.com with SMTP id rl12so6532108iec.23 for <17978@debbugs.gnu.org>; Wed, 09 Jul 2014 14:11:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DOcmN2Y9tAo+PdUw1e7+k4nLrbVHXIvsfW2ZQmKZNqo=; b=ZY1wdfAEZ8z9KNXhKa2l75NCZ625heaBNy1JAn25j/npuQ4ZnpVJngog1YKY9XsfXO GUrxHz2atMNbb8PHc/OVHnvJ3jFSnrtVeKPAsczma27JYyLaEGUAiMBgB6Ng+33Nl0nq 8R2qmsdbIqTikpU0OgRRyA1/YBl0HqPmyh8SPZx1lFBHlTOLJCTR87dCh2L4sUKT+xrh dY2lb98KnpSOo615cTWchlXovqusguB+maIkiB3/3ZI1Cp2bMdIAkdqAOkCs/YyiBoDg +5gT203Om0HujBugUrl8/OOFukj6YhQs+vNOKDGJ+/jnk5+8vCiQe0Mm6GTbFLma0hih J4cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=DOcmN2Y9tAo+PdUw1e7+k4nLrbVHXIvsfW2ZQmKZNqo=; b=kJO0hU2oCPU4ZIbnUHmicaAT1rafXYavhO65rEk10oC3/x4fojZZdJVzzo8aGcl0tP ACGbj/5OzNINTCB2BYzBSgrO+EVEAQEOhWhel2KkMTYnEgCeySiFK2PjhL4U8l5DRH3k mXy2i4+whC/71IXDBE7LWRRxb7CY+fm86Z0PMBB1vHzLRskG15/zxRKLzLgsjU/Wlnyp stjXxRhXW4sWlHk7VGZVVo8zLg0NYmvU2qVeQBYhjVoqZ6hQ3Ghu344Kt/vIBCuPNzuj elRrwT7Bn1JjFlbU34bw8Ob9/trjCgzXfPMWEQFleIXAdcokt+JyM/4BTS1YoDuurLEb b+Jg== X-Gm-Message-State: ALoCoQkMteyhyQRRDXa3ZgvGSlCSZx91s4Y6ycNlUFANoBOhP/CpSkS/Vrwzz/uXI58qqwI4aBRW MIME-Version: 1.0 X-Received: by 10.43.93.199 with SMTP id bv7mr5247057icc.1.1404940279635; Wed, 09 Jul 2014 14:11:19 -0700 (PDT) Received: by 10.64.236.18 with HTTP; Wed, 9 Jul 2014 14:11:19 -0700 (PDT) In-Reply-To: References: Date: Wed, 9 Jul 2014 17:11:19 -0400 Message-ID: Subject: Re: bug#17978: 24.3; forward-paragraph broken with javadocs From: Justine Tunney To: Stefan Monnier Content-Type: multipart/alternative; boundary=bcaec517c85e4c7fc404fdc92654 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 17978 Cc: 17978@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) --bcaec517c85e4c7fc404fdc92654 Content-Type: text/plain; charset=UTF-8 I included a video explanation: http://youtu.be/cXerimuxNK8 The same problem I demonstrate in the video, also applies to java-mode. When you hit C-{ and C-}, rather than go to the next blank line, it'll go to @tags in javadocs. On Wed, Jul 9, 2014 at 3:26 PM, Stefan Monnier wrote: > > The default emacs behavior for the forward-paragraph and > > backward-paragraph functions is to hop between blank lines in a source > > code file. This breaks in java-mode in the presence of javadoc @clauses. > > In which sense does it "break"? Can you show some example code and the > behavior you expect compared to the behavior you get? > > > Stefan > --bcaec517c85e4c7fc404fdc92654 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I included a video explanation:=C2=A0http://youtu.be/cXerimuxNK8

The s= ame problem I demonstrate in the video, also applies to java-mode. When you= hit C-{ and C-}, rather than go to the next blank line, it'll go to @t= ags in javadocs.
--bcaec517c85e4c7fc404fdc92654-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 09 18:29:04 2014 Received: (at 17978) by debbugs.gnu.org; 9 Jul 2014 22:29:04 +0000 Received: from localhost ([127.0.0.1]:48226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X50MJ-0005q4-B3 for submit@debbugs.gnu.org; Wed, 09 Jul 2014 18:29:03 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:54122) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X50MG-0005pY-TV for 17978@debbugs.gnu.org; Wed, 09 Jul 2014 18:29:01 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwY7gw/APYEXF3SCJQEBAQECAVYjBQsLDiYSFBgNJIgECNIZF456B4Q4BJoBizuDXYFqg0wh X-IPAS-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwY7gw/APYEXF3SCJQEBAQECAVYjBQsLDiYSFBgNJIgECNIZF456B4Q4BJoBizuDXYFqg0wh X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="77014076" Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 09 Jul 2014 18:28:54 -0400 Received: by pastel.home (Postfix, from userid 20848) id AE3AF60A86; Wed, 9 Jul 2014 18:28:54 -0400 (EDT) From: Stefan Monnier To: Justine Tunney Subject: Re: bug#17978: 24.3; forward-paragraph broken with javadocs Message-ID: References: Date: Wed, 09 Jul 2014 18:28:54 -0400 In-Reply-To: (Justine Tunney's message of "Wed, 9 Jul 2014 17:11:19 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 17978 Cc: 17978@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > I included a video explanation: http://youtu.be/cXerimuxNK8 Could you just send plain text showing an example piece of code, then a command you use on it, the end result you get and the end result you'd like to get instead? That's surely easier to do, and will save me the trouble of dealing with videos which I find unbearable (you can't just look at them, you have to additionally listen to them; if you get distracted along the way you end up having to start over; half the time there's a technical problem; you can't choose the speed at which you "read/view", so you have to wait for irrelevant crap before getting to the point; it's a huge waste of bandwidth). Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 09 19:48:53 2014 Received: (at 17978) by debbugs.gnu.org; 9 Jul 2014 23:48:54 +0000 Received: from localhost ([127.0.0.1]:51431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X51bZ-0000ly-AX for submit@debbugs.gnu.org; Wed, 09 Jul 2014 19:48:53 -0400 Received: from mail-ie0-f171.google.com ([209.85.223.171]:39745) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X51bW-0000lj-Va for 17978@debbugs.gnu.org; Wed, 09 Jul 2014 19:48:51 -0400 Received: by mail-ie0-f171.google.com with SMTP id at1so2256368iec.2 for <17978@debbugs.gnu.org>; Wed, 09 Jul 2014 16:48:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xinljVK35zOSlN6S7YfzDCUS+5s0bbZ4hQKms7pZdIo=; b=DjXxx13tp8Qjpkq3lkkwfYVvSiBdty9Shr+Tf6Xxyo+67YxP0nNooAurn7lvtKaPpo o2wtprQLlThCKXPk6cgaB8zDPGGOn4fdzXlyHrbvf0nvpFsC7SXJ0swO2bTWY9y8OMRh 7rdKp87jfsm2ud5EQO25tNE2/5EgzY+kB3cI0nwbmpEANmuHB82FMBmaHkNG6NIMJ30h +B8dbzvUgxHxXJv53/SqC7iTfTynHNb+gEL9Tarytl6JdcNsJP0Fdek1lzm1E6BOvz3k T+13qhcpW0BIxiaiy+GuVSpZkwJuKPEohm38lLkZJqWtaxuBBFQOk6n+KO4NwpP/zPNP n1Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=xinljVK35zOSlN6S7YfzDCUS+5s0bbZ4hQKms7pZdIo=; b=ai/V8qFtP3dWjvAzAvtSq1KapBvHTpsOH0adfzAP+kFuJN7lOzyi9HDqNg2AUdU0Af 5x3x/5MfXUn7G4i7jtqpsP/OB8/JL6HpZbGI4l2XXEF7zx9jv71L7sX63JUBhCeO3RXQ s0wwbHhXpQnN45HJDLjAhKyBTykyFXOS2UYY7c/v2qyGiiH4oOQgf7Osi7fcnwcQBT9F XdidtxAgId0Hv3OpwX9Z984rsKnka03AFzFI824toPmySPAbUceEScprN2IwgevklqTb ttp0mdIa/PBik71plGl2NRS3fmWOURbXS34PhBZGvk6B4S5UfJVhr7YGZerzZesEGRa4 GK+A== X-Gm-Message-State: ALoCoQmO7pGbyQYnMBxFEp1Q0OAy2XaQOthBLXRx98DSVYY7NNrAav3HzQJDlukwn/TMMyBJA2+4 MIME-Version: 1.0 X-Received: by 10.42.49.196 with SMTP id x4mr7127466icf.85.1404949250319; Wed, 09 Jul 2014 16:40:50 -0700 (PDT) Received: by 10.64.236.18 with HTTP; Wed, 9 Jul 2014 16:40:50 -0700 (PDT) In-Reply-To: References: Date: Wed, 9 Jul 2014 19:40:50 -0400 Message-ID: Subject: Re: bug#17978: 24.3; forward-paragraph broken with javadocs From: Justine Tunney To: Stefan Monnier Content-Type: multipart/alternative; boundary=90e6ba21230ffe437704fdcb3c73 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 17978 Cc: 17978@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) --90e6ba21230ffe437704fdcb3c73 Content-Type: text/plain; charset=UTF-8 Assume that I have the following Java source, where # indicates the cursor position: /** * Does stuff. * *

Hello * * @see FooBar */ private void lol() {} # So I press C-{ and this is what happens: /** * Does stuff. * *

Hello * #* @see FooBar */ private void lol() {} And then I press it again: /** * Does stuff. * #*

Hello * * @see FooBar */ private void lol() {} And here's what I expected to happen: # /** * Does stuff. * *

Hello * * @see FooBar */ private void lol() {} C-{ and C-} should cycle between blank lines. But the reason why this doesn't happen in java-mode, is because Java redefines the definition of a paragraph. It sets the paragraph-start variable (among other variables) so that when I M-q to fill-paragraph, it'll work correctly *within* the Javadoc, rather than reflowing my code into a jumbled mess. On Wed, Jul 9, 2014 at 6:28 PM, Stefan Monnier wrote: > > I included a video explanation: http://youtu.be/cXerimuxNK8 > > Could you just send plain text showing an example piece of code, then > a command you use on it, the end result you get and the end result you'd > like to get instead? > > That's surely easier to do, and will save me the trouble of dealing with > videos which I find unbearable (you can't just look at them, you have to > additionally listen to them; if you get distracted along the way you end > up having to start over; half the time there's a technical problem; you > can't choose the speed at which you "read/view", so you have to wait > for irrelevant crap before getting to the point; it's a huge waste of > bandwidth). > > > Stefan > --90e6ba21230ffe437704fdcb3c73 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Assume that I have the following Java source, where # indi= cates the cursor position:

/**
=C2=A0* Does stuff.<= /div>
=C2=A0*
=C2=A0* <p>Hello
=C2=A0*
=C2=A0= * @see FooBar
=C2=A0*/
private void lol() {}
= #

So I press C-{ and this is what hap= pens:

/**
=C2=A0* Does stuff.
=C2=A0*
=C2=A0* <p>Hello
=C2=A0*
#* @see FooBar
=C2=A0*/
private void lol() {}

And then I press it again:
=

/**
=C2=A0* Does stuff.
=C2=A0*
#* <p>Hello
=C2=A0*
=C2=A0* @see FooBar
=C2=A0*/
private void lol() {}

And here's what = I expected to happen:

#
/**
=C2=A0* D= oes stuff.
=C2=A0*
=C2=A0* <p>Hello
=C2=A0*
= =C2=A0* @see FooBar
=C2=A0*/
private void lol() {}

C-{ and C-} should cycle between blank lines. = But the reason why this doesn't happen in java-mode, is because Java re= defines the definition of a paragraph. It sets the paragraph-start variable= (among other variables) so that when I M-q to fill-paragraph, it'll wo= rk correctly *within* the Javadoc, rather than reflowing my code into a jum= bled mess.


On Wed,= Jul 9, 2014 at 6:28 PM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
Could you just send plain text showing an example piece of code, then=
a command you use on it, the end result you get and the end result you'= d
like to get instead?

That's surely easier to do, and will save me the trouble of dealing wit= h
videos which I find unbearable (you can't just look at them, you have t= o
additionally listen to them; if you get distracted along the way you end up having to start over; half the time there's a technical problem; you=
can't choose the speed at which you "read/view", so you have = to wait
for irrelevant crap before getting to the point; it's a huge waste of bandwidth).


=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan

--90e6ba21230ffe437704fdcb3c73-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 09 23:07:09 2014 Received: (at 17978) by debbugs.gnu.org; 10 Jul 2014 03:07:09 +0000 Received: from localhost ([127.0.0.1]:51526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X54hQ-0006hu-Sg for submit@debbugs.gnu.org; Wed, 09 Jul 2014 23:07:09 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:49973) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X54hO-0006hP-9L for 17978@debbugs.gnu.org; Wed, 09 Jul 2014 23:07:07 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCwsOJhIUGA0kiAQI0hkXjnoHhDgEqRmBaoNMIQ X-IPAS-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCwsOJhIUGA0kiAQI0hkXjnoHhDgEqRmBaoNMIQ X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="77034842" Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 09 Jul 2014 23:06:59 -0400 Received: by pastel.home (Postfix, from userid 20848) id 613B360A86; Wed, 9 Jul 2014 23:06:57 -0400 (EDT) From: Stefan Monnier To: Justine Tunney Subject: Re: bug#17978: 24.3; forward-paragraph broken with javadocs Message-ID: References: Date: Wed, 09 Jul 2014 23:06:57 -0400 In-Reply-To: (Justine Tunney's message of "Wed, 9 Jul 2014 19:40:50 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 17978 Cc: 17978@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > C-{ and C-} should cycle between blank lines. But the reason why this > doesn't happen in java-mode, is because Java redefines the definition of a > paragraph. It sets the paragraph-start variable (among other variables) so > that when I M-q to fill-paragraph, it'll work correctly *within* the > Javadoc, rather than reflowing my code into a jumbled mess. Ah, I see, yes, that makes sense. The fix is to not change paragraph-start (and friends) in the major-mode hook but instead to define override the fill-forward-paragraph-function with a function which let-binds those vars and then calls forward-paragraph. See lisp/vc/add-log.el for an example. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 11 02:54:59 2014 Received: (at 17978) by debbugs.gnu.org; 11 Jul 2014 06:55:00 +0000 Received: from localhost ([127.0.0.1]:52820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5UjT-00032A-GD for submit@debbugs.gnu.org; Fri, 11 Jul 2014 02:54:59 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:57566) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5UjR-00031n-Tg for 17978@debbugs.gnu.org; Fri, 11 Jul 2014 02:54:58 -0400 Received: by mail-wi0-f172.google.com with SMTP id hi2so5720467wib.5 for <17978@debbugs.gnu.org>; Thu, 10 Jul 2014 23:54:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=u8VRvkYwfOVs5ZJHw1EGOqtVHBGFtJn2arA1QA5iwzQ=; b=yGzoyIwQ+e7rjegnPgUG47wNjqrOrSxHY8ghvQH8fQ5oNOL/tAtTZdRSh7AO3Zv9Ar aQC7IJNOkpnaf/oIlB4lEnOExrWbsJzDB4GyrOEpbhACBJC0/hcTa5kh0un/0lAqf9BY uqqmxlaPdzQyoqmHpKx27yyQ07W6wL42YiPtcMenrHlYCvwR19ehg/mwDiJsCAVnulCv wf4egOVvFbYB10/mn7+NoJ5cYez/Mw7H8exfpyXJY+Y2dAgI86iaMOmbqJfsCs6bBBnw UYSEtNzq3GIWU28yd10yCL1w2oaxpiWeQ0ZjXehK5IBCtnuMvWEXW0O0781orSMITcum dhYA== X-Received: by 10.180.103.228 with SMTP id fz4mr2632822wib.4.1405061689708; Thu, 10 Jul 2014 23:54:49 -0700 (PDT) Received: from axl (v-2-eu19-d3962-07.webazilla.com. [78.140.151.7]) by mx.google.com with ESMTPSA id nc19sm4003098wic.4.2014.07.10.23.54.47 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 10 Jul 2014 23:54:48 -0700 (PDT) From: Dmitry To: Stefan Monnier Subject: Re: bug#17978: 24.3; forward-paragraph broken with javadocs References: Date: Fri, 11 Jul 2014 09:54:45 +0300 In-Reply-To: (Stefan Monnier's message of "Wed, 09 Jul 2014 23:06:57 -0400") Message-ID: <864myoe66i.fsf@yandex.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17978 Cc: Justine Tunney , 17978@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Stefan Monnier writes: >> C-{ and C-} should cycle between blank lines. But the reason why this >> doesn't happen in java-mode, is because Java redefines the definition of a >> paragraph. It sets the paragraph-start variable (among other variables) so >> that when I M-q to fill-paragraph, it'll work correctly *within* the >> Javadoc, rather than reflowing my code into a jumbled mess. > Hi Stefan, > Ah, I see, yes, that makes sense. The fix is to not change > paragraph-start (and friends) in the major-mode hook but instead to > define override the fill-forward-paragraph-function with a function > which let-binds those vars and then calls forward-paragraph. Thanks for the vertict, I'll fix that in js2-mode, This doesn't look straightforward to do, though: the final `paragraph-start' is obtained by calling `c-setup-paragraph-variables', so to get the value computed both ways, guess we'll have to call it at least twice. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 11 03:46:48 2014 Received: (at 17978) by debbugs.gnu.org; 11 Jul 2014 07:46:48 +0000 Received: from localhost ([127.0.0.1]:52831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5VXb-0004cQ-Qy for submit@debbugs.gnu.org; Fri, 11 Jul 2014 03:46:48 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:62662) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5VXa-0004cB-3f for 17978@debbugs.gnu.org; Fri, 11 Jul 2014 03:46:46 -0400 Received: by mail-wi0-f180.google.com with SMTP id hi2so879989wib.13 for <17978@debbugs.gnu.org>; Fri, 11 Jul 2014 00:46:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=uxzwTcZ/GdugCUhYJN45JB6ozWn7NWiPWLX1Eb/G3zQ=; b=uIenREfH/dgfM6eoBym4nu7KDgoR3TnQitbVkRBb3LBZS0cqwN95EZ3Cnz5OXdqe2p PGt3si7cw7UYhI4Gm7rf2i7cOwF2xjVx0491UKxBXHaKfLQKQkUEJknhezTdw49J7Nkm WY5ez98t/hE/sGcK9o8fFZRpshwM8ZVr5TzS6Dg9Fy1e1Dke4hVLW24fSlNuoiA57NL6 usOruAuShGvqSTtIC/5NEzllpulnjk63KqgwjTwKUgu3xkZJRTBdNBML0pA3R+3CcoHb 4ylxFCHQFvTgtERl9tq+lO9CI3rMY2sIgXz+ZSJ35GhUjZmV313bI1s0a7WIXiBTYyEr Qksg== X-Received: by 10.180.8.10 with SMTP id n10mr2794392wia.41.1405064797107; Fri, 11 Jul 2014 00:46:37 -0700 (PDT) Received: from axl (v-2-eu19-d3962-07.webazilla.com. [78.140.151.7]) by mx.google.com with ESMTPSA id w5sm4453557wif.3.2014.07.11.00.46.35 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 11 Jul 2014 00:46:36 -0700 (PDT) From: Dmitry To: Stefan Monnier Subject: Re: bug#17978: 24.3; forward-paragraph broken with javadocs References: <864myoe66i.fsf@yandex.ru> Date: Fri, 11 Jul 2014 10:46:31 +0300 In-Reply-To: <864myoe66i.fsf@yandex.ru> (Dmitry's message of "Fri, 11 Jul 2014 09:54:45 +0300") Message-ID: <86zjggcp7s.fsf@yandex.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17978 Cc: Justine Tunney , 17978@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Dmitry writes: > This doesn't look straightforward to do, though: the final > `paragraph-start' is obtained by calling `c-setup-paragraph-variables', > so to get the value computed both ways, guess we'll have to call it at > least twice. Or maybe we should save the computed value, but then kill the buffer-local value of `paragraph-start'? This actually seems to be what Justine is asking for, because the "unexpected" paragraph movement happens not just because of javadocs, but also due to the "empty" lines within the comment. `c-setup-paragraph-variables' intentionally sets the variable up this way, so maybe we should consider more carefully whether `backward-paragraph' should stop at those lines. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 11 09:52:11 2014 Received: (at 17978) by debbugs.gnu.org; 11 Jul 2014 13:52:11 +0000 Received: from localhost ([127.0.0.1]:53114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5bF8-0008Rq-TJ for submit@debbugs.gnu.org; Fri, 11 Jul 2014 09:52:11 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:2495) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5bF2-0008RF-4A for 17978@debbugs.gnu.org; Fri, 11 Jul 2014 09:52:05 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSQuh1YI0hkXjnoHhDgEqRmBaoNMIQ X-IPAS-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSQuh1YI0hkXjnoHhDgEqRmBaoNMIQ X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="77168788" Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 11 Jul 2014 09:51:53 -0400 Received: by pastel.home (Postfix, from userid 20848) id 9AF30616F3; Fri, 11 Jul 2014 09:51:53 -0400 (EDT) From: Stefan Monnier To: Dmitry Subject: Re: bug#17978: 24.3; forward-paragraph broken with javadocs Message-ID: References: <864myoe66i.fsf@yandex.ru> <86zjggcp7s.fsf@yandex.ru> Date: Fri, 11 Jul 2014 09:51:53 -0400 In-Reply-To: <86zjggcp7s.fsf@yandex.ru> (Dmitry's message of "Fri, 11 Jul 2014 10:46:31 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 17978 Cc: Justine Tunney , 17978@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > 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. > `c-setup-paragraph-variables' intentionally sets the variable up this > way, so maybe we should consider more carefully whether > `backward-paragraph' should stop at those lines. Paragraph movement within code is "non standard": I'm sure some users use it regularly, but I'd expect the vast majority never uses it, and all programming major modes I know don't seem to care about paragraph movement. Many do care about paragraph filling, tho. So I'm pretty sure that the paragraph-* settings here are meant specifically for filling and not for movement. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 12 20:48:28 2014 Received: (at 17978) by debbugs.gnu.org; 13 Jul 2014 00:48:29 +0000 Received: from localhost ([127.0.0.1]:53301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X67xs-0004N4-K5 for submit@debbugs.gnu.org; Sat, 12 Jul 2014 20:48:28 -0400 Received: from mail-wg0-f46.google.com ([74.125.82.46]:65397) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X67xp-0004Mq-4Z for 17978@debbugs.gnu.org; Sat, 12 Jul 2014 20:48:25 -0400 Received: by mail-wg0-f46.google.com with SMTP id m15so2613244wgh.29 for <17978@debbugs.gnu.org>; Sat, 12 Jul 2014 17:48:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=fo2FM6YBhlBMe8nP28W93nvzrRYa30PBGsypEsLW+34=; b=AzcHE8KFuoRn1HIi/vP6wUraezer9HFxb3bWlUecuM5fKDxj1gDagVB6NouIMejge8 DrtTjM+Ji7w0VhfKgUd5XHc1PUhAC96hwkPnmKpbAKQTHfCaKQqP3hQkguk4+CGNOjMH kgtL4surxtF4Hdsgs6P0PpgD7nklFWy4io+YVTK7Vy5DP1+Mjmh0wPiG/m+uSHENgykb PRfsSap9t0H+DqQFuwZ4Zgw2quQxBQFZeZS8Xio2f+QD9XvxM+RqfOYFkTQMcTYaiu/o 9FAJT95Tb6PkmcEiSmp5jkK+DYgaAp1kA7EAldRYFF7vSBSawQcHnJ0BKDkogYp6fia0 Bkdw== X-Received: by 10.194.5.103 with SMTP id r7mr9350915wjr.41.1405212497661; Sat, 12 Jul 2014 17:48:17 -0700 (PDT) Received: from [10.8.0.26] (v-2-eu19-d3962-07.webazilla.com. [78.140.151.7]) by mx.google.com with ESMTPSA id fu7sm12558618wib.2.2014.07.12.17.48.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 12 Jul 2014 17:48:16 -0700 (PDT) Message-ID: <53C1D74D.5010709@yandex.ru> Date: Sun, 13 Jul 2014 03:48:13 +0300 From: Dmitry Gutov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#17978: 24.3; forward-paragraph broken with javadocs References: <864myoe66i.fsf@yandex.ru> <86zjggcp7s.fsf@yandex.ru> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17978 Cc: Alan Mackenzie , Justine Tunney , 17978@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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? From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 13 09:27:58 2014 Received: (at 17978) by debbugs.gnu.org; 13 Jul 2014 13:27:58 +0000 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 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 Received: (qmail 11035 invoked by uid 3782); 13 Jul 2014 13:27:49 -0000 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 Received: (qmail 4204 invoked by uid 1000); 13 Jul 2014 13:23:01 -0000 Date: Sun, 13 Jul 2014 13:23:01 +0000 To: Dmitry Gutov Subject: Re: bug#17978: 24.3; forward-paragraph broken with javadocs Message-ID: <20140713132301.GA4056@acm.acm> References: <864myoe66i.fsf@yandex.ru> <86zjggcp7s.fsf@yandex.ru> <53C1D74D.5010709@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17978 Cc: Justine Tunney , Stefan Monnier , 17978@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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). From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 10 03:23:36 2022 Received: (at 17978) by debbugs.gnu.org; 10 Feb 2022 08:23:36 +0000 Received: from localhost ([127.0.0.1]:53787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nI4jo-0001uH-Cx for submit@debbugs.gnu.org; Thu, 10 Feb 2022 03:23:36 -0500 Received: from quimby.gnus.org ([95.216.78.240]:45612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nI4jl-0001tt-47 for 17978@debbugs.gnu.org; Thu, 10 Feb 2022 03:23:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=NPeDtk2eQwGkLUnSTJJUIxey9iJqN2s7myEY5Cv5GFM=; b=ASA/YRrSO5iGSONd55NGxkho+z GW4GXIgAEreqJ5FLk2sac5HpHmbntSnHkhRtOQFMyfJrbEcTf+RxDGkzX0mZ1yoDhsXvT0JZbWSFU 76dF4/kbp7L78DOksWTt8uWcckzK0jr92t2m5mt1z4C8vSWyWs3ux33c41OZ1+3msAdI=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nI4ja-0004TY-RK; Thu, 10 Feb 2022 09:23:25 +0100 From: Lars Ingebrigtsen To: Alan Mackenzie Subject: Re: bug#17978: 24.3; forward-paragraph broken with javadocs References: <864myoe66i.fsf@yandex.ru> <86zjggcp7s.fsf@yandex.ru> <53C1D74D.5010709@yandex.ru> <20140713132301.GA4056@acm.acm> X-Now-Playing: Contriva's _If you had stayed..._: "presentiment" Date: Thu, 10 Feb 2022 09:23:22 +0100 In-Reply-To: <20140713132301.GA4056@acm.acm> (Alan Mackenzie's message of "Sun, 13 Jul 2014 13:23:01 +0000") Message-ID: <87y22j9ll1.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Alan Mackenzie writes: > 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 considere [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 17978 Cc: 17978@debbugs.gnu.org, Justine Tunney , Stefan Monnier , Dmitry Gutov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Alan Mackenzie writes: > 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. (I'm going through old bug reports that unfortunately weren't resolved at the time.) Skimming this bug report, it sounds like this is working as designed, so I'm therefore closing this bug report. If further work should be done here, please respond to the debbugs address and we'll reopen. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 10 03:23:40 2022 Received: (at control) by debbugs.gnu.org; 10 Feb 2022 08:23:41 +0000 Received: from localhost ([127.0.0.1]:53790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nI4js-0001uY-MU for submit@debbugs.gnu.org; Thu, 10 Feb 2022 03:23:40 -0500 Received: from quimby.gnus.org ([95.216.78.240]:45630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nI4jp-0001u7-OM for control@debbugs.gnu.org; Thu, 10 Feb 2022 03:23:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=u3e8UDf3T75Lo/TE4duz71Cc+v2PitsnkUtjxpY0clc=; b=uPlTYVC0LcmdMUhrueotTYNqQC 5X3IoAdW6xnLQFgyEIlDVySY/wu4m4bu2h28/U1R7PVBjOqgxPn/af7oYgMAUE4T5RvN+md6GR6bZ slPZDeQjyfq9e/knAu+8NCfbCAXfD3hDxptts9gnfEzKscjR6e1z4yLA9VgfEgGykd4Y=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nI4jh-0004Tf-Kp for control@debbugs.gnu.org; Thu, 10 Feb 2022 09:23:32 +0100 Date: Thu, 10 Feb 2022 09:23:29 +0100 Message-Id: <87wni39lku.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #17978 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 17978 wontfix close 17978 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 17978 wontfix close 17978 quit From unknown Wed Jun 18 00:26:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 10 Mar 2022 12:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator