[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [bug] canonical context not work in 8.3
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [bug] canonical context not work in 8.3 |
Date: |
Sat, 08 Aug 2015 11:19:46 +0200 |
Correcting myself,
> I think it is as good as it can get. You probably have an awful lot of
> children to display.
This one may improve the situation:
(defun show-children (&optional level)
(save-excursion
(org-back-to-heading t)
(let* ((current-level (funcall outline-level))
(level (if level (+ (prefix-numeric-value level) current-level)
(save-excursion
(outline-next-heading)
(if (eobp) current-level (funcall outline-level)))))
(re (format "^\\*\\{%d,%d\\} +" current-level level))
(end (save-excursion (org-end-of-subtree t t))))
(while (re-search-forward re end t)
(outline-flag-region (line-end-position 0) (line-end-position)
nil)))))
Would you mind testing it?
Regards,
- [O] [bug] canonical context not work in 8.3, Samuel Wales, 2015/08/06
- Re: [O] [bug] canonical context not work in 8.3, Nicolas Goaziou, 2015/08/06
- Re: [O] [bug] canonical context not work in 8.3, Samuel Wales, 2015/08/06
- Re: [O] [bug] canonical context not work in 8.3, Nicolas Goaziou, 2015/08/07
- Re: [O] [bug] canonical context not work in 8.3, Samuel Wales, 2015/08/07
- Re: [O] [bug] canonical context not work in 8.3, Nicolas Goaziou, 2015/08/08
- Re: [O] [bug] canonical context not work in 8.3,
Nicolas Goaziou <=
- Re: [O] [bug] canonical context not work in 8.3, Samuel Wales, 2015/08/09
- Re: [O] [bug] canonical context not work in 8.3, Nicolas Goaziou, 2015/08/10
- Re: [O] [bug] canonical context not work in 8.3, Samuel Wales, 2015/08/10
- Re: [O] [bug] canonical context not work in 8.3, Nicolas Goaziou, 2015/08/10