From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleh Subject: Links in tables: could the plain text also look good? Date: Thu, 6 Mar 2014 20:00:26 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLdWv-00053Z-9l for emacs-orgmode@gnu.org; Thu, 06 Mar 2014 14:00:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLdWu-0000qF-E7 for emacs-orgmode@gnu.org; Thu, 06 Mar 2014 14:00:29 -0500 Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]:63799) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLdWu-0000pl-8J for emacs-orgmode@gnu.org; Thu, 06 Mar 2014 14:00:28 -0500 Received: by mail-we0-f170.google.com with SMTP id w61so3706995wes.1 for ; Thu, 06 Mar 2014 11:00:27 -0800 (PST) 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: org mode Hi all, I don't know if this issue has been raised before (it's a bit difficult to google it). I was just committing a single line change to an org-mode table into git, and the diff isn't good at all: the whole table appears to have changed. Well, not really - just a few spaces were added on each table line because the single new line caused a need to re-align the whole table. So I'm thinking: if org-mode uses overlays for links to make some of the real text invisible, why not keep the plain text aligned and use the overlays to align the fontified text? Having a good-looking plain text is an achievement in itself, but using an smart allocation strategy (like std::vector growth) to add more spaces than needed each time a column grows, would alleviate the diff problem, i.e. the diff would show only a single line change most of the time a line is added or removed. I'd like some feedback on whether: - it's done already and I just haven't enabled this behavior - it can't be done because of some complex issue - it can be done, but just isn't a priority In the third case maybe some pointers on where to start implementing would help. regards, Oleh