From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yagnesh Raghava Yakkala Newsgroups: gmane.emacs.help Subject: code folding with ? Date: Sat, 07 Apr 2012 17:07:07 +0900 Message-ID: <87ty0wdkyc.fsf@live.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1333786067 18199 80.91.229.3 (7 Apr 2012 08:07:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 7 Apr 2012 08:07:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 07 10:07:41 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SGQgP-0007Xt-2F for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Apr 2012 10:07:41 +0200 Original-Received: from localhost ([::1]:43378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGQgO-00061u-9T for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Apr 2012 04:07:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGQgJ-00061a-6Q for help-gnu-emacs@gnu.org; Sat, 07 Apr 2012 04:07:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SGQgF-0000C8-KO for help-gnu-emacs@gnu.org; Sat, 07 Apr 2012 04:07:34 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:60270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGQgF-0000By-DY for help-gnu-emacs@gnu.org; Sat, 07 Apr 2012 04:07:31 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SGQgB-0007Mr-8W for help-gnu-emacs@gnu.org; Sat, 07 Apr 2012 10:07:27 +0200 Original-Received: from 59x158x65x92.ap59.ftth.ucom.ne.jp ([59.158.65.92]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 Apr 2012 10:07:27 +0200 Original-Received: from yagnesh by 59x158x65x92.ap59.ftth.ucom.ne.jp with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 Apr 2012 10:07:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 59x158x65x92.ap59.ftth.ucom.ne.jp User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux) Cancel-Lock: sha1:EFq+KOnHMBQUIS9+Z3SZj+6tGBQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:84367 Archived-At: Hello all, Just like org does, folding (or cycling) with its outlines by pressing backtab(shift+), I would want every programming language buffer to show such a /outline/ of the program(buffer) to get a overview of the program I am working on. I know this depends on the major mode of the current buffer and combination of suitable minor modes namely outline-minor-mode or hs-minor-mode. (or may be with CEDET with its semantic parsing) To begin with elisp, can anybody tell me how to make backtab to show the outline of the buffer at least for two levels. I mean first press would show me buffer folded upto top level comments, defuns, defcustoms and defvars and the second press would show me entire buffer. I hope my question is clear. Thanks. -- YYR