From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: collapse lisp code Date: Thu, 08 Mar 2007 11:48:02 +0100 Organization: University Koblenz-Landau Campus Koblenz Message-ID: <87k5xsm2ot.fsf@baldur.tsdh.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1173354021 20566 80.91.229.12 (8 Mar 2007 11:40:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Mar 2007 11:40:21 +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 08 12:40:13 2007 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 1HPGyh-0007v7-Kq for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Mar 2007 12:40:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPGyt-00046H-JN for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Mar 2007 06:40:23 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.ision.net!newsfeed2.easynews.net!ision!news.belwue.de!news.uni-kl.de!cache.uni-koblenz.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 53 Original-NNTP-Posting-Host: dslb-084-063-029-019.pools.arcor-ip.net Original-X-Trace: cache.uni-koblenz.de 1173350883 1202 84.63.29.19 (8 Mar 2007 10:48:03 GMT) Original-X-Complaints-To: news@cache.uni-koblenz.de Original-NNTP-Posting-Date: Thu, 8 Mar 2007 10:48:03 +0000 (UTC) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEW2mhnYvEn26qD+/vbC t5CEWCLiAAAACXBIWXMAAAsSAAALEgHS3X78AAAATnRFWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYA CmV4aWYKICAgICAgMjAKNDU3ODY5NjYwMDAwNGQ0ZDAwMmEwMDAwMDAwODAwMDAwMDAwMDAwMAqJ uBZbAAAACXZwQWcAAAAwAAAAMADO7oxXAAABkElEQVQ4y3WTDZLCIAyFQ08A6AFK0gNowgG6de9/ pn2Bau22ZRyF+ZKXX8lOjqZs1K9i+gUmStKAxmzTsjlECtwBEUfKb1CJKDvQkfwEWUFZCsD0shpi I8MbZAWoQWNI+KS3S2VhACaolwSAXzGkUD0ok7q4liwID4vFJAGEG1DIorDV4pGmXBCKka7GJPb0 ItwlIMHsHkJQMftlPKQQIVDA+wmAXgi70pg5pTyiGwC5t2SCw0LBOHNJ3oDH2sQf2CciETXNMLKx A82IhtCtbV6kQsJfT+aYuJB8+jtIA/OQiK3QNpDUgZeMtDYA7QZQl0fsUn6rK4heE+I36+WFvnMH paVobYJ6l5Ztr0M+IlgQr0vMvlKRPj0X5R1oDuXmXnICpDV9B6ooeugX//oCs2ry8dlzDyCASd2O HtNg2CC/jbwDMybYd24PoMSx8HugG3gMUoZtIhuYuRV3ANXX8XUCvIBRjkDjDStgR1CD/PuDrmDM dg7i6xwclVZQDkoriHwB7nYBlgugcgXsSurk/AEJvb3wF7X09QAAABp6VFh0SlBFRy1Db2xvcnNw YWNlAAB42jMCAAAzADMRFn5jAAAAJ3pUWHRKUEVHLVNhbXBsaW5nLWZhY3RvcnMAAHjaM6ow0jGs MARhABGDAulkDxtiAAAAAElFTkSuQmCC User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:hLiTf6mxnxzz/80xY7HI08843HI= Original-Xref: shelby.stanford.edu gnu.emacs.help:146185 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:41789 Archived-At: A Soare writes: Hi, > What library is used to collapse lisp code (i.e. to see in the buffer > just the definition of a function instead of the whole body) ? You can use ,----[ C-h f hs-minor-mode RET ] | hs-minor-mode is an interactive compiled Lisp function in `hideshow.el'. | (hs-minor-mode &optional ARG) | | Toggle hideshow minor mode. | With ARG, turn hideshow minor mode on if ARG is positive, off otherwise. | When hideshow minor mode is on, the menu bar is augmented with hideshow | commands and the hideshow commands are enabled. | The value '(hs . t) is added to `buffer-invisibility-spec'. | | The main commands are: `hs-hide-all', `hs-show-all', `hs-hide-block', | `hs-show-block', `hs-hide-level' and `hs-toggle-hiding'. There is also | `hs-hide-initial-comment-block' and `hs-mouse-toggle-hiding'. | | Turning hideshow minor mode off reverts the menu bar and the | variables to default values and disables the hideshow commands. | | Lastly, the normal hook `hs-minor-mode-hook' is run using `run-hooks'. | | Key bindings: | key binding | --- ------- | | C-c Prefix Command | hs-mouse-toggle-hiding | | C-c @ Prefix Command | | C-c @ C-c hs-toggle-hiding | C-c @ C-h hs-hide-block | C-c @ C-l hs-hide-level | C-c @ C-s hs-show-block | C-c @ ESC Prefix Command | | C-c @ C-M-h hs-hide-all | C-c @ C-M-s hs-show-all `---- It works for a lot of languages, not only lisp. Bye, Tassilo -- A morning without coffee is like something without something else.