From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Amann Subject: problem with org-table-export Date: Fri, 27 May 2016 23:44:11 +0100 Message-ID: <87d1o7ruis.fsf@msstf091.ucc.ie> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6Rvf-00072A-4D for emacs-orgmode@gnu.org; Fri, 27 May 2016 20:16:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6Rva-000762-1v for emacs-orgmode@gnu.org; Fri, 27 May 2016 20:16:34 -0400 Received: from mail-am1on0089.outbound.protection.outlook.com ([157.56.112.89]:50432 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6RvZ-00074H-1n for emacs-orgmode@gnu.org; Fri, 27 May 2016 20:16:29 -0400 Received: from msstf091.ucc.ie (msstf091.ucc.ie [143.239.76.91]) by mail3.ucc.ie (8.14.4/8.14.4) with ESMTP id u4RMiCgP019630 for ; Fri, 27 May 2016 23:44:12 +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" To: emacs-orgmode@gnu.org Hi list, whenever I use M-x org-table-export inside a table, the buffer is marked "modified". This is even the case if no modifications are done to the buffer by exporting the table. This problem happens since at least two years and possibly longer and persists with the current git version of org-mode. As it is quite annoying in my workflow, I tried to investigate the problem. Looking at the definition of org-table-export in lisp/org-table.el the problem seems to be that the line (org-table-align) ; Make sure we have everything we need. which seems to always set the modified flag, irrespective of real changes being done. When I comment out this line or surround it with (org-with-silent-modifications ... ), then the buffer remains clean. However both solutions likely introduce other problems. I guess the proper solution would be to improve org-table-align to not unnecessarily set the "modified" flag, but I would not know how to do this. Regards, Andreas