From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: longlines-mode and visual-line-mode Date: Mon, 01 Jun 2009 02:03:46 +0900 Message-ID: <87hbz1kxvx.fsf@catnip.gol.com> References: <7b501d5c0905310926l8d441cdqfdf14f8a1b3647f@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1243789519 8034 80.91.229.12 (31 May 2009 17:05:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 May 2009 17:05:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 31 19:05:16 2009 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 1MAoTE-0007of-26 for ged-emacs-devel@m.gmane.org; Sun, 31 May 2009 19:05:16 +0200 Original-Received: from localhost ([127.0.0.1]:44889 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MAoTD-00011a-CP for ged-emacs-devel@m.gmane.org; Sun, 31 May 2009 13:05:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MAoT8-00010j-97 for emacs-devel@gnu.org; Sun, 31 May 2009 13:05:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MAoT2-0000zu-T3 for emacs-devel@gnu.org; Sun, 31 May 2009 13:05:09 -0400 Original-Received: from [199.232.76.173] (port=40430 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MAoT2-0000zr-NV for emacs-devel@gnu.org; Sun, 31 May 2009 13:05:04 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:33933 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MAoT2-0000jr-1m for emacs-devel@gnu.org; Sun, 31 May 2009 13:05:04 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1MAoT0-0001sC-Vb for emacs-devel@gnu.org; Sun, 31 May 2009 17:05:02 +0000 Original-Received: from 218.231.177.55.eo.eaccess.ne.jp ([218.231.177.55]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 31 May 2009 17:05:02 +0000 Original-Received: from miles by 218.231.177.55.eo.eaccess.ne.jp with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 31 May 2009 17:05:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 218.231.177.55.eo.eaccess.ne.jp System-Type: x86_64-unknown-linux-gnu Cancel-Lock: sha1:Z1CLtK8yZ8twyR2i5luEsEq6dTU= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:111219 Archived-At: Deniz Dogan writes: >> After briefly trying these two modes, I haven't found any significant >> difference between them. It looks like longlines has all the features >> for visual-line-mode. Is my impression correct? Thank you. > > This is not the case, as I understand it. For an example, fill a > buffer with a very long line in longlines-mode and resize the window. > Then turn it off and switch to visual-line-mode and resize the window. > Notice the difference! visual-line-mode turns on word-wrap (a > variable) which is what gives this differente behaviour. > > IIRC, longlines-mode is/was a hack which was introduced due to the > lack of something like word-wrap in earlier versions of Emacs. Also of course, because longlines-mode _modifies_ the buffer to do it's thing, it's more dangerous, far less efficient (think of a large buffer...), and far more likely to interact in unforseen (and likely bad) ways with various modes... -Miles -- White, adj. and n. Black.