From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uPYbMNPSZGMFVgAAbAwnHQ (envelope-from ) for ; Fri, 04 Nov 2022 09:52:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kCYpL9PSZGMJIAEAG6o9tA (envelope-from ) for ; Fri, 04 Nov 2022 09:52:35 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5D8A63EFF5 for ; Fri, 4 Nov 2022 09:52:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqsQi-0002kd-F5; Fri, 04 Nov 2022 04:52:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqsQf-0002k1-79 for emacs-orgmode@gnu.org; Fri, 04 Nov 2022 04:51:58 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqsQU-0006Bl-Iz for emacs-orgmode@gnu.org; Fri, 04 Nov 2022 04:51:56 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 0BDCC240027 for ; Fri, 4 Nov 2022 09:51:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667551905; bh=ucjKzsjxTll8Qj52/ydlUsk9uKJyZx6RwAJ4AIiSpCk=; h=From:To:Cc:Subject:Date:From; b=rNaqP9a62zpj6T6lHDr+KUg8gVLzbz26LEGKE7WMoNXyQIT6Dhu1nwDyMNleiEnN+ bjt/6qc0U/b0q4ITcNmsuRREVQBMGMEfCL67E46CPiNbSeJWsU5G/S64yg0P3NMieC +hDqElMhOe+/8w8Jao92ifoQ1rw01/rlUlb91QlrZY/kJyrdmmfucpiFgU702XWPmF Z/n0+v7gQ0qSwnEc1YoZ6fNKjV2d0C2ZSJXWGxcO7WGmdG4RHfpF24WE0cQ0tM/29a zcKLyp5ffZxSOQA4/k3PfBMgmDAxCzFqNtTc8ELpyxIcRoDyw47b2v1Oet/rCc+oUS GiF0O6zAewpSg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N3Z9q5pP2z9rxP; Fri, 4 Nov 2022 09:51:43 +0100 (CET) From: Ihor Radchenko To: Jean Louis Cc: Org Mode Subject: Re: How to align all tables at once? In-Reply-To: References: <87v8nv492f.fsf@localhost> Date: Fri, 04 Nov 2022 08:52:24 +0000 Message-ID: <87cza3gkzb.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667551955; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7z5IqKIjuFwVnEx3O/i6n33uDE02YVVSBR0uCvE7/dk=; b=REzGkvzg5TpR7FnMorE/dMksKKl6qTfAZEEdgeZVQgx11ZvQ3VtZAskfzMnLKYDVMdHgC9 eO1j0TJmASoDp8h51LdkmFna3qo1earPIlwv42ugjxgo4Ob/0W6LQ7dguybv3Uhjkx6MdO yAYXgcRgCR8uDD8feukiNWfo97m5/WRo7ihaIXpjAFcw7wqKDqCm02kJK3EZ/dg3GYzDcy W2jiI/ZIGmNbxtdn6BSa9zfqn2g3f3ipeEhePNyuLHQX97nx0ayv+4mmcQEXScs0jdP7vN LV2RIvdt5+/SC5o8F6W+J/v//ia7dvSB9tr35MI5fn/++4xBu1S35WNvAY82HA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667551955; a=rsa-sha256; cv=none; b=rkZgY13QRWE80TODoSyXQppVH5f42Et2QMse508Sa43Zdlia1FlQ23c5p+HO8HOHNlpOL+ 5B674NdifPsr+phLHhUEqLqs+Ot9WmnHO8kiW/cyeNQoo/W11WcVs4KN//KjdRgN80lYZ/ jhtgPEEDtIlknTRpQnOc/jv2TeFupAiG1A7/H4rc21gunN0pKTzqiYxkaUkAc0lqVH0SH1 hZUy/s43/H/sxB0PHM8iNGE0fGmX/y7WN6E2x1ufYP7QYVlj6HfP6hkOnOI+gYXovane2c hkErRiQfEQgshluPN3XP1wYLXfHxc3WGi0Pg6R+rFYo+ZgsJZXos6kypzr4cUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rNaqP9a6; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rNaqP9a6; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5D8A63EFF5 X-Spam-Score: -2.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: WLJtGW3u+ZMz Jean Louis writes: > Then I look in the code by searching for variable > `org-startup-align-all-tables', and I find this within `define-derived-mode': > > (unless org-inhibit-startup > (org-unmodified > (when org-startup-with-beamer-mode (org-beamer-mode)) > (when (or org-startup-align-all-tables org-startup-shrink-all-tables) > (org-table-map-tables > (cond ((and org-startup-align-all-tables > org-startup-shrink-all-tables) > (lambda () (org-table-align) (org-table-shrink))) > (org-startup-align-all-tables #'org-table-align) > (t #'org-table-shrink)) > t)) > > And I think such larger definitions shall rather be split into smaller > useful functions. You are, indeed, right. Patches welcome :) >> Babel also auto-aligns tables in results. > > Would it be possible to put Org as Babel source, so that I have Org > table inside of Babel and cause Babel to render automatically on the > end of buffer rendering and invocation of org derived mode? Yes. #+begin_src org :results replace | this | is | table | | 1 | 2 | 3 | | laskjdlsakjdsaldjk | | | #+end_src #+RESULTS[9f13490e4a64c55f86c49e2839d6c1b34f234a9e]: | this | is | table | | 1 | 2 | 3 | | laskjdlsakjdsaldjk | | | -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at