From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.bugs Subject: Re: longlines-mode and comments Date: Fri, 30 Nov 2007 07:22:30 +0000 Message-ID: References: <3E823B74-5830-445A-8DEE-51A4AB4AFB44@gmail.com> <474E95A7.4090807@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196407384 32552 80.91.229.12 (30 Nov 2007 07:23:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2007 07:23:04 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, "Kim F. Storm" To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 30 08:23:12 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 1Iy0DJ-0008Li-B1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Nov 2007 08:23:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iy0D3-0007cj-8i for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Nov 2007 02:22:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iy0Cw-0007cT-Ub for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2007 02:22:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iy0Cv-0007bg-Fo for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2007 02:22:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iy0Cv-0007bd-AE for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2007 02:22:41 -0500 Original-Received: from mu-out-0910.google.com ([209.85.134.184]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iy0Cv-00065L-26 for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2007 02:22:41 -0500 Original-Received: by mu-out-0910.google.com with SMTP id i2so3638431mue for ; Thu, 29 Nov 2007 23:22:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=w1YkKfqNrNgZWPKjv2D5EXT4JCjxQTLwqb88ZIF5TAI=; b=jLn8OC1WPsAaEn9R+qbQM8SOxn1/WC/wISuvQBeIE8ylHtMXn8EgKBL7sZbozLc3JLTJGtDfZNZAQk/YQs7Kqrq3Cx0Kz6Z/9KHklnS/ONiAtP9aGPX+KmsrYTJFGCWFJkacjAp3piOB2FADnu2iaJmGtHZzmTr0hUbDXXiLS+Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=hW0qvUdZx94LjjFhD+OuFl1Hy5Wu7yItPzuI6ZjlCP/P0Gj4+Wx6PJPoWINnPcUdbRY9Zia0dJnNNq/aZW3+c4Pu4DVwt7xQi4xFXe4mKMOWUhom73gXiuBA7AFE3YHD5yMVTR2KYcOk5RwSKDPAwF1deehiRxBqqV2VdM8/hi8= Original-Received: by 10.82.105.13 with SMTP id d13mr6329098buc.1196407355117; Thu, 29 Nov 2007 23:22:35 -0800 (PST) Original-Received: from scarlett.lan ( [86.151.118.16]) by mx.google.com with ESMTPS id z37sm6114745ikz.2007.11.29.23.22.33 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 29 Nov 2007 23:22:34 -0800 (PST) In-Reply-To: <474E95A7.4090807@gmx.at> X-Mailer: Apple Mail (2.915) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:17094 Archived-At: On 29 Nov 2007, at 10:34, martin rudalics wrote: >> (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 Sure, one can fix longlines to deal with further eventualities. But each of them is going to be a further hack, because code everywhere assumes that a line in the buffer is a line in the file, and everything else would be a lot more complicated. Longlines mode has a number of shortcomings that can't be addressed within the current architecture: for instance it looks rather bad with variable-width fonts and with different font sizes in the buffer, for instance when editing long LaTeX documents using AUCTeX. The alternative is display-time word wrap (DTWW), and Kim Storm has developed a patch that was supposed to be applied after the 22.1 release: http://www.mail-archive.com/emacs-pretest-bug@gnu.org/msg03729.html There was a good discussion in 2005 with the same conclusion: http://www.nabble.com/flyspell-+-longlines:-hang-wait-t448677.html I wish this could be updated and applied. Every modern text editor has this. It is really needed when you want to write text and not code on non-TTY displays.