From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Allan Gottlieb Newsgroups: gmane.emacs.help Subject: Re: trouble indenting looooong lines with visual-line-mode Date: Thu, 03 Sep 2009 14:09:42 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1252001427 9366 80.91.229.12 (3 Sep 2009 18:10:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Sep 2009 18:10:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 03 20:10:20 2009 Return-path: Envelope-to: geh-help-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 1MjGlH-0005iU-9T for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Sep 2009 20:10:19 +0200 Original-Received: from localhost ([127.0.0.1]:50237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjGlG-0000P6-5B for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Sep 2009 14:10:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MjGkt-0000NA-1y for help-gnu-emacs@gnu.org; Thu, 03 Sep 2009 14:09:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MjGko-0000My-F6 for help-gnu-emacs@gnu.org; Thu, 03 Sep 2009 14:09:54 -0400 Original-Received: from [199.232.76.173] (port=44376 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjGko-0000Mv-9q for help-gnu-emacs@gnu.org; Thu, 03 Sep 2009 14:09:50 -0400 Original-Received: from smtp.cs.nyu.edu ([128.122.80.33]:53300) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MjGko-00086F-03 for help-gnu-emacs@gnu.org; Thu, 03 Sep 2009 14:09:50 -0400 Original-Received: from ajglap.localdomain (ool-4578da1c.dyn.optonline.net [69.120.218.28]) (authenticated bits=0) by smtp.cs.nyu.edu (8.14.3/8.13.8) with ESMTP id n83I9mvF003814 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 3 Sep 2009 14:09:48 -0400 (EDT) Original-Received: by ajglap.localdomain (Postfix, from userid 1502) id F3AFA19D922; Thu, 3 Sep 2009 14:09:42 -0400 (EDT) In-Reply-To: (Xah Lee's message of "Wed, 02 Sep 2009 09:16:58 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67815 Archived-At: At Wed, 02 Sep 2009 09:16:58 -0700 (PDT) Xah Lee wrote: > On Sep 1, 8:21 pm, Allan Gottlieb wrote: >> (I am using emacs 23.1) >> Start with emacs -Q and a buffer in fundamental mode >> >> Consider a line wider than the frame, for example >> >> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxx >> >> which exceeds an 80 column frame. >> Now assume you have a short line say >> yyyy >> followed by the above long line, i.e. >> yyyy >> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxx >> >> So far so good. Now indent the long line with say one space. >> If visual-line-mode is OFF, I see what I expect, the long line is >> preceded by one space. >> >> But with visual-line-mode ON, a blank line appears on the screen between >> the short and long lines, i.e. the long line (with only one word) was >> wrapped. >> This behavior seems wrong. I am getting burned in the following case >> among others with html >> >>
    >>
  1. >> > href="a-looong-url-that-naturally-contains-no-blanks"> >> go here >> >> >> When the looog-url exceeds the line length a blank line appears >> after the > >> I realize the blank line is not in the file so the browser is not >> affected, but I find a plus of html to be that it reads well in emacs >> even when not formatted (by say w3m). >> >> Am I correct in viewing this as a bug? If so I will file a bug report. > > it's not a bug. It's a natural behavior of smart word wrapping. Try > that in any word processor, you see the same behavior. False. I just now tried openoffice (writer) and it gives what I expected: the long line of x's preceded by one blank. allan