From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: folding-mode question Date: Sat, 25 Sep 2010 10:47:19 +1000 Organization: Unlimited download news at news.astraweb.com Message-ID: <87wrqak5t4.fsf@puma.rapttech.com.au> References: <6280c85e-1c8a-4a8e-afb0-7759ece217b6@a19g2000vbi.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1291872533 20758 80.91.229.12 (9 Dec 2010 05:28:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 05:28:53 +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 Dec 09 06:28:48 2010 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.69) (envelope-from ) id 1PQZ3g-0006rZ-5E for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 06:28:48 +0100 Original-Received: from localhost ([127.0.0.1]:33116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQZ3f-0007h6-Cw for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 00:28:47 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news-xfer.nntp.sonic.net!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:lFKs6YYJ55JN9MhFEHT1X0+VLF4= Original-Lines: 101 Original-NNTP-Posting-Host: d6c8a956.news.astraweb.com Original-X-Trace: DXC=Z\d]BhiIn50l=bkA3Hk5C1L?0kYOcDh@:i=VFiPm?<[5Ljd<>OFZ\J0eV68aEXRT8=51aL; 6BXc13 Original-Xref: usenet.stanford.edu gnu.emacs.help:181470 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:76738 Archived-At: tomer writes: > On Sep 22, 12:45 pm, Marc Mientki wrote: >> Am 22.09.2010 11:47, schrieb tomer: >> >> > Thanks for the answer I >> > work with a language called "e" (hardware verification langauge) it >> > looks like C but not exactly. >> > am I still able to use hideshow ? >> >> I would simply switch to c-mode and see what happens. >> >> regards >> Marc > > I have tried it is not practical. > the folding is great because it not language related. > the thing that is miss is to collapse in the middle of the line. > doest the folding.el capable of collpase in the middle of the line? There are a couple of folding mode packages available on the emacs wiki. I sometimes use one that works quite well. There was an older one which I used a lot back in emacs 20 days. From memory, some of the folding modes became a little dated and some a little unstable once overlays were introduced into emacs. The biggest problem appears to have been lack of maintenance. The mode I sometimes use (many of them are just called folding.el or folding-mode.el, which makes it a bit confusing ;;; folding.el --- A folding-editor-like minor mode. ;; Copyright (C) 2002-2006 ;; Jari Aalto ;; Copyright (C) 1994-2001 ;; Jari Aalto, Anders Lindgren. ;; Copyright (C) 1992, 1993 ;; Jamie Lokier, All rights reserved. ;; ;; Author: Jamie Lokier ;; Jari Aalto ;; Anders Lindgren ;; Maintainer: Jari Aalto ;; Anders Lindgren ;; Created: 1992 ;; Version: 2004.1125 (2.117+) ;; RCS version: $Revision: 1.3 $ ;; Date: $Date: 2006/09/11 16:03:17 $ ;; Keywords: tools ;;{{{ GPL ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU General Public License as ;; published by the Free Software Foundation, ;; or (at your option) any later version. ;; ;; GNU Emacs is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to the ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, ;; Boston, MA 02111-1307, USA. ;;}}} ;;; Commentary: ;;{{{ Introduction ;; Preface ;; ;; This package provides a minor mode, compatible with all major ;; editing modes, for folding (hiding) parts of the edited text or ;; program. ;; ;; Folding mode handles a document as a tree, where each branch ;; is bounded by special markers `{{{' and `}}}'. A branch can be ;; placed inside another branch, creating a complete hierarchical ;; structure. ;; ;; Folding mode can CLOSE a fold, leaving only the initial `{{{' ;; and possibly a comment visible. ;; ;; It can also ENTER a fold, which means that only the current ;; fold will be visible, all text above `{{{' and below `}}}' ;; will be invisible. ;; ;; Please note, that the maintainers do not recommend to use only ;; folding for you your code layout and navigation. Folding.el is ;; on its best when it can "chunk" large sections of code inside ;; folds. The larger the chunks, the more the usability of ;; folding will increase. Folding.el is not meant to hide ;; individual functions: you may be better served by hideshow.el ;; or imenu.el (which can parse the function indexes) -- tcross (at) rapttech dot com dot au