From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: comment-add Date: Mon, 10 Dec 2007 20:41:16 +0100 Message-ID: <87sl2agwwz.fsf@member.fsf.org> References: <87ir5zwu4j.fsf@escher.local.home> <87prynum2x.fsf@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1197315775 26465 80.91.229.12 (10 Dec 2007 19:42:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Dec 2007 19:42:55 +0000 (UTC) Cc: dto@gnu.org, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 10 20:43:04 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J1oWs-000284-3A for ged-emacs-devel@m.gmane.org; Mon, 10 Dec 2007 20:43:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J1oWa-0002Ev-GN for ged-emacs-devel@m.gmane.org; Mon, 10 Dec 2007 14:42:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J1oVR-0001SC-HC for emacs-devel@gnu.org; Mon, 10 Dec 2007 14:41:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J1oVP-0001RT-VD for emacs-devel@gnu.org; Mon, 10 Dec 2007 14:41:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J1oVP-0001RQ-SC for emacs-devel@gnu.org; Mon, 10 Dec 2007 14:41:31 -0500 Original-Received: from out3.smtp.messagingengine.com ([66.111.4.27]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J1oVJ-0006CZ-1d; Mon, 10 Dec 2007 14:41:25 -0500 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 174DD76863; Mon, 10 Dec 2007 14:41:24 -0500 (EST) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Mon, 10 Dec 2007 14:41:24 -0500 X-Sasl-enc: s6b3XlGIxApIS8NzR9N5U2qZbBlO0CIABhJhUVMYgRKr 1197315683 Original-Received: from baldur (dslb-084-063-032-235.pools.arcor-ip.net [84.63.32.235]) by mail.messagingengine.com (Postfix) with ESMTP id 46BD4C877; Mon, 10 Dec 2007 14:41:20 -0500 (EST) Mail-Followup-To: rms@gnu.org, dto@gnu.org, emacs-devel@gnu.org In-Reply-To: (Richard Stallman's message of "Mon, 10 Dec 2007 10:19:18 -0500") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84971 Archived-At: Richard Stallman writes: > Maybe we could all be happy if we change the new behavior to > insert three semicolons followed by two spaces? > > I finally had time to look at this. The Lisp mode outline-regexp > matches three or more semicolons followed by one space followed by > something which is not space, tab or newline. > > Can you show me a precise test case in which comment-dwim produces > lines that match this? If I comment text that starts at column 0 (a top-level sexp) like this ;;; (defun foo () ;;; (do-this) ;;; (do-that) ;;; (do-another-thing)) with comment-style set to indent-or-triple it results in the first line being matched by outline-regexp. With comment-style set to indent, which inserts only two semicolons, this is not the case. I don't know if it's good to have commented top-level sexps as outline regexps. comment-dwim for text that doesn't start in line 0 seems to always produce comments that are not matched by outline-regexp, because the ;;; is followed by more than one space. Bye, Tassilo