help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: folding-mode question


From: Tim X
Subject: Re: folding-mode question
Date: Wed, 08 Dec 2010 15:29:45 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

tomer <tomer1levin@walla.co.il> writes:

> On Sep 22, 12:45 pm, Marc Mientki <mien...@nonet.com> 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    <jamie A T imbolc.ucc dt ie>
;;              Jari Aalto
;;              Anders Lindgren <andersl A T csd.uu dt se>
;; Maintainer:  Jari Aalto <jari aalto A T cante dt net>
;;              Anders Lindgren <andersl A T csd.uu dt se>
;; 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]