From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: How to check if point is on a line starting a hidden paragraph? Date: Wed, 21 Jul 2010 20:59:22 +0300 Message-ID: <87d3ugu35x.fsf@mithlond.arda> References: <87iq48rak2.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1279735495 850 80.91.229.12 (21 Jul 2010 18:04:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Jul 2010 18:04:55 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 21 20:04:54 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Obdex-0006pe-UY for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Jul 2010 20:04:48 +0200 Original-Received: from localhost ([127.0.0.1]:57883 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ObddZ-0000DV-LW for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Jul 2010 14:03:21 -0400 Original-Received: from [140.186.70.92] (port=59926 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Obdcu-0000CA-TH for help-gnu-emacs@gnu.org; Wed, 21 Jul 2010 14:02:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Obdct-0005z9-Fn for help-gnu-emacs@gnu.org; Wed, 21 Jul 2010 14:02:40 -0400 Original-Received: from mta-out.inet.fi ([195.156.147.13]:59465 helo=jenni2.inet.fi) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Obdct-0005i3-Ac for help-gnu-emacs@gnu.org; Wed, 21 Jul 2010 14:02:39 -0400 Original-Received: from mithlond.arda (84.251.132.215) by jenni2.inet.fi (8.5.122) id 4C33307700667B66; Wed, 21 Jul 2010 20:59:23 +0300 Original-Received: from dtw by mithlond.arda with local (Exim 4.69) (envelope-from ) id 1ObdZi-0000wV-K9; Wed, 21 Jul 2010 20:59:22 +0300 In-Reply-To: <87iq48rak2.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Wed, 21 Jul 2010 19:47:57 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:74212 Archived-At: * 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))))