From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yagnesh Newsgroups: gmane.emacs.help Subject: Re: code folding with ? Date: Mon, 9 Apr 2012 20:44:39 +0900 Message-ID: References: <87ty0wdkyc.fsf@live.com> <874nsv99x9.fsf@altern.org> <87mx6mtvgq.fsf@live.com> <4F82BFE3.9080408@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1333987987 28461 80.91.229.3 (9 Apr 2012 16:13:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Apr 2012 16:13:07 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andreas =?utf-8?Q?R=C3=B6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 09 18:13:07 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 1SHHDA-0000na-Fm for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Apr 2012 18:13:00 +0200 Original-Received: from localhost ([::1]:45448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHHD9-00066t-M9 for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Apr 2012 12:12:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHD3L-0000h8-LJ for help-gnu-emacs@gnu.org; Mon, 09 Apr 2012 07:46:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHD3J-00016i-1J for help-gnu-emacs@gnu.org; Mon, 09 Apr 2012 07:46:35 -0400 Original-Received: from blu0-omc4-s24.blu0.hotmail.com ([65.55.111.163]:58236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHD3I-000167-Ts for help-gnu-emacs@gnu.org; Mon, 09 Apr 2012 07:46:32 -0400 Original-Received: from BLU0-SMTP255 ([65.55.111.135]) by blu0-omc4-s24.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 9 Apr 2012 04:46:30 -0700 X-Originating-IP: [133.87.217.175] X-Originating-Email: [yagnesh@live.com] Original-Received: from smtp.live.com ([133.87.217.175]) by BLU0-SMTP255.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 9 Apr 2012 04:46:28 -0700 In-Reply-To: <4F82BFE3.9080408@easy-emacs.de> ("Andreas =?utf-8?Q?R=C3=B6h?= =?utf-8?Q?ler=22's?= message of "Mon, 09 Apr 2012 12:54:27 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-OriginalArrivalTime: 09 Apr 2012 11:46:29.0196 (UTC) FILETIME=[66CEC0C0:01CD1646] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ X-Received-From: 65.55.111.163 X-Mailman-Approved-At: Mon, 09 Apr 2012 12:12:53 -0400 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:84396 Archived-At: Hi Andreas, Andreas R=C3=B6hler writes: > Am 08.04.2012 11:37, schrieb Yagnesh Raghava Yakkala: >> >> Hello Bastien, >> >> Bastien writes: >> >>> Yagnesh Raghava Yakkala writes: >>> >>>> To begin with elisp, can anybody tell me how to make backtab to show t= he >>>> outline of the buffer at least for two levels. I mean first press woul= d show >>>> me buffer folded upto top level comments, defuns, defcustoms and defva= rs >>>> and the second press would show me entire buffer. >>> >>> Add a hook to use `orgstruct-mode' in emacs-lisp buffers: >>> >>> (add-hook 'emacs-lisp-mode-hook 'orgstruct-mode) >>> >>> Define a new `org-cycle-global' command: >>> >>> (defun org-cycle-global () (interactive) (org-cycle t)) >>> >>> Set this keybinding: >>> >>> (global-set-key (kbd "") 'org-cycle-global) >> >> Wow this is great, working nice too (except when point is at the end of >> buffer). I didn't think, Org itself can be used here. I wonder why its n= ot >> working with other programming modes, say perl and python. >> >> >> Thanks. >> > > https://bugs.launchpad.net/python-mode/+bug/977121 > > a feature request for now > > Thank you Andreas. --=20 YYR