From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joseph Brenner Newsgroups: gmane.emacs.help Subject: Re: Using longlines-mode on part of a buffer Date: Thu, 29 Oct 2009 20:33:01 -0700 Message-ID: <87aaz98sk2.fsf@kzsu.stanford.edu> References: <87ocnucz4w.fsf@Traian.DecebalComp> <873a56cl2t.fsf@Traian.DecebalComp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1256874100 30703 80.91.229.12 (30 Oct 2009 03:41:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Oct 2009 03:41:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 30 04:41:34 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 1N3iMm-0004wd-Q5 for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Oct 2009 04:41:33 +0100 Original-Received: from localhost ([127.0.0.1]:37402 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3iMm-0004TK-Br for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Oct 2009 23:41:32 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.rawbandwidth!news.posted.rawbandwidth.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 29 Oct 2009 22:32:21 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:IVxomQNvEcXLbWUAXj2zpk6eM6E= Original-Lines: 38 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 198.144.208.84 Original-X-Trace: sv3-GOJz7jUDF/x611N1Xyz6U2cRhEOcYC09DdXIe8FsE4TlI9FWTzSRvXWf7Grih7Mu7a2AQ1cSubvy421!T4xvk4SCwsx5T9Vi+Zi3I/dPbNR+T9o3gd6MvZmaUXs+luDsPNM62P8FLiOvFZJJC9LxFrGi/kU= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Original-Xref: news.stanford.edu gnu.emacs.help:174265 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:69348 Archived-At: Cecil Westerhof writes: > tomas@tuxteam.de writes: > >>> I find longlines-mode very usefull. But sometimes I only want to use it >>> on part of a buffer. Is this possible, or do I want to much? >> >> Note that AFAIK longlines-mode is in the process of being replaced by >> visual-lines-mode (which version of Emacs do you have?). But this >> doesn't answer your question, of course. > > On the system where this editing takes place: GNU Emacs 22.3.1. > This does not have this command. I could look if it is possible to > update it. > > By the way the command is 'visual-line-mode' instead off > 'visual-lines-mode'. I think 'visual-lines-mode' would be better. > > >> Depending on what you want to do, Giorgios's proposal (narrowing) might >> do the trick for you (you won't see the "outer" part of the text when >> narrowed, though). >> >> What exactly are you trying to achieve? > > In the org-document I edit I use tables. I do not want those to be > wrapped, because that does look bad. And in longlines-mode it went > several times wrong. And when editing the 'normal' text it would be > nice to see the unwrapped tables. > By the way I prefer longlines-mode, because this wraps at fill-column > instead of at the right window edge. I'm not familiar with tables in org-documents, but if they're delimeted in a way that you could use regular expressions to detect the boundaries, hypothetically you could use a multimode (like mmm-mode) to automatically enable longlines-mode on the tabular part only.