From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id EClpJnSNcGZ8kAAA62LTzQ:P1 (envelope-from ) for ; Mon, 17 Jun 2024 19:24:36 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id EClpJnSNcGZ8kAAA62LTzQ (envelope-from ) for ; Mon, 17 Jun 2024 21:24:36 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718652276; 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; bh=OMlmskVtJMZCJD4nGHYMa9qI2Ms90x+mxuPY9W/5h5c=; b=hBnGg7mvJUdSDK/nthwvAZrp67so+e+W/3EDUZDD2nM7w3C7voZueqv3Y37RXP5rJ2/4we mlnw583NnaizVXJekv4mJPgHk7I1omSRFZAM2OUmsws5J44o+2fHnQxg/qeHeWygikEhAK PzrwkN2IW89LWYajD+XwyM2MJQA4IIh5F96n1pU3ruGqvLpgjqCnCRJ4yXPighVB7/iVt6 Z6gePpQzoWx1aC4UCnOKk3oaMee5PNpXM0s67O9mVcFSAfdHSJhqL9LoDf06Fl7aIZxH5/ +gEAFQy1OEKYavZCaMyIwnMNRujI13cd+yMYPjZixKXJ2USiaG4o9rF35cbywg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718652276; a=rsa-sha256; cv=none; b=NqdjzdCpz6Pd9XIaLEuyWeIzR8jyL4u+DWLiYXJx5wuOD+Ar527mRev6QnuMSwLhNIvfqf pPNj52scF4fA/2w7h2Uf+s64UuRmZ9utxUHO0YOKLvD721GwR7p0djm4e39/SHR9OFwLH4 5/1gqlIN0cfUdSz5bI1g7As9X/2CV8k0gJTndE31nphSOqQDjQeZQKeFvfvf8ZD/3+wz/w j7A9XrhVxLRQHo9AUFJ08CLfOYDlekGPiMbq/uRLaDE7IvDdvFo5t9HuFNFBEHJKToJ4ir kPR4Q2UPdGvYOCJkg0NTTbfokZH5+V7n2u1TAEoGJX91PcvaJk43/I9cWGl+Cg== 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 5CFE657BC0 for ; Mon, 17 Jun 2024 21:24:36 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJHxP-0004pN-4K; Mon, 17 Jun 2024 15:23:59 -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 1sJHxL-0004pA-HY for emacs-orgmode@gnu.org; Mon, 17 Jun 2024 15:23:55 -0400 Received: from mail-out.m-online.net ([212.18.0.10]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJHxI-0001Jd-T3 for emacs-orgmode@gnu.org; Mon, 17 Jun 2024 15:23:54 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4W30DQ14CNz1sClx; Mon, 17 Jun 2024 21:23:50 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 4W30DQ0w6cz1qqlW; Mon, 17 Jun 2024 21:23:50 +0200 (CEST) X-Virus-Scanned: amavis at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavis, port 10024) with ESMTP id DRghF3yvsiWR; Mon, 17 Jun 2024 21:23:40 +0200 (CEST) X-Auth-Info: bvJlZkRmCbDJftTqFKOz8KfSvymj+i16mkcAJSqABJialQ7T5+RXqnjBT3pl3zsX Received: from Whiteflame (ppp-212-114-182-170.dynamic.mnet-online.de [212.114.182.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 17 Jun 2024 21:23:40 +0200 (CEST) From: Raffael Stocker To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Columnview makes attributes wander [9.7.4 (9.7.4-1387e3 @ /home/rst/.emacs.d/elpa/org-9.7.4/)] In-Reply-To: <87v827a3gh.fsf@localhost> (Ihor Radchenko's message of "Mon, 17 Jun 2024 17:23:10 +0000") References: <87v827a3gh.fsf@localhost> Date: Mon, 17 Jun 2024 21:23:39 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=212.18.0.10; envelope-from=r.stocker@mnet-mail.de; helo=mail-out.m-online.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Queue-Id: 5CFE657BC0 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -6.46 X-Spam-Score: -6.46 X-TUID: fXXvVK+6XnyL --=-=-= Content-Type: text/plain Ihor Radchenko writes: > May you please convert the diff into a proper patch, so that I can > install it under your name? I gave it a try, please see the attachment. Cheers, Raffael --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-lisp-org-colview.el-Prevent-repeated-indentation-of-.patch Content-Description: columnview left trim patch >From a94c25606164678b7887e9cc45c059b025f5140c Mon Sep 17 00:00:00 2001 From: Raffael Stocker Date: Mon, 17 Jun 2024 21:09:45 +0200 Subject: [PATCH] lisp/org-colview.el: Prevent repeated indentation of keyword lines * org-colview.el (org-columns-dblock-write-default): left trim keyword and TBLFM lines to prevent repeated indentation. --- lisp/org-colview.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org-colview.el b/lisp/org-colview.el index 961ae0fbe..bc93941e4 100644 --- a/lisp/org-colview.el +++ b/lisp/org-colview.el @@ -1662,7 +1662,7 @@ defun org-columns-dblock-write-default ;; Insert affiliated keywords before the table. (when content-lines (while (string-match-p "\\`[ \t]*#\\+" (car content-lines)) - (insert (pop content-lines) "\n"))) + (insert (string-trim-left (pop content-lines)) "\n"))) (save-excursion ;; Insert table at point. (insert @@ -1675,7 +1675,7 @@ defun org-columns-dblock-write-default (let ((case-fold-search t)) (dolist (line content-lines) (when (string-match-p "\\`[ \t]*#\\+TBLFM:" line) - (insert "\n" line) + (insert "\n" (string-trim-left line)) (unless recalc (setq recalc t)))))) (when recalc (org-table-recalculate 'all t)) (org-table-align) -- 2.45.2 --=-=-=--