From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: code folding with ? Date: Mon, 09 Apr 2012 12:54:27 +0200 Message-ID: <4F82BFE3.9080408@easy-emacs.de> References: <87ty0wdkyc.fsf@live.com> <874nsv99x9.fsf@altern.org> <87mx6mtvgq.fsf@live.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1333968880 26566 80.91.229.3 (9 Apr 2012 10:54:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Apr 2012 10:54:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 09 12:54:39 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 1SHCF4-0004Ja-BW for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Apr 2012 12:54:38 +0200 Original-Received: from localhost ([::1]:51322 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHCF3-0007A7-Oz for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Apr 2012 06:54:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHCEz-0007A0-7P for help-gnu-emacs@gnu.org; Mon, 09 Apr 2012 06:54:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHCEx-0003B3-8O for help-gnu-emacs@gnu.org; Mon, 09 Apr 2012 06:54:32 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.187]:65063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHCEw-00039S-VV for help-gnu-emacs@gnu.org; Mon, 09 Apr 2012 06:54:31 -0400 Original-Received: from [192.168.178.27] (brln-4dbc53ed.pool.mediaWays.net [77.188.83.237]) by mrelayeu.kundenserver.de (node=mrbap4) with ESMTP (Nemesis) id 0LheLp-1RvHYD1IA5-00mpvI; Mon, 09 Apr 2012 12:54:28 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.28) Gecko/20120306 SUSE/3.1.20 Thunderbird/3.1.20 In-Reply-To: <87mx6mtvgq.fsf@live.com> X-Provags-ID: V02:K0:0hyz0cKsYmWelK/2iUdeFNZja3U3furpklrcqB7J9CZ 6s7eUrP7TEIUUxlyBTLIGba4HUxFlFtz31PpYgbhLPcjZZ6n56 XVRWQ+ze1zjOyeCd2k+QIr1akkJqWVTCu6SKLd7nxcwvBm80Q8 358+Ad2/JmMZTbUezRvIqoq8iq/wQW2OiUhBE4Fz0LSZ21IIA+ uR0/9+OK8EsPWuXSOScKqYsl8h6K+OhdSVM7Uux4mYzTrbG6cf ECVdVXJKkaDhx9wPGDJEQFlbESbqlftY++69+rt9D5yh0j/ASV O14YqUWMxHIHU6OzYRi1Ow/7ZfHzmMnl5Whj2j23iAaioG+6Mm H26zTOC6dgTvnABzPtc09hq3R/pT6RWhOsHGXcL0Z X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.126.187 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:84388 Archived-At: 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 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. >> >> 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 not > working with other programming modes, say perl and python. > > > Thanks. > https://bugs.launchpad.net/python-mode/+bug/977121 a feature request for now