From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KKVVCqoH4WR+GgAASxT56A (envelope-from ) for ; Sat, 19 Aug 2023 20:19:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QBwDCqoH4WQCuAAAauVa8A (envelope-from ) for ; Sat, 19 Aug 2023 20:19:22 +0200 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 E1D0B3FC77 for ; Sat, 19 Aug 2023 20:19:21 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=WlWddZ30; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692469162; 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:dkim-signature; bh=Ur4/yGfjnXDZVST/wTWnTlPFZcFqL+Q9kxfOWnOT1B4=; b=dyKB0JjcL1Qjyv+GjMFfpCKUoWlXDdU6/mS/svrYEBIy+zuUGCdrQ+1eb6C0SmEB3Xs5xL F2qmKjatLfrYgnI0ERcBVVYBJDszo49I6X0PGFIWVKrxz0E9VB6avO00gDyRAaYtgvghMV 6XVSKxWlXEo6KsUIgUlgidLzawX5e9oJHrncF2ajYiK2kdDu3Kk/DfCSo1V536j7k0XJAX pm1sJi2v43Da145vhUsY7Qg0VJwYjZ7QlckdpIp7v5ajQPqnU3Gbpx05jNsHo5S5+ld41B j8EbOsVWd077VEjj3XjFv/ziHFVnKas+wO68zEgl6hxPuadcDQ7lG5oyPSX8yw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=WlWddZ30; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692469162; a=rsa-sha256; cv=none; b=g3/3ygwF5WPOYYSXcqFI2+mATz3RlH0fAMIm+Vy3tp+NjlU8fcbL8zO1edIJxOR7Ado2FO oaYqngTrri31X+896+ca8oalvXobWnoTWkWI0BpmF/2lRkO0E+2m3QizkNtw17WDZnoeBs IWHdLkNvNoemSjAj1V4ls3EAqvM8HOurWNG6Zba2DSYMSYjfsvOcuFLg6M5IVe5r0iwtiN rf1a+7jjAY62vmdHk/YrIdVjnvBgQVtgojBauHwRTjyBSccj1WWaCbekQ5TgqdsnHeEdkt QFJuJdTqfN1BNA/evmdaQDSH27P9nmFdkLwIVF/x1mbiOLCfkNUBsfHMQOqzOQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXQWw-0005MN-QP; Sat, 19 Aug 2023 14:18:34 -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 1qXQWu-0005ME-Vi for emacs-orgmode@gnu.org; Sat, 19 Aug 2023 14:18:33 -0400 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qXQWs-0004Wa-Or for emacs-orgmode@gnu.org; Sat, 19 Aug 2023 14:18:32 -0400 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-52557cc5e7bso2464385a12.0 for ; Sat, 19 Aug 2023 11:18:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692469109; x=1693073909; h=content-transfer-encoding:in-reply-to:to:from:references:cc :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Ur4/yGfjnXDZVST/wTWnTlPFZcFqL+Q9kxfOWnOT1B4=; b=WlWddZ30elqMXy4z5/ptoYrPkhqcJuPUM6uSKn3AwmUhjJlMSo1zIar0aGJmcZouoB TmhJb1WWoFioMaZIZV8+x2Sc2bjOswlCRse/uvZvJFIq1H9bPg15BH6GdvV5ABjHyzHf mMw0hCAENuEP5HyCGCRkC4z+JMVZa5prMPa4VZ6cR16mx1Bg71YDx34JyAFQ8lebgrP0 DVNrC5HSH16pJJ1B1UT88LUoXmihrx8BLwMNZ09GHmg1HS/7z3TXCyHgXtCF2GV6DmNb P7wJmTxmHSm8aTBqmsPFN8YDsS4uD8jq4OvzC42zpn2F5x5XUws7FqU5ilxqvEO129K9 /RZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692469109; x=1693073909; h=content-transfer-encoding:in-reply-to:to:from:references:cc :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ur4/yGfjnXDZVST/wTWnTlPFZcFqL+Q9kxfOWnOT1B4=; b=iPr6Lg8qeVwKErqp2WhbwVw5fxvt8KRYrSP/2ILcT/D4fJshjCHwT4tZvtzVsItOPL pULkdHlgQKmUAxYhfimc4AsZqthq6wB7fkJ19znF1GUA/jSOWFIuCgQBE4DgPgFVyG3G qmimW4YfSoGU5Tqqyf4GuqHUPrffO4fHAUbGNdGBhCKJHjEmRtPkzkDcTarr2Fx5hVAL LCtbSc6dRS/eHNcOC/DoqkEwX4WzBeGxd5MIVIQrpraE9cJPhRUCl3S5dYiYMH0JVjO8 A2fpN/geHupr0I1N7VLxPyZQ5QMlVIrEe3LiFMowNeS4EjxWrkGmw3Tu1XPaSfHcbCGI T3mg== X-Gm-Message-State: AOJu0YxRpUmC83d2pmQ5VG4A8/fYpE3I36R4YvumWYnAcU1B/DTgdMYl 2z/tiRzvLkC2hP5LkhYvJdCo8ytdwiou X-Google-Smtp-Source: AGHT+IGtarIAMIvt13NlACbZTZgClfHIB1696P3Mmxw9bDasjVs9OjrFgDnvxK9TB/VKqrTk6qfwtA== X-Received: by 2002:aa7:c589:0:b0:522:29d3:4185 with SMTP id g9-20020aa7c589000000b0052229d34185mr1752331edq.32.1692469108690; Sat, 19 Aug 2023 11:18:28 -0700 (PDT) Received: from [192.168.1.3] ([178.25.129.69]) by smtp.gmail.com with ESMTPSA id i1-20020a056402054100b005255ddb67c7sm2917104edx.40.2023.08.19.11.18.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Aug 2023 11:18:28 -0700 (PDT) Message-ID: <975ecec6-86cc-3df9-f55a-d4cfea0f8263@gmail.com> Date: Sat, 19 Aug 2023 20:18:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [Bug] org-update-dblock randomly broken for more than 10 columns and larger files Content-Language: en-US Cc: mail@nicolasgoaziou.fr, Ihor Radchenko References: <755dc4e2-0ac7-bf27-c716-e83a3295c076@gmail.com> <87edknovdh.fsf@localhost> From: =?UTF-8?Q?Jakob_Sch=c3=b6ttl?= To: emacs-orgmode@gnu.org In-Reply-To: <87edknovdh.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::52b; envelope-from=jschoett@gmail.com; helo=mail-ed1-x52b.google.com X-Spam_score_int: -39 X-Spam_score: -4.0 X-Spam_bar: ---- X-Spam_report: (-4.0 / 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, NICE_REPLY_A=-1.862, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -9.31 X-Spam-Score: -9.31 X-Migadu-Queue-Id: E1D0B3FC77 X-TUID: LmZ7S46kb+lN So, org-update-dblock or org-dblock-write:columnview is adding trailing spaces in the org file. These spaces change the behavior of subsequent calls which will add even more spaces. Here is a minimal example: * Table #+BEGIN: columnview :format "%a %b %c %d %e %f %g" #+END: This works as expected. But for each field you add, one trailing space is appended to the heading when the org-dblock-update is called. In larger files, I cannot see any logic behind the added spaces so far. I tested in Emacs 29.1 and org-mode 9.6.6. (Don't know how to use latest version from git repo.) The function org-dblock-write:columnview is mostly by Nicolas Goaziou (from 2016 and 2018). Hello Nicolas, I've added you here. Maybe you have an idea what this could be? Anyway, I'm afraid I can't contribute and fix it. I have no experience with elisp, tooling, debugging, and the org-mode code base. I need this export feature and will write a org2csv extraction script in Haskell. I'm aware that it would be much more helpful in org-mode itself – but sorry...