From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Werner LEMBERG Newsgroups: gmane.emacs.devel Subject: problem with comment-start Date: Fri, 17 Sep 2004 16:33:55 +0200 (CEST) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <20040917.163355.200397228.wl@gnu.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1095493544 8167 80.91.229.6 (18 Sep 2004 07:45:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Sep 2004 07:45:44 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 18 09:45:34 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C8ZuW-0001Wu-00 for ; Sat, 18 Sep 2004 09:45:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C8a0H-0004Lu-LF for ged-emacs-devel@m.gmane.org; Sat, 18 Sep 2004 03:51:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C8ZzM-00048f-SH for emacs-devel@gnu.org; Sat, 18 Sep 2004 03:50:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C8ZzE-00047F-Bp for emacs-devel@gnu.org; Sat, 18 Sep 2004 03:50:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C8ZzE-00046B-2h for emacs-devel@gnu.org; Sat, 18 Sep 2004 03:50:24 -0400 Original-Received: from [212.227.126.185] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C8ZtG-0006R2-Bc for emacs-devel@gnu.org; Sat, 18 Sep 2004 03:44:14 -0400 Original-Received: from [212.227.126.209] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1C8ZtF-0001wP-00 for emacs-devel@gnu.org; Sat, 18 Sep 2004 09:44:13 +0200 Original-Received: from [80.129.78.207] (helo=rigel.site) by mrelayng.kundenserver.de with asmtp (TLSv1:EDH-RSA-DES-CBC3-SHA:168) (Exim 3.35 #1) id 1C8ZtE-0006Mr-00 for emacs-devel@gnu.org; Sat, 18 Sep 2004 09:44:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by rigel.site (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id i8HEXt14011872 for ; Fri, 17 Sep 2004 16:33:55 +0200 Original-To: emacs-devel@gnu.org X-Mailer: Mew version 4.0.66 on Emacs 21.3.50.1 / Mule 5.0 (SAKAKI) X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:2dc398bc694a1e60948148ba0a42c0da 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:27217 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27217 [emacs CVS 2004-08-22] In plain text mode, setting the variable `comment-start' to, say, ">", a long line like This is a test with comment-start which starts on the >right side<, and which causes strange indentation looks like this This is a test with comment-start which starts on the >right side<, >and which >causes >strange >indentation after pressing M-q. Can this be improved? Right now these suggestions come to my mind: . If `>' appears in column 12 or greater, don't treat it as comment-start. This ad-hoc value should be customizable. . If `>' appears in column 1-11, test the previous and next line whether we also have `>' at the same position. . Provide a new command within emacs, say, C-M-q, which is the same as M-q in text mode, and which ignores `>'. BTW, there isn't a single remark in the documentation of `fill-paragraph' that it is influenced by the `comment-start' variable. Werner