From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: folding-mode question
Date: Sat, 25 Sep 2010 10:47:19 +1000 [thread overview]
Message-ID: <87wrqak5t4.fsf@puma.rapttech.com.au> (raw)
In-Reply-To: 6280c85e-1c8a-4a8e-afb0-7759ece217b6@a19g2000vbi.googlegroups.com
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
prev parent reply other threads:[~2010-09-25 0:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-22 6:58 folding-mode question tomer
2010-09-22 8:44 ` Marc Mientki
2010-09-22 9:47 ` tomer
2010-09-22 10:45 ` Marc Mientki
2010-09-24 0:17 ` tomer
2010-09-24 7:13 ` Marc Mientki
2010-09-25 19:31 ` tomer
2010-09-28 9:49 ` Marc Mientki
2010-09-28 22:46 ` Stefan Monnier
2010-09-29 8:54 ` Marc Mientki
2010-09-29 8:56 ` Marc Mientki
2010-09-29 9:00 ` Marc Mientki
[not found] ` <87sk0yk5al.fsf@puma.rapttech.com.au>
2010-09-28 9:35 ` Marc Mientki
2010-09-25 0:47 ` Tim X [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wrqak5t4.fsf@puma.rapttech.com.au \
--to=timx@nospam.dev.null \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.