From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MON KEY Newsgroups: gmane.emacs.devel Subject: Re: longlines-mode and visual-line-mode Date: Sun, 31 May 2009 20:53:40 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243817632 12441 80.91.229.12 (1 Jun 2009 00:53:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Jun 2009 00:53:52 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 01 02:53:49 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 1MAvme-0005nO-Jc for ged-emacs-devel@m.gmane.org; Mon, 01 Jun 2009 02:53:48 +0200 Original-Received: from localhost ([127.0.0.1]:57519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MAvmd-00046Z-V6 for ged-emacs-devel@m.gmane.org; Sun, 31 May 2009 20:53:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MAvmZ-00045Q-MG for emacs-devel@gnu.org; Sun, 31 May 2009 20:53:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MAvmZ-00044z-4g for emacs-devel@gnu.org; Sun, 31 May 2009 20:53:43 -0400 Original-Received: from [199.232.76.173] (port=49947 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MAvmY-00044v-VK for emacs-devel@gnu.org; Sun, 31 May 2009 20:53:43 -0400 Original-Received: from yx-out-1718.google.com ([74.125.44.158]:48180) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MAvmY-0000AC-D5 for emacs-devel@gnu.org; Sun, 31 May 2009 20:53:42 -0400 Original-Received: by yx-out-1718.google.com with SMTP id 3so3784197yxi.66 for ; Sun, 31 May 2009 17:53:41 -0700 (PDT) Original-Received: by 10.151.122.13 with SMTP id z13mr10398481ybm.140.1243817620982; Sun, 31 May 2009 17:53:40 -0700 (PDT) X-Google-Sender-Auth: 7c019c0ab2abbed6 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:111227 Archived-At: Was surprised to learn today of a new mode to rival visual-line-mode... Lone Lines Mode - presumably for Texans! `emacs-23.0.94/info/emacs-3 @line 1611 column 28 there is a typo: ``Unlike Visual Line mode, Lone Lines mode breaks long lines at the fill'' should be ``Long Lines'' - I hope :P see diff below --- >> I also think longlines should be marked obsolete for 23.1. > I'm planning to do this post 23.1. How does visual-lines-mode mirror longlines-mode functionality w/re softlines at fill-column? ` >From what I can gather from the docs visual-line-mode and word-wrap are wrapped at the fringe whereas longlines mode can _line wrap_ at an arbitrary buffer or mode local fill column setting. If indeed visual-line-mode and longlines-mode offer reasonably identical behavior, how does one duplicate the longlines effect with visual-lines-mode? Neither the docstrings or the manual are clear about this vis a vis filling when visual-lines-mode is non-nil. FWIW, I have come to rely on longlines mode for certain types of functionality and have also managed to kludge together more than one function to accomodate it's idiosyncrasies. While I have no objection to abandoning longlines-mode this should not be at the loss of the line-wrapping it has to offer. (info "(emacs)Visual Line Mode") "Here, each long logical line is divided into two or more screen lines, like in ordinary line continuation. However, Emacs attempts to wrap the line at word boundaries near the right window edge." Per `longlines-mode' docstring: "In Long Lines mode, long lines are wrapped if they extend beyond `fill-column'. The soft newlines used for line wrapping will not show up when the text is yanked or saved to disk. (info (emacs)Continuation Lines") "This is called "line wrapping" or "continuation", and the long logical line is called a "continued line". ---------------------------------------------------------------- *** /home/sp/local-emacs/emacs-23.0.94/info/mm --- /home/sp/local-emacs/emacs-23.0.94/info/emacs-3 *************** *** 1608,1614 **** "soft newlines" as you type (*note Hard and Soft Newlines::). These soft newlines won't show up when you save the buffer into a file, or when you copy the text into the kill ring, clipboard, or a register. ! Unlike Visual Line mode, Long Lines mode breaks long lines at the fill column (*note Fill Commands::), rather than the right window edge. To enable Long Lines mode, type `M-x longlines-mode'. If the text is full of long lines, this also immediately "wraps" them all. --- 1608,1614 ---- "soft newlines" as you type (*note Hard and Soft Newlines::). These soft newlines won't show up when you save the buffer into a file, or when you copy the text into the kill ring, clipboard, or a register. ! Unlike Visual Line mode, Lone Lines mode breaks long lines at the fill column (*note Fill Commands::), rather than the right window edge. To enable Long Lines mode, type `M-x longlines-mode'. If the text is full of long lines, this also immediately "wraps" them all. --------------------------------------------------------------------