From gg@zip.com.au Tue Aug 19 15:31:24 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.9 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 19 Aug 2008 22:31:25 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7JMVK72004471 for ; Tue, 19 Aug 2008 15:31:22 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVZjT-0006ku-GK for bug-gnu-emacs@gnu.org; Tue, 19 Aug 2008 18:31:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVZjQ-0006h5-GT for bug-gnu-emacs@gnu.org; Tue, 19 Aug 2008 18:31:19 -0400 Received: from [199.232.76.173] (port=35070 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVZjQ-0006gn-Ah for bug-gnu-emacs@gnu.org; Tue, 19 Aug 2008 18:31:16 -0400 Received: from mailout2-4.pacific.net.au ([61.8.2.227]:45859 helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KVZjP-0002LC-DT for bug-gnu-emacs@gnu.org; Tue, 19 Aug 2008 18:31:16 -0400 Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout2.pacific.net.au (Postfix) with ESMTP id F1D70E7961 for ; Wed, 20 Aug 2008 08:31:05 +1000 (EST) Received: from blah.blah (ppp23B2.dyn.pacific.net.au [61.8.35.178]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id 3F6DD27412 for ; Wed, 20 Aug 2008 08:31:01 +1000 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1KVZis-0000pf-0s for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2008 08:30:42 +1000 From: Kevin Ryde To: bug-gnu-emacs@gnu.org Subject: nroff-mode auto-fill-mode not on directives Date: Wed, 20 Aug 2008 08:30:41 +1000 Message-ID: <878wustz72.fsf@blah.blah> User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) --=-=-= In nroff-mode it'd be good if auto-fill-mode didn't fill when you're entering a long directive line like .IP some long line going past your normal fill width ... Almost always *roff directives have to be a single line. I struck the problem with a groff .URL with a long url doubled-up to both display literally and be clickable in -Thtml. I've been using the regexp below, which suppresses auto-fill on .IP and the like, but continues to auto-fill the comment directives (no change) .\" traditional .\# groff extension ''' another traditional, apparently And of course non-directive lines ("." or "'") are still auto-filled (either ordinary text, or comments starting \" and \#). 2008-08-18 Kevin Ryde * textmodes/nroff-mode.el (nroff-mode): Set auto-fill-inhibit-regexp so as not to auto-fill on directive lines, other than comment directives. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=nroff-mode.el.auto-fill.diff *** nroff-mode.el 08 May 2008 11:29:50 +1000 1.40 --- nroff-mode.el 18 Aug 2008 20:29:55 +1000 *************** *** 144,149 **** --- 144,160 ---- (concat "[.']\\|" paragraph-start)) (set (make-local-variable 'paragraph-separate) (concat "[.']\\|" paragraph-separate)) + + ;; Don't auto-fill directive lines starting . or ' since they normally + ;; have to be one line. But do auto-fill comments .\" .\# and ''' + ;; + ;; Comment directives (those starting . or ') are [.'][ \t]*\\[#"] or a + ;; ''', and this regexp is everything except those. So [.'] followed by + ;; not backslash and not ' or followed by backslash but then not # or " + ;; + (set (make-local-variable 'auto-fill-inhibit-regexp) + "[.'][ \t]*\\([^ \t\\']\\|\\\\[^#\"]\\)") + ;; comment syntax added by mit-erl!gildea 18 Apr 86 (set (make-local-variable 'comment-start) "\\\" ") (set (make-local-variable 'comment-start-skip) "\\\\[\"#][ \t]*") --=-=-= -- The Copenhagen Interpretation elucidated for the layman: You can't be sure until you see for yourself. --=-=-=-- From werner.lemberg@onlinehome.de Tue Aug 19 21:01:37 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.2 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 20 Aug 2008 04:01:37 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7K41YuH011176 for ; Tue, 19 Aug 2008 21:01:35 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVet3-0004z2-QP for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2008 00:01:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVet2-0004yq-Vy for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2008 00:01:33 -0400 Received: from [199.232.76.173] (port=58610 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVet2-0004yn-RZ for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2008 00:01:32 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:50145) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KVet2-00080x-9R for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2008 00:01:32 -0400 Received: from localhost (p5B249C4B.dip0.t-ipconnect.de [91.36.156.75]) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis) id 0MKwh2-1KVesz3A2P-0007Sj; Wed, 20 Aug 2008 06:01:31 +0200 Date: Wed, 20 Aug 2008 06:01:53 +0200 (CEST) Message-Id: <20080820.060153.160084256.wl@gnu.org> To: user42@zip.com.au, 744@debbugs.gnu.org Cc: bug-gnu-emacs@gnu.org Subject: Re: bug#744: nroff-mode auto-fill-mode not on directives From: Werner LEMBERG In-Reply-To: <878wustz72.fsf@blah.blah> References: <878wustz72.fsf@blah.blah> X-Mailer: Mew version 5.2.53 on Emacs 23.0.50.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX18qudwvcJmOyJKAQe9vxhTp77FlmbFU3m/+3hD fZxaXZZJ0E1nhnWSlQklQhbdWNByzXdEWeVeeK0K+oapiZQ54J u1pINCe5IzuGZAhtklG2w== X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) > I've been using the regexp below, which suppresses auto-fill on .IP > and the like, but continues to auto-fill the comment directives (no > change) > > .\" traditional > .\# groff extension The real groff extension is that `\#' at the beginning of a line completely removes it: This is a \# comment test. -> This is a test. Auto-fill would be possible for .IP and friends too, provided you end the line with `\'. .IP This is a long title \ continued on the next line. Werner From cyd@stupidchicken.com Wed Aug 20 15:23:50 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.5 required=4.0 tests=AWL,BAYES_00, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 744-done) by emacsbugs.donarmstrong.com; 20 Aug 2008 22:23:50 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7KMNljp004075 for <744-done@emacsbugs.donarmstrong.com>; Wed, 20 Aug 2008 15:23:48 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 1D53657E32F; Wed, 20 Aug 2008 18:25:01 -0400 (EDT) To: Kevin Ryde Cc: 744-done@debbugs.gnu.org Subject: Re: nroff-mode auto-fill-mode not on directives From: Chong Yidong Date: Wed, 20 Aug 2008 18:25:01 -0400 Message-ID: <87r68jiate.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > In nroff-mode it'd be good if auto-fill-mode didn't fill when you're > entering a long directive line Thanks. I've checked your patch in. From gg@zip.com.au Fri Aug 22 17:30:14 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 23 Aug 2008 00:30:15 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7N0UAjS026223 for ; Fri, 22 Aug 2008 17:30:12 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWh18-0000EG-7L for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2008 20:30:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWh16-0000CI-Ud for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2008 20:30:09 -0400 Received: from [199.232.76.173] (port=52939 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWh16-0000Bx-ON for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2008 20:30:08 -0400 Received: from mailout2-5.pacific.net.au ([61.8.2.228]:40815 helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KWh10-0004Q2-Cw; Fri, 22 Aug 2008 20:30:02 -0400 Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout2.pacific.net.au (Postfix) with ESMTP id 21D74DCAA5; Sat, 23 Aug 2008 10:29:57 +1000 (EST) Received: from blah.blah (ppp2D58.dyn.pacific.net.au [61.8.45.88]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id 9F92027406; Sat, 23 Aug 2008 10:29:56 +1000 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1KWh0v-0003Ds-I1; Sat, 23 Aug 2008 10:29:57 +1000 From: Kevin Ryde To: Werner LEMBERG Cc: bug-gnu-emacs@gnu.org Subject: Re: bug#744: nroff-mode auto-fill-mode not on directives References: <878wustz72.fsf@blah.blah> <20080820.060153.160084256.wl@gnu.org> Date: Sat, 23 Aug 2008 10:29:57 +1000 In-Reply-To: <20080820.060153.160084256.wl@gnu.org> (Werner LEMBERG's message of "Wed, 20 Aug 2008 06:01:53 +0200 (CEST)") Message-ID: <87r68g7euy.fsf@blah.blah> User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Werner LEMBERG writes: > > The real groff extension is that `\#' at the beginning of a line > completely removes it: Ah yes, so I guess .\# ends up as another flavour of empty directive. > .IP This is a long title \ > continued on the next line. I guess you'd definitely want that for very long lines. Might be a bit scary doing it all the time though :-). makefile-mode has a backslashing fill-paragraph for long variables lines, maybe something similar could be worked in for a fill of a long directive line ... From werner.lemberg@onlinehome.de Fri Aug 22 22:00:50 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.8 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 23 Aug 2008 05:00:50 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7N50lcM015670 for ; Fri, 22 Aug 2008 22:00:48 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWlF1-0007vC-3V for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2008 01:00:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWlEw-0007sQ-Tc for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2008 01:00:46 -0400 Received: from [199.232.76.173] (port=55509 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWlEw-0007s9-JR for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2008 01:00:42 -0400 Received: from moutng.kundenserver.de ([212.227.126.183]:53443) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KWlEv-0003tl-Vu for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2008 01:00:42 -0400 Received: from localhost (p5B24B403.dip0.t-ipconnect.de [91.36.180.3]) by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis) id 0ML21M-1KWlEg2NF2-0008DN; Sat, 23 Aug 2008 07:00:27 +0200 Date: Sat, 23 Aug 2008 07:00:25 +0200 (CEST) Message-Id: <20080823.070025.02330953.wl@gnu.org> To: user42@zip.com.au Cc: bug-gnu-emacs@gnu.org Subject: Re: bug#744: nroff-mode auto-fill-mode not on directives From: Werner LEMBERG In-Reply-To: <87r68g7euy.fsf@blah.blah> References: <878wustz72.fsf@blah.blah> <20080820.060153.160084256.wl@gnu.org> <87r68g7euy.fsf@blah.blah> X-Mailer: Mew version 5.2.53 on Emacs 23.0.50.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX181qb5DJe8YD+z3UGjer46UO0IaEdjVPax5D5t Wy39xC2g3Uyh+Iv95DosOtFKp0szLo2CfKwCQHw2IEGLvOfVa9 0b2NAyIAbM/3ABM0zjaxw== X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) > > The real groff extension is that `\#' at the beginning of a line > > completely removes it: > > Ah yes, so I guess .\# ends up as another flavour of empty > directive. Yep. No guessing necessary :-) > > .IP This is a long title \ > > continued on the next line. > > I guess you'd definitely want that for very long lines. Might be a bit > scary doing it all the time though :-). Scary? Why do you think so? > makefile-mode has a backslashing fill-paragraph for long variables > lines, maybe something similar could be worked in for a fill of a > long directive line ... If you can implement this, please do. BTW, to check whether nroff-mode properly supports groff, you might have a look at, say, `an-old.tmac'. Werner From unknown Wed Jun 18 23:08:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Sat, 20 Sep 2008 14:24:07 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator