From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: program outlining Date: Mon, 11 Jul 2016 16:13:57 +0100 Message-ID: <87a8hotdfu.fsf@robertthorpeconsulting.com> References: <69592de8-5bae-48ac-9435-76e219d6ee38@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1468250082 31779 80.91.229.3 (11 Jul 2016 15:14:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2016 15:14:42 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Rusi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 11 17:14:31 2016 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 1bMcuk-00048Z-2A for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jul 2016 17:14:30 +0200 Original-Received: from localhost ([::1]:34204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMcug-0000ux-53 for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jul 2016 11:14:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMcuI-0000uq-6d for help-gnu-emacs@gnu.org; Mon, 11 Jul 2016 11:14:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMcuE-0006zL-5D for help-gnu-emacs@gnu.org; Mon, 11 Jul 2016 11:14:02 -0400 Original-Received: from outbound-smtp03.blacknight.com ([81.17.249.16]:46800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMcuD-0006yQ-UO for help-gnu-emacs@gnu.org; Mon, 11 Jul 2016 11:13:58 -0400 Original-Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp03.blacknight.com (Postfix) with ESMTPS id A527A98DBB for ; Mon, 11 Jul 2016 15:13:55 +0000 (UTC) Original-Received: (qmail 12728 invoked from network); 11 Jul 2016 15:13:55 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[82.17.24.21]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 11 Jul 2016 15:13:55 -0000 In-Reply-To: <69592de8-5bae-48ac-9435-76e219d6ee38@googlegroups.com> (message from Rusi on Mon, 11 Jul 2016 05:59:59 -0700 (PDT)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.17.249.16 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:110778 Archived-At: Rusi writes: > Ive been trying to figure out the best outlining that emacs can give for > programs. > > Outline-mode seems to be more for text than code > Outshine mode inspired by above+org-mode seemed promising in that it seem= s to > make org mode's wonderful TAB-behavior work for code. > But I couldn=E2=80=99t get it to work > > So hideshow=E2=80=A6 > But hideshow keystrokes are clumsy There's a difference between personal code and shared code here. The outline based modes require additions to the code to be made in the right way. Making that work with shared code when other people are using different editors is difficult. Even if the other programmers use Emacs, many Emacs users don't use these modes. This is not a problem if it's personal code. Hide/show, selective display and pages are more general tools. They require little or nothing to be embedded in the code itself. But, in many cases an automatically generated navigation tree can't beat a manually created one. So, there's no one best way. BR, Robert Thorpe