From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.bugs Subject: nroff-mode .\" comment filling Date: Sun, 23 Sep 2007 11:01:17 +1000 Message-ID: <87fy1619gi.fsf@blah.blah> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190509350 10839 80.91.229.12 (23 Sep 2007 01:02:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 23 Sep 2007 01:02:30 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 23 03:02:24 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IZFrb-0004sh-I4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Sep 2007 03:02:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZFrZ-0006IB-5z for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2007 21:02:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IZFrX-0006GG-5g for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2007 21:02:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IZFrV-0006FQ-0E for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2007 21:02:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZFrU-0006FN-QU for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2007 21:02:16 -0400 Original-Received: from mailout2-1.pacific.net.au ([61.8.2.224] helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IZFrT-0005Hp-Pm for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2007 21:02:16 -0400 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout2.pacific.net.au (Postfix) with ESMTP id 0A5061099B8 for ; Sun, 23 Sep 2007 11:01:53 +1000 (EST) Original-Received: from blah.blah (ppp2C84.dyn.pacific.net.au [61.8.44.132]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 7CB5D8C02 for ; Sun, 23 Sep 2007 11:02:08 +1000 (EST) Original-Received: from gg by blah.blah with local (Exim 4.67) (envelope-from ) id 1IZFqX-0001Cr-7f for bug-gnu-emacs@gnu.org; Sun, 23 Sep 2007 11:01:17 +1000 User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16600 Archived-At: I've had a bit of trouble trying to get .\" recognised as a comment prefix when filling in nroff mode. In simplified form, emacs -Q (progn (switch-to-buffer "foo") (nroff-mode) (setq comment-start-skip "\\(^[.]\\)?[\\]\"[ \t]*") (setq fill-column 20) (insert ".\\\" this is a line of text more then twenty chars\n") (goto-char (point-min))) and press M-q gives .\" this is a line \" of text more \" then twenty \" chars where I hoped it would be .\" instead of \" on the new lines. A .\" like this is quite common, in fact I think it's usual in man pages. I wondered if comment-start had to be set, but adding (setq comment-start ".\\\"") into the above doesn't change the result. As I mentioned on the sources list I nosed around a bit and was suspicious that comment-search-forward seems to choose \" even when point is right on a .\" Both of course match, but I think I would have expected the first match of comment-start-skip on a line to be what's used. In GNU Emacs 22.1.1 (i486-pc-linux-gnu, GTK+ Version 2.10.13) of 2007-07-07 on raven, modified by Debian configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_AU locale-coding-system: iso-8859-1 default-enable-multibyte-characters: t