From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: outline: how to hide the subheadings? Date: Tue, 11 Aug 2009 15:12:30 +0200 Message-ID: References: <64ddd166-6277-4f90-b4b8-9c96edd8547a@u16g2000pru.googlegroups.com> <34aeef3d-aae8-44ae-be09-207513cf3e53@y4g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249996404 21700 80.91.229.12 (11 Aug 2009 13:13:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2009 13:13:24 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Xah Lee Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 11 15:13:14 2009 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.50) id 1MarA0-0000Us-In for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Aug 2009 15:13:04 +0200 Original-Received: from localhost ([127.0.0.1]:36359 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mar9y-0001Bn-TS for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Aug 2009 09:13:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mar9a-0001B2-OY for help-gnu-emacs@gnu.org; Tue, 11 Aug 2009 09:12:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mar9V-00015Q-3c for help-gnu-emacs@gnu.org; Tue, 11 Aug 2009 09:12:37 -0400 Original-Received: from [199.232.76.173] (port=34732 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mar9U-00015A-Rr for help-gnu-emacs@gnu.org; Tue, 11 Aug 2009 09:12:32 -0400 Original-Received: from mail-yx0-f172.google.com ([209.85.210.172]:34179) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mar9U-00043m-Hm for help-gnu-emacs@gnu.org; Tue, 11 Aug 2009 09:12:32 -0400 Original-Received: by yxe2 with SMTP id 2so5005769yxe.14 for ; Tue, 11 Aug 2009 06:12:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=j3nMbFGTpQUl3LfYzTY6tiaNwrnBwmqERIhddMZAkQQ=; b=rG6ZIbTjMsd6CbfZwUZcbTj8XjAtzgTrnyR6CN7XlDvaKoVFe8ZXxhNLk3jNk22Qo4 ugb+/9k3pF5D2aSMxQ5tB1EV+GW0dmQVtG7lDo000wBcgz5narGPw8uqJeA1Q6IQnIxX 4+dcO+hZLY4p7Q946NMUldUlM8kUSA6KGAyn4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=mNjyk9x6NHQGTWQ2JNO/JCV/dhq4jTL+dYgZyXH4KoPvPx2vA3/ukUPD1SuHoe3vlL Tv0N2shEB+1tj6ReVjG4SahrOFRPFpHKZT0yxfUkAY5rCy7RSjpP5Lg2xKHhesHyAAkD thmEFoOucQ2xMoEJFpqYqAy2+gcyocw908/4U= Original-Received: by 10.100.8.4 with SMTP id 4mr5272533anh.146.1249996351170; Tue, 11 Aug 2009 06:12:31 -0700 (PDT) In-Reply-To: <34aeef3d-aae8-44ae-be09-207513cf3e53@y4g2000prf.googlegroups.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:67045 Archived-At: Hi Xah, There is a new minor mode named foldit-mode in latest nXhtml beta 1.94. Could you perhaps test it with outline-magic? On Mon, Aug 10, 2009 at 4:29 PM, Xah Lee wrote: > On Aug 10, 4:41 am, JackPhil wrote: >> If a heading have subheadings=EF=BC=8Cthe subheadings will always be sho= wn. I >> want them to be hidden, not only the body of subheadings. How TO? > > i just learned outline-mode this month, due to reading emacs 23's NEWs > file. > > in outline mode, type Alt+x describe-mode, and it'll spit out its > inline doc. Then you can read all about the shortcuts for hiding > header or text etc. > > Quote: > > Commands: > C-c C-n =C2=A0 outline-next-visible-heading =C2=A0 =C2=A0 =C2=A0move by v= isible headings > C-c C-p =C2=A0 outline-previous-visible-heading > C-c C-f =C2=A0 outline-forward-same-level =C2=A0 =C2=A0 =C2=A0 =C2=A0simi= lar but skip > subheadings > C-c C-b =C2=A0 outline-backward-same-level > C-c C-u =C2=A0 outline-up-heading =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0move from subheading to heading > > C-c C-t make all text invisible (not headings). > C-c C-a make everything in buffer visible. > C-c C-q =C2=A0make only the first N levels of headers visible. > > however, the keys are exceedingly complex and their logic cumbersome, > especially if you have cua-mode on, or if you also have your own > keyboard customizations. > > So, i went to emacswiki for some read up. > > http://www.emacswiki.org/emacs/OutlineMode > > which gives a very good intro about outline mode. > > Then, i found out about outline-magic package by Carsten Dominik, > which provides much better shortcuts and commands, so you simply use > arrow keys to do various expanding/hiding of the headers, or just > press tab to cycle thru the common pattern of toggling thru showing/ > hiding sub sections. > > The name Carsten Dominik sounds familiar, and indeed, he's the author > of org-mode, which i never used but did spend some time on in the past > to vaguely recall it's outgrowth of outline-mode. > > So, i did a hour of study or 2. Basically, my quick conclusion is that > org-mode completely supplants outline-mode in features and quality. > > just set your mode to org-mode, then just type tab key to hide/show > headers or subsections. org-mode is robust and well maintained, so > it's good to bet on. :D > > you could put: > (defalias 'outline-mode 'org-mode) > > hope this helps. :D > > =C2=A0Xah > =E2=88=91 http://xahlee.org/ > > =E2=98=84 >