From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: table refresh: when should the buffer be marked modified? Date: Sun, 21 Jun 2009 11:34:01 +0200 Message-ID: <4A3DFE89.7070508@alumni.ethz.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MIJRE-0007FO-Cp for emacs-orgmode@gnu.org; Sun, 21 Jun 2009 05:34:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MIJR8-0007D3-2O for emacs-orgmode@gnu.org; Sun, 21 Jun 2009 05:34:10 -0400 Received: from [199.232.76.173] (port=53116 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIJR7-0007Cn-27 for emacs-orgmode@gnu.org; Sun, 21 Jun 2009 05:34:05 -0400 Received: from mail05.solnet.ch ([212.101.4.139]:56642) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MIJR6-0006PB-GY for emacs-orgmode@gnu.org; Sun, 21 Jun 2009 05:34:04 -0400 Received: from mail05.solnet.ch ([127.0.0.1]) by localhost (mail05.solnet.ch [127.0.0.1]) (SolNet-Check, port 10024) with LMTP id 9g-L-OpKvFko for ; Sun, 21 Jun 2009 09:33:58 +0000 (UTC) Received: from [192.168.1.2] (212-41-77-124.adsl.solnet.ch [212.41.77.124]) by mail05.solnet.ch (Postfix) with ESMTPA id 47BB039833 for ; Sun, 21 Jun 2009 09:33:58 +0000 (UTC) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I was not able to find a description about buffer modification after a table refresh. When a table gets a refresh like after C-c C-c or moving around with Tab the buffer is marked modified also when no change for realignment of the table grid is necessary. Is this an implementation limitation for simplification? If yes my vote for which of the features to be next would be that during a table refresh there is a check if an automatic realignment changed the table grid. If the buffer's file does not need an update I would like the buffer to remain not modified. Beside other advantages it would make it possible to narrow columns in read-only buffers which are not narrowed before for any reason and I am not sure if it would eventually help me with multiple undo in tables which confused me sometimes. My opposite finding is that - interestingly only with org-startup-align-all-tables t ! - when I open a file with a misaligned table not in org-mode and then invoke org-mode the table gets aligned but the buffer does not get modified. I expected it modified, org-mode version is 6.27a.