From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 wG8NJ6k9ZmNumAAAbAwnHQ (envelope-from ) for ; Sat, 05 Nov 2022 11:40:41 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wH86Jqk9ZmNSEQAAG6o9tA (envelope-from ) for ; Sat, 05 Nov 2022 11:40:41 +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 5CB9821928 for ; Sat, 5 Nov 2022 11:40:41 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orGae-0003Eq-MJ; Sat, 05 Nov 2022 06:39:52 -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 1orGaa-0003Ee-Sq for emacs-orgmode@gnu.org; Sat, 05 Nov 2022 06:39:48 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orGaZ-00037z-7S for emacs-orgmode@gnu.org; Sat, 05 Nov 2022 06:39:48 -0400 Received: from localhost ([::ffff:197.239.4.26]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000081FF8.0000000063663D70.000046EC; Sat, 05 Nov 2022 03:39:44 -0700 Date: Sat, 5 Nov 2022 13:05:58 +0300 From: Jean Louis To: Heime Cc: "emacs-orgmode@gnu.org" Subject: Re: Inserting tables programatically in elisp Message-ID: Mail-Followup-To: Heime , "emacs-orgmode@gnu.org" References: <6G8r6Q0wA7TY17mTPQagC7PryWleqGax0pOrX8L2xjoiPqsFkn9baSX9lFxMC6HYwVK2H1EHc0rM8cGdPDaVLmUoflOoERNI0wbf_Ro0TZg=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6G8r6Q0wA7TY17mTPQagC7PryWleqGax0pOrX8L2xjoiPqsFkn9baSX9lFxMC6HYwVK2H1EHc0rM8cGdPDaVLmUoflOoERNI0wbf_Ro0TZg=@protonmail.com> User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SBL=0.141, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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=1667644841; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=6GHLy1YC8+Ppe9om0HJIMmMrIU8wIuHasQ4UQrDAPhI=; b=O+0A2EEmgc2dHdgaooL+KwP5Jqtn5zNvij1Omh6jHOyjSQScKc/yZ1pEymnZbqF5xCcjHw gi8SvpAZcMj1+tfLHxawMf2YXE552mrfLpunf/oamH/fy4dqnI07JALkZP4oXgsVlKYZSQ 8cltu7PDPPBY2pn1ReOnzbIOpy6yGSrrFPqnXal1bNaTYIrVVS7uVGU6gJNC1K7vX6rQeo ORO0OanmHDnNMJTdIxT0crcy3M5+H4cllNnPGsjatks23h6HyLr1axyACeegyU7RasT4U+ uVc5cG/quzvgGJBHPRtfQ4+PbyqSBYcraBicIOQAEAwH6fUYIivPhONauey+UA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667644841; a=rsa-sha256; cv=none; b=ACDJ1PAV2Fl8uOHiN/JcVRw6smZp0W8vAVTIFu2ni8NO6CZYSQ7khrATpOPMNeGUxKTIc5 E7umbx1EOewrYx/mEfacrkUqmZRmB6NKHo2Zi+7riRHdk3+XcpFgzLXala2XFD5v8b60l6 QxqFHYIpBUedOzmg3r3vEyTKxpV4tYUNKNvhAWWEV4Z5vICrvEikgxAxMR//FQqTB5IYTo gbfDmhNZ0gAg7h4LfeRi8aKi8WJ7q8VEjD2r21VgKU2zovJ6uhMbzRYZzQn9hsmzKU8kIG 6N4EKJCFZs4dOfnMng/eQ+xfs7MmrB81dzNI1bBU2sRmBr6GrhhVx8xYrLfE4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -0.01 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 5CB9821928 X-Spam-Score: -0.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: qVEjQKplS6jv * Heime [2022-11-05 12:27]: > > And now the final result: > > > > (rcd-org-table my-table) ⇒ " > > | ID | Description | Amount | > > |------+--------------------+--------| > > | 1.00 | Payment for domain | 10.50 | > > | 2.00 | Transfer from Doe | 250.00 | > > > > " > > The problem I see is that the code assumes use of org-mode, whereas > I am interested in more general tables in any buffer. At first > perhaps just making a table for display rather than for user > interaction. Me too, that is what I do. The output of that function is string, not "Org". The table format is in Org format. Once you have got table as string, you may use Org export functions to get for example nicely formatted Unicode table. Mix anything. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/