From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bev Newsgroups: gmane.emacs.help Subject: Re: Open Outline-mode file in collapsed state Date: Thu, 27 Mar 2008 14:01:16 -0700 (PDT) Organization: http://groups.google.com Message-ID: <9ed9dec2-d2bc-4563-95a6-70ed25056034@u69g2000hse.googlegroups.com> References: <86abkntrcs.fsf@timbral.net> <86od90b5wy.fsf@timbral.net> <02bf0d38-92a9-4c06-9d64-22109d8df255@8g2000hse.googlegroups.com> <86fxucaqz3.fsf@timbral.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206654086 21837 80.91.229.12 (27 Mar 2008 21:41:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Mar 2008 21:41:26 +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 Mar 27 22:41:56 2008 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 1Jezr8-0000pa-4P for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Mar 2008 22:41:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JezqW-0002hi-Th for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Mar 2008 17:41:16 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!out04b.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!postnews.google.com!u69g2000hse.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: 67.164.66.199 Original-X-Trace: posting.google.com 1206651676 28122 127.0.0.1 (27 Mar 2008 21:01:16 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 27 Mar 2008 21:01:16 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u69g2000hse.googlegroups.com; posting-host=67.164.66.199; posting-account=BmgeLAoAAAD1M9a8l4SdHemxlRwuAbRB User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 Firefox/1.0.7 SUSE/1.0.7-0.1,gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:157385 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:52753 Archived-At: On Mar 27, 12:48 pm, Evans Winner wrote: > bev writes: > > Yep, a slight variation of your solution works. I now > have in my .emacs: > (add-hook 'outline-mode-hook '(lambda () (hide-sublevels 1))) > > Forgot to quote it. Sorry. > > I've never seen that syntax before -- putting a '1' > after a function that takes no args. Does that just mean > 'make it so'? I don't know why just having > hide-sublevels without the '1' won't work. > > `hide-sublevels' used non-interactively actually does take > one argument[1]. Its interactive definition must give it some > way around that, since used interactively it behaves as if > it were passed the argument `1'. I am not sure how it works > after a quick glance. > > Footnotes: > [1] The documentation for `hide-sublevels' is: > > ,----[ C-h f hide-sublevels RET ] > | hide-sublevels is an interactive compiled Lisp function in > | `outline.el'. > | > | > | (hide-sublevels LEVELS) > | > | Hide everything but the top LEVELS levels of headers, in whole buffer. > | > | [back] > `---- Ahhhh.... a great light begins to dawn! Gracias amigo. Bev