mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-24 07:20:29 +00:00
lisp/org-colview.el: Fix computing summary with low-level first child
* lisp/org-colview.el (org-columns--compute-spec): Do not assume that all the children of an entry have the same LAST-LEVEL. Handle situation when the first child has lower level: * Heading ****** Child 1 ** Child 2 ** Child 3 Reported-by: Uwe Brauer <oub@mat.ucm.es> Link: https://orgmode.org/list/87wn8yj2i5.fsf@localhost
This commit is contained in:
parent
d2df9624ce
commit
ac1ed2bf85
@ -1253,9 +1253,9 @@ properties drawers."
|
||||
;; property `org-summaries', in alist whose key is SPEC.
|
||||
(let* ((summary
|
||||
(and summarize
|
||||
(let ((values (append (and (/= last-level inminlevel)
|
||||
(aref lvals last-level))
|
||||
(aref lvals inminlevel))))
|
||||
(let ((values
|
||||
(cl-loop for l from (1+ level) to lmax
|
||||
append (aref lvals l))))
|
||||
(and values (funcall summarize values printf))))))
|
||||
;; Leaf values are not summaries: do not mark them.
|
||||
(when summary
|
||||
|
Loading…
Reference in New Issue
Block a user