From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.emacs.help Subject: Re: Using longlines-mode on part of a buffer Date: Fri, 30 Oct 2009 04:43:51 +0100 Organization: Decebal Computing Message-ID: <87k4ydpmvc.fsf@Traian.DecebalComp> References: <87ocnucz4w.fsf@Traian.DecebalComp> <873a56cl2t.fsf@Traian.DecebalComp> <87aaz98sk2.fsf@kzsu.stanford.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1256877688 5095 80.91.229.12 (30 Oct 2009 04:41:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Oct 2009 04:41:28 +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 05:41:21 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 1N3jIf-00062U-AP for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Oct 2009 05:41:21 +0100 Original-Received: from localhost ([127.0.0.1]:42005 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3jIe-0001nW-IJ for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Oct 2009 00:41:20 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Original-Newsgroups: gnu.emacs.help X-Homepage: http://www.decebal.nl/ User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) Cancel-Lock: sha1:sWQc0LM0jmPbGRE5me2v3EorYLE= Original-Lines: 29 Original-NNTP-Posting-Host: 84.53.123.169 Original-X-Trace: 1256874232 news.xs4all.nl 83237 decebal/[::ffff:84.53.123.169]:27875 Original-X-Complaints-To: abuse@xs4all.nl Original-Xref: news.stanford.edu gnu.emacs.help:174266 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:69349 Archived-At: Joseph Brenner writes: >> 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. Tables look like: |-------+---------+-------+-------------| | | | | | |-------+---------+-------+-------------| | | | | | |-------+---------+-------+-------------| So to keep it simple it could be done so that lines that start with a '|', or where the first non-white-space character is a '|' the line is not wrapped. Any pointers how to create this? -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof