help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to check if point is on a line starting a hidden paragraph?


From: Teemu Likonen
Subject: Re: How to check if point is on a line starting a hidden paragraph?
Date: Wed, 21 Jul 2010 20:59:22 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.50 (gnu/linux)

* 2010-07-21 19:47 (+0200), Tassilo Horn wrote:

> I need a predicate that checks if the current line after which some
> hidden text follows. I mean those lines ending in an artificial `...'.
>
> Concrete examples are outlines whose contents are hidden, or lines in
> gnus summary buffers whose subthread is hidden, or lines after which
> more indented text is hidden when using selective-display.

Something like this perhaps?

    (defun invisible-text-starts-from-this-line-p ()
      (save-excursion
        (goto-char (line-end-position))
        (invisible-p (point))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]