summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2021-04-07 19:48:37 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-04-07 19:48:37 +0200
commite1b8d1d2b4ef46e0c4ef591536a77eeeed45d998 (patch)
tree7380f19b77039b0147709ea7e81033fd4a97e409
parent75756789597fbcae219909caad85a6d4c4b536c2 (diff)
downloadorg-mode-e1b8d1d2b4ef46e0c4ef591536a77eeeed45d998.tar.gz
org-colview: Do not choke when updating a special property
* lisp/org-colview.el (org-columns--compute-spec): Do not update special properties, which are not set through property drawers. Reported-by: Nick Dokos <ndokos@gmail.com> <http://lists.gnu.org/r/emacs-orgmode/2021-04/msg00135.html>
-rw-r--r--lisp/org-colview.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/org-colview.el b/lisp/org-colview.el
index 75056d4..d80fa8e 100644
--- a/lisp/org-colview.el
+++ b/lisp/org-colview.el
@@ -1167,7 +1167,12 @@ properties drawers."
(printf (nth 4 spec))
(operator (nth 3 spec))
(collect (and operator (org-columns--collect operator)))
- (summarize (and operator (org-columns--summarize operator))))
+ (summarize (and operator (org-columns--summarize operator)))
+ ;; Special properties are not set in a property drawer, and
+ ;; therefore should not be updated.
+ (update
+ (and update
+ (not (member property org-special-properties)))))
(org-with-wide-buffer
;; Find the region to compute.
(goto-char org-columns-top-level-marker)