From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Table Columns Date: Thu, 24 Jan 2019 21:36:31 +0100 Message-ID: <87k1itztbk.fsf@nicolasgoaziou.fr> References: <0b0033a4-e932-832b-3ca5-5ed7e83c05c4@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:57568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmltt-0005ln-Ax for emacs-orgmode@gnu.org; Thu, 24 Jan 2019 15:47:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmljr-0008T0-NF for emacs-orgmode@gnu.org; Thu, 24 Jan 2019 15:36:41 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:39469) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gmljr-0008Rf-HH for emacs-orgmode@gnu.org; Thu, 24 Jan 2019 15:36:39 -0500 In-Reply-To: <0b0033a4-e932-832b-3ca5-5ed7e83c05c4@gmail.com> (Scott Randby's message of "Thu, 24 Jan 2019 13:15:27 -0500") 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: Scott Randby Cc: emacs-orgmode@gnu.org Hello, Scott Randby writes: > I wonder this: Is there a way to tell Org to align and shrink all the > tables in an Org file after startup or does it have to be done on an > individual basis? It should be #+startup: align shrink > My use case is this: I have an Org file with many tables and I edit > some of them which requires me to shrink those tables. Later, I run > a macro which accesses and alters all of the tables. I need all of the > tables to be in the same state so that the macro runs correctly. > I guess the solution is to have the macro put a table in the proper > state before it does anything to that table, but that is one more > thing I have to remember to put in the macro. It would be easiest if > I could just tell Org to unshrink (which is what I actually want) all > tables in the file before I run the macro. There is no function to expand all tables in the buffer, but it is pretty straightforward, and fast: (dolist (o (overlays-in (point-min) (point-max))) (when (eq 'table-column-hide (overlay-get o 'org-overlay-type)) (delete-overlay o))) Regards, -- Nicolas Goaziou