From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UAlaC0JOeWKIAwAAbAwnHQ (envelope-from ) for ; Mon, 09 May 2022 19:24:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MCVyC0JOeWLgDAAA9RJhRA (envelope-from ) for ; Mon, 09 May 2022 19:24:18 +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 B2BCACD1C for ; Mon, 9 May 2022 19:24:16 +0200 (CEST) Received: from localhost ([::1]:35724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no77G-0002qK-NC for larch@yhetil.org; Mon, 09 May 2022 13:24:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no76o-0002qB-DR for emacs-orgmode@gnu.org; Mon, 09 May 2022 13:23:46 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]:47390) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no76k-0007cL-1i for emacs-orgmode@gnu.org; Mon, 09 May 2022 13:23:45 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id B797BE7016 for ; Mon, 9 May 2022 19:23:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZHtXdd0_BoPg for ; Mon, 9 May 2022 19:23:28 +0200 (CEST) Received: from localhost (83.8.164.42.ipv4.supernova.orange.pl [83.8.164.42]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 48805E613C for ; Mon, 9 May 2022 19:23:28 +0200 (CEST) User-agent: mu4e 1.1.0; emacs 29.0.50 From: Marcin Borkowski To: emacs-orgmode@gnu.org Subject: [BUG] Error when editing properties in column view [9.5.3 (release_9.5.3-452-g407104 @ /home/mbork/others-works/emacs/org-mode/lisp/)] Date: Mon, 09 May 2022 19:23:25 +0200 Message-ID: <87sfpihb76.fsf@mbork.pl> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=195.110.48.8; envelope-from=mbork@mbork.pl; helo=mail.mojserwer.eu 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652117057; 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; bh=CZDyARMCgQG58A97pnOs7PR6m1gIWdVdqiJR3dEKZYw=; b=U5tXBIbazGpbM0UKTW/3ZBSJsbAchxAqzxrfPtdLn4lJVJubFV02aG5yr22a1jjRpy1Gpa pktStBemosMnMqhg5JZ54KOkSLoTBxVo82/uYJzONhndt5SkOcYjs2l5CugIGFYRUsQ6zs LadhqrQNnhe0bb7R/7tekbOv1rj+T1re4Vz/gOEdgibGUbRcvifbnTytshocV3g+hpCvG2 dEcLx2o+ADp1PoACgrn9D1ajWIoG6f32yt8Ze7rlG3I9dZP8KP2I8oQLOm+AbtcL3dCNBA nwR7SRx/YNshWiJZbl/VWaqazJGSsOcbJcMBPsSc/nGl75P9/NpVAvLOQYcKIA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652117057; a=rsa-sha256; cv=none; b=GZSqQjC6Ml9bo9EREPLo/3YEzt+rG5m3jmeK/lC7D+ogoxEznkYm9Ps05OlXQwq58oHAr+ 5x3aySurHf1pWn/qlSXESlhGR4Q6Z+dWQ30zFGAlsHLphT9VtTW+M7N3T2qrzBxiOogjtx v2V5kyAzWvPb1ConGGOk2Ocu8tOTWfA+nGZwnIrZwekr2u8lJ+1rm+EAMJyQXUNgZOgIT4 HpcVSyvVca2+5yLgfVxPqsNH1TJWl34mLPDr+A9LxGR7h6sHLao5JZW1o1W+QI5J5dqKZB d6U9I14F4472cHj1E7t1O+uHydxvLyiGagopCKblilepJpDtmbw00h/QlvW6Iw== 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: -2.90 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: B2BCACD1C X-Spam-Score: -2.90 X-Migadu-Scanner: scn1.migadu.com X-TUID: K2gXXM2Xy/1h Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ When I try to edit a property in column view, I get the following error message: Invalid column specification format: nil This only seems to happen if the point is not too close to the left margin. I did a bit of digging and found out that the culprit is most probably the `org-columns-update' function, which contains this: (let* ((spec (nth (current-column) org-columns-current-fmt-compiled)) ...) ...) Since `org-columns-current-fmt-compiled' seems to contain one entry per _table_ column and `current-column' returns the "horizontal position of point" (i.e., the index of the _character_ column the point is in), `spec' gets assigned nil unless the point happens to be no more characters from the left margin than there are columns in the column view, and even then it gets assigned the wrong thing. I might be mistaken, though - I only skimmed through this code. Here is an example file where this happens: --8<---------------cut here---------------start------------->8--- * Test ** Entry A :PROPERTIES: :a: 1 :b: 2 :END: ** Entry B :PROPERTIES: :a: 3 :b: 4 :END: * Config #+COLUMNS: %4a %4b --8<---------------cut here---------------end--------------->8--- Go to `* Test', press `C-c C-x C-c', then go to `2' and press `e 2 '. I also saw this on emacs -Q, with the built-in Org-mode: Org mode version 9.5.2 (release_9.5.2-22-g33543d @ /usr/local/share/emacs/29.0.50/lisp/org/) Emacs : GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.31, cairo version 1.17.4) of 2022-03-06 Package: Org mode version 9.5.3 (release_9.5.3-452-g407104 @ /home/mbork/others-works/emacs/org-mode/lisp/) -- Marcin Borkowski http://mbork.pl