From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 6FnTEpUiw2YQDAEAe85BDQ:P1 (envelope-from ) for ; Mon, 19 Aug 2024 10:46:45 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 6FnTEpUiw2YQDAEAe85BDQ (envelope-from ) for ; Mon, 19 Aug 2024 12:46:45 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=DptvNOwW; 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=1724064405; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=umxCIzlEMUJxemFZzVHuckcuWf62E2NEm+82W3z5U5o=; b=eVUi4fNWp6dkrmeoho9hfA5XVbTaXesKH3i+pPvD3CGiGgUSDpnhmSuYlhD3hUosoRbKOA tfJusSWgQTF2htvNJkBXuj17TJnpm9uKUeliRd7/HqFQI3gT9LvC9EpybXGsj8Tdgkpw9Q XOTcYS/DdzgdJbuTV6dFNxynXiZtWaCO78e5ufXEa2Q9Vn9u2KPgYk5z+5Hsv1+JA3EfNP +vv6mVCFr3eBodeyqMb8+LoD+Nb4PwcuJAYKso+I2G5IxtTgv2QxID+R8U0Va7r1FxXbjG 5F7mBvxLbru7xHsLuCv6DRE6rbtnf3xhNXvhJNofPUYnT/85eikMsEBS8JIVQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=DptvNOwW; 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=1724064405; a=rsa-sha256; cv=none; b=YNJqcz37XYEEYRzX0lYzFug7VrhoWCiw+mn7ayoB28ELt+bCpFlwzPZQhwdsRD6ALZbRzB Tjpt7gUn24GmCk3XhwZqq3JJVK9mcoCM1OURZfxJSbycKwRjXH8OM1kvJa/h6WW3VFi551 aYC6cRLGe8a/9UWPenyv4GG2DOURm5saQm5E2jkAMJQrQYZSbJ2/VRofmSbVTW9CckHO5M aZB5JsfO5KHaAtZ4kcGRUlTslnSOQ0LywWYQ7+IyS1cIettIUClq27OavxqzIyxj9BqVS2 03QqJL9b0fniilcn+e6CcYYm6YgpA9wYeB/O20ZKRqrUO224odzDuu/iSv5cbw== 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 299BD12E3D for ; Mon, 19 Aug 2024 12:46:45 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfztV-00033D-1E; Mon, 19 Aug 2024 06:45:49 -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 1sfztS-00032k-HI for emacs-orgmode@gnu.org; Mon, 19 Aug 2024 06:45:46 -0400 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sfztQ-0007oO-TQ for emacs-orgmode@gnu.org; Mon, 19 Aug 2024 06:45:46 -0400 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-52efd530a4eso6475532e87.0 for ; Mon, 19 Aug 2024 03:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724064342; x=1724669142; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=umxCIzlEMUJxemFZzVHuckcuWf62E2NEm+82W3z5U5o=; b=DptvNOwWsyTQXdJ4ofuBKQuZyiNf+cvplEQeIKQzGR7qUL9xpwSxzA25OeJ5n7oZgZ 7bAxoR7eRWVC9W2+NhS9+RbHX/D5gAa4P6CbH8OC8WTgcdqQ540UQ8nvDVSYKNAYCbRv lYbhHIGjOMq3aH2OLR/QvcUzhAWRZ7zcYY4y1XqFAaWIHDhX5zADV7HwgxIxpTChGFsR K7V6GXQHshVbuHdYNs/5Ri786GevCE8WiZ+94Hx+wAK4QZVgUyvGiN/rkTCj4PwRgPbt GK9F474/qiFBDa1I3Q7mnm9VQv5XkbmG7NG+oSdcXD6q+H48ElRuBXuCZVYluMtnMphE VXAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724064342; x=1724669142; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=umxCIzlEMUJxemFZzVHuckcuWf62E2NEm+82W3z5U5o=; b=MpwvBHo02jrcUVb/P4cH7MUgoJCYERxB47J93ygupsgPvCwiqUu+VKfx9a1CGRFX+6 o19Slx78v5W+jucii0QNYez0DaciHI26AOd6NOHJLFqZ8arpm95ySPEJGO1WRZIw/4Qf G4PpEi/TqkaLi8jSrAeSHWIJPCDk+PYdplmJFn6t5EIyJBCdi1Qo1JuiKYs5RKaPPFia XpTrOwrZ3J2bu3v1THXbTtYipT9rIlxwssmNKbfrKUMazeDc7dEaeWpAq5gS46jQqf/Z vC+C4YeUppnU38QIF4QrFhO1Ba5Ctcf0xmo+Nm0IRxz9IqyfBo7JZKLySBvRtmXHAtk/ 4CAA== X-Gm-Message-State: AOJu0Yxo88t7d7iruY2++RwlWW6+jY2Oeh2nwbAhDbv6OvERYdHhFqTg PeD+4GFQekA7jiI0wbdIRxqBms98/RfB30Cuwa1l3GMlguELorGCWKMiQw== X-Google-Smtp-Source: AGHT+IH5lIPgAlxh7jTglKXqE9Edb9CPMKx26uiZpgjhgTKqiTnIGssmhX9ES8V0WPYtVp1AicuN1Q== X-Received: by 2002:a05:6512:a90:b0:52f:441:bdd9 with SMTP id 2adb3069b0e04-5331c6bb847mr5825197e87.34.1724064341635; Mon, 19 Aug 2024 03:45:41 -0700 (PDT) Received: from windows (83.24.148.34.ipv4.supernova.orange.pl. [83.24.148.34]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5330d4246eesm1495596e87.252.2024.08.19.03.45.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2024 03:45:41 -0700 (PDT) From: =?utf-8?Q?S=C5=82awomir_Grochowski?= To: emacs-orgmode@gnu.org Subject: [BUG] colview.el regexp - capture operator when title is empty Date: Mon, 19 Aug 2024 12:45:32 +0200 Message-ID: <877ccczt83.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=slawomir.grochowski@gmail.com; helo=mail-lf1-x12b.google.com 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_DNSWL_NONE=-0.0001, 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: 299BD12E3D X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -9.79 X-Spam-Score: -9.79 X-TUID: SLnX6PIjisKQ --=-=-= Content-Type: text/plain Hello, I have found a bug in regexp. Test that need to pass to fix it is below. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-testing-lisp-test-org-colview.el-add-test-to-pass-to.patch >From 9710f6befb1bd4eee2d508d7baaee95e825a68dc Mon Sep 17 00:00:00 2001 From: Slawomir Grochowski Date: Mon, 19 Aug 2024 12:30:49 +0200 Subject: [PATCH] testing/lisp/test-org-colview.el: add test to pass to fix a bug --- testing/lisp/test-org-colview.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/testing/lisp/test-org-colview.el b/testing/lisp/test-org-colview.el index 6b603c31b..8615ef760 100644 --- a/testing/lisp/test-org-colview.el +++ b/testing/lisp/test-org-colview.el @@ -90,7 +90,12 @@ (should (equal `(("ITEM" "ITEM" nil "+" "%.1f")) (org-columns-compile-format - "%ITEM{+;%.1f}")))) + "%ITEM{+;%.1f}"))) + (should + ;; Bug - when the title is empty, the regular expression will not capture the operator. + (equal '(("ITEM" "ITEM" nil "X" nil)) + (org-columns-compile-format + "%ITEM(){X}")))) (ert-deftest test-org-colview/substring-below-width () "Test `org-columns--truncate-below-width'." -- 2.30.2 --=-=-= Content-Type: text/plain Steps to reproduce: 1. add new column with an empty title and select one of the operators. 2. press 's' when the cursor is the added column - operator should be selected, but it's empty. Regards, -- Slawomir Grochowski --=-=-=--