From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Line breaks in org-mode having version control in mind Date: Mon, 04 Nov 2013 02:35:42 +0530 Message-ID: <87a9hlxkk9.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vd4q3-0006AR-CJ for Emacs-orgmode@gnu.org; Sun, 03 Nov 2013 16:04:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vd4px-0004MT-V4 for Emacs-orgmode@gnu.org; Sun, 03 Nov 2013 16:04:02 -0500 Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]:43490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vd4px-0004ME-NG for Emacs-orgmode@gnu.org; Sun, 03 Nov 2013 16:03:57 -0500 Received: by mail-pa0-f54.google.com with SMTP id fa1so6207716pad.13 for ; Sun, 03 Nov 2013 13:03:56 -0800 (PST) In-Reply-To: (Dror Atariah's message of "Sun, 3 Nov 2013 21:28:09 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Dror Atariah Cc: Emacs-orgmode@gnu.org If you have really l...o...n...g lines you need to turn on some sort of caching so that Emacs display doesn't start sucking. I believe the variable you need is this. Just double check. I use development version of Emacs so the details could differ for your specific version. cache-long-scans Variable: Non-nil means that Emacs should use caches in attempt to speedup buffer scans. ** `cache-long-line-scans' has been renamed to `cache-long-scans' because it affects caching of paragraph scanning results as well. ---------------------------------------------------------------- Org files in sense paragraph oriented and not line-oriented. There was some work on Org Merge Driver. (Search for it in the list). I had also pointed out this LibreOffice GSoC project earlier - http://gsoc-tzvetelina.blogspot.in/ - the ideas discussed therein could be of some relevance to building a Org merge driver. Dror Atariah writes: > I am trying to extend my usage of org, and one of the things I want to > integrate is version controlling of my org files. This is obviously > straight forward, but I am wondering about the best line breaking > approach to use. In my LaTeX docs I maintain one physical line per > sentence [1]. This way, when I change one word in a paragraph, it > affects only one line, and looking for differences between versions is > easy. Otherwise, when using fill-paragraph for instance, one gets > messy changes of the file, as the one word change can influence the > whole paragraph. > > Therefore, as I mentioned, in LaTeX I use visual-line-mode and I > insert manually line breaks at the end of sentences (or where *I* find > appropriate). What would be the best practice for org? I understand > that visual-line-mode has some problems when it comes to > tables... What other issues are there? What do you do when you keep > your org file under VC? > > Thanks in advance, > Dror > > [1] http://tex.stackexchange.com/a/4378/412