[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] Tag visibility fixup after setting them
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [PATCH] Tag visibility fixup after setting them |
Date: |
Thu, 29 Dec 2016 01:39:30 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Hello,
Alexey Lebedeff <address@hidden> writes:
> This fixes bug where you sometimes can't immediately see tags that were
> just set. And to reveal them you need to go through global visibility
> cycle.
Thank you for the patch, and the test.
> +(defun org-insert-visible-text (&rest args)
> + "Inserts arguments at point and makes them visible in outline.
> +
> +When text is being inserted on the invisible region boundary, it
> +can be inadvertently sucked into invisibility."
> + (let* ((before-point (point)))
> + (apply #'insert args)
> + (outline-flag-region before-point (point) nil)))
I don't think, for the time being, it deserves a dedicated function.
I suggest to integrate it in `org-set-tags' instead.
Could you send an updated patch ?
Regards,
--
Nicolas Goaziou