all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: Tassilo Horn <tassilo@member.fsf.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to check if point is on a line starting a hidden paragraph?
Date: Wed, 21 Jul 2010 20:59:22 +0300	[thread overview]
Message-ID: <87d3ugu35x.fsf@mithlond.arda> (raw)
In-Reply-To: <87iq48rak2.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Wed, 21 Jul 2010 19:47:57 +0200")

* 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	other threads:[~2010-07-21 17:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-21 17:47 How to check if point is on a line starting a hidden paragraph? Tassilo Horn
2010-07-21 17:59 ` Teemu Likonen [this message]
2010-07-21 18:01   ` Teemu Likonen
2010-07-21 18:21     ` Tassilo Horn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d3ugu35x.fsf@mithlond.arda \
    --to=tlikonen@iki.fi \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tassilo@member.fsf.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.