From: Marcin Borkowski <mbork@mbork.pl> 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 [thread overview] Message-ID: <87sfpihb76.fsf@mbork.pl> (raw) 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 <RET>'. 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
next reply other threads:[~2022-05-09 17:24 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-05-09 17:23 Marcin Borkowski [this message] 2022-05-11 11:42 ` Ihor Radchenko
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style List information: https://www.orgmode.org/ * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=87sfpihb76.fsf@mbork.pl \ --to=mbork@mbork.pl \ --cc=emacs-orgmode@gnu.org \ --subject='Re: [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/)]' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Code repositories for project(s) associated with this inbox: https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).