From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WEXnAikUZmP4FwAAbAwnHQ (envelope-from ) for ; Sat, 05 Nov 2022 08:43:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gPm6AikUZmMwXQEAauVa8A (envelope-from ) for ; Sat, 05 Nov 2022 08:43:37 +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 C98B11E0F4 for ; Sat, 5 Nov 2022 08:43:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orDou-0001rV-QC; Sat, 05 Nov 2022 03:42:24 -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 1orDon-0001rD-Fb for emacs-orgmode@gnu.org; Sat, 05 Nov 2022 03:42:19 -0400 Received: from mail-4324.protonmail.ch ([185.70.43.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orDol-0003s3-1U for emacs-orgmode@gnu.org; Sat, 05 Nov 2022 03:42:17 -0400 Date: Sat, 05 Nov 2022 07:41:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1667634131; x=1667893331; bh=h5HnC09XOgSYu0DtK0ypRvMVyvvmHiggA0wcV5RLuPs=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=ONSGnRT3hfkXwZV2UV0SMK6zTk9vqg7mFPmd2jAV/Pz42aVJ2399jXJEtpjshV8gD i3H4ZdQLwJUc3XySrLcMaFvVsaAbc4yR+65ARhNnpyYgZfXAIp/9usb1gCCUXw6dbP FsDl6a/Cieehz+NjkT9rQTHAi8kbqJCb6bXXt5xwsj9g1wc89RDweYr3CLlwRQV1nw xg2jZ8Ip7PkHA+w6ISkR0mztZfcIcioveWaVjrEePKNOzubQkPQznp8Gt5UNAFFn3d jtxRQyQeHaloY3UQJDDP2FdnwWEtsymCQlDAwjvJCcNfHhzsZ3Zcw383bxz0ptjmsI 3+JpiVqtVwU3g== To: "emacs-orgmode@gnu.org" From: Heime Subject: Inserting tables programatically in elisp Message-ID: Feedback-ID: 57735886:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.24; envelope-from=heimeborgia@protonmail.com; helo=mail-4324.protonmail.ch 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, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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=1667634216; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=h5HnC09XOgSYu0DtK0ypRvMVyvvmHiggA0wcV5RLuPs=; b=dQXLlcfd8X0RRNhXuS2wBi+wogwFS3Ip0SyXsfRHPGTyCfdHwshdxfkIySVSHFtZRYKfQm po0Ypfq07qwUkEK65EPDcEOKyzLbcTERAocNWRaAoHFK8jamQWGdWFWUmPxwZ8SiaZUk2c QnhYP1bzLAFbCLyqQ8mDTK++VfLp1dHDcDgYSsknPvRkf4nL94zk0T8BJzZ1iLO/a3b3wg bIPRW9jmG1CvfO/iWhQnTOu7WRicmjKLUFzreiPwnvJpDrSPkzM79obwOPZp8PZMnO8bXq dKwOIbw0/FcX6ckvHB0fybVx5H58jGWVYIoJoZWRmjDxNeUDQsN6Za/i9EGm5g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667634216; a=rsa-sha256; cv=none; b=ei8lryVuXo10PFfN9n1cfB1yMFUzA0Q4X/mGBUF1FCavekuQ+Udo/kPZciiCDDHkhjb/nn GcARW7HD6DobsAjVBJiW5Stl/OfDsJaFv+yzOIQpMxREJYJeVqLr3JGMkgXcdjPPCuxCal hYlnPmsYdwhMTU8uaRSkpJY5Y0BhPYVnrC371HEEa+KYqPMSORq7WrXmio2vMgCk/NmfiC J8mSppnVX5jidvegfH5G+w87OQHZVqAtMMfKdbTsqkRzVJr1qr5AJmWzxPu8+PDN536MD8 5Hmq1fCjf3l6ZQV6YGTQLExeu9U070ihfE+jRdt4nxDvw2E6AnYYTQmBGymQ6w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=ONSGnRT3; dmarc=pass (policy=quarantine) header.from=protonmail.com; 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=protonmail.com header.s=protonmail3 header.b=ONSGnRT3; dmarc=pass (policy=quarantine) header.from=protonmail.com; 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: C98B11E0F4 X-Spam-Score: -2.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: CGekowGlw4LV Have been introspecting the possibility of conveniently inserting table pro= gramatically in elisp and encountered "table.el". Have constructed this function, but the difficulty centers around the challenge of inserting text in specific tests. (defun make-table () (interactive) (table-insert 4 5) (table-forward-cell) (table-insert-sequence "icomplt-horz" 1 1 1 'center) (table-forward-cell 4) (table-insert-sequence "icomplt-vert" 1 1 1 'center) (table-release)) It might be that "table.el" was designed under the assumption that the tabl= e would be edited interactively rather than from ELisp. The lack of info may just = reflect that nobody has thought about it making tables programatically that also go= es beyond its utilisation in "org-mode". I understand that "Org" cooperates with its author Takaaki Ota, perhaps thi= ngs could be extended in a way that makes inserting tables programatically much easie= r to work with. =20