From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: Re: longlines-mode and comments Date: Thu, 29 Nov 2007 11:34:15 +0100 Message-ID: <474E95A7.4090807@gmx.at> References: <3E823B74-5830-445A-8DEE-51A4AB4AFB44@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196332648 26289 80.91.229.12 (29 Nov 2007 10:37:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2007 10:37:28 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: David Reitter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 29 11:37:37 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 1Ixgm0-0004Uq-5j for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Nov 2007 11:37:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ixglk-0001oK-L5 for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Nov 2007 05:37:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IxgkC-0000Hy-Tu for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2007 05:35:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IxgkB-0000FT-2X for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2007 05:35:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IxgkA-0000FF-2G for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2007 05:35:42 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Ixgk9-0005US-Ly for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2007 05:35:42 -0500 Original-Received: (qmail invoked by alias); 29 Nov 2007 10:35:40 -0000 Original-Received: from N725P030.adsl.highway.telekom.at (EHLO [62.47.34.158]) [62.47.34.158] by mail.gmx.net (mp007) with SMTP; 29 Nov 2007 11:35:40 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/FJwsxC0PFA5C4vNg9OeRfGctp07qAjUeaeKt1rL UYdJHRth4/pcX1 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <3E823B74-5830-445A-8DEE-51A4AB4AFB44@gmail.com> X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:17092 Archived-At: > emacs-lisp-mode, or latex-mode (AUCTeX) > > Turn on longlines-mode. > > Paste a long line (paragraph in the long-lines sense) into the buffer, > which should be wrapped correctly and displayed as a paragraph of text. > > Select the entire paragraph and call `comment-region'. > > Result: The comment mark (;; or % or whatever) is placed all over the > lines, and only the first line has it in the right place, i.e. at the > beginning. > > (Also, when `longlines-wrap-follows-window-size' is turned on, then the > line/paragraph is reformatted.) > > The expected (correct) behavior would be to add the comment command at > the beginning of the line in the file, i.e. at the beginning of the > paragraph, that is, after each hard return. > > Note that the other expected thing there is that the syntax > highlighting (font-lock) works, i.e. that the whole comment is shown > using the right face. This, IMHO, is a second bug. It's hardly trivial. Have a look at the thread starting with: http://lists.gnu.org/archive/html/emacs-devel/2006-11/msg00634.html