From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: seems to be a general bug with line hiding if lines not starting in column 0 Date: Thu, 16 Feb 2012 00:55:51 +0100 Message-ID: <87lio37it4.fsf@web.de> References: <24360549.3351.1328405170718.JavaMail.geo-discussion-forums@yquu38> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329350081 15731 80.91.229.3 (15 Feb 2012 23:54:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Feb 2012 23:54:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 16 00:54:41 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RxogK-0005Ww-CS for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Feb 2012 00:54:40 +0100 Original-Received: from localhost ([::1]:58443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxogG-0002Zu-Vi for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Feb 2012 18:54:36 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:55805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxogD-0002ZO-0P for help-gnu-emacs@gnu.org; Wed, 15 Feb 2012 18:54:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RxogB-0006r9-Tl for help-gnu-emacs@gnu.org; Wed, 15 Feb 2012 18:54:32 -0500 Original-Received: from mout.web.de ([212.227.15.4]:64664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxogB-0006r1-Ko for help-gnu-emacs@gnu.org; Wed, 15 Feb 2012 18:54:31 -0500 Original-Received: from snow.dragon ([89.204.153.242]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0M4Hqd-1SpVWo0bXn-00rhSA; Thu, 16 Feb 2012 00:54:30 +0100 In-Reply-To: (Michael Heerdegen's message of "Wed, 15 Feb 2012 22:31:02 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) X-Provags-ID: V02:K0:mS+yAo8jmFOvmhw3fcYgowtnVsaMYljlgGp7OoGBXNS wDxRuJth3DcjIH3bBaDadNupSCyWQa/KrodkNRmRCTw8HYt3ga NfHoDr4xy0rCaGsayoBTEWeu17ZBEi+IqcdPqatIbqx4X0pUuk OJ5DGAhqDYitjjUJTQCeHGkQ64cg4JT0dzYkBPmMDA/FfOK/Kg +9ASQwHSHbA4uxmFCRcEch/P6UcjQwQzrurYbWiuIg= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.15.4 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83772 Archived-At: Michael Heerdegen writes: > Looking at the sources, outline seems not to allow headlines with > whitespace at the beginning per default. I wonder why you could hide such lines at all with outline-minor-mode. I can't do that with the default setup. > I think you could get it work, but you would have to modify some > variables like `outline-regexp' and `outline-heading-alist'. Maybe it's > not worth the trouble if you are don't want to deal with internals. Here is an example file with proper local variable settings that works for me: --8<---------------cut here---------------start------------->8--- * Headline1a ** H2a *** H3a *** H3b ** H2b * H1b Local variables: outline-regexp: " *\\(\\*+\\)" outline-level: (lambda () (- (match-end 1) (match-beginning 1))) eval: (outline-minor-mode) End: --8<---------------cut here---------------end--------------->8--- Michael.