Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: What should a folded element look like?: msg#00104

emacs.nxml.general

Subject: Re: What should a folded element look like?

On 2004-09-20, James Clark <jjc@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Sun, 2004-09-19 at 04:19, Peter Heslin wrote:
> > I suggest that folds should be allowed to be nested, and that closing
> > or opening a fold should not alter the folded state of its subfolds.
>
> Agreed, although there should probably be a command to unfold
> completely.

Yes, and another to recursively close all folds and subfolds. Then
you can go ahead and selectively open only those bits of the buffer
you want to see.

Another UI issue is the question of whether horizontal motion into a
fold should open it (via a post-command-hook). Reveal-mode and the
latest release of AUCTeX do this (as does Vim). I like it, but I have
my doubts about whether folds should close up again when point leaves
the fold. This is fine in AUCTeX, when you have a small region, such
as a footnote, or some other Latex macro, which easily fits on the
screen, and you can clearly see what is happening when the fold closes
again automatically. But when you have large chunks of text in a fold
-- more than one screen's worth -- the buffer becomes bewildering to
navigate. If you happen to scroll too far, all of a sudden the text
you were looking at disappears -- you can't scroll back again without
reopening the fold. That's my experience with outline-mode used in
conjunction with reveal-mode, anyway.

Vim auto-reveals folds on horizontal entry, but does not close them
again on exit, if memory serves. Another nice feature of Vim's
folding is that the closed fold tells you how many lines are hidden,
so you know the difference between a <div> that holds 5 lines and one
that holds 5000. Since I'm at it, another nice feature of Vim is that
the whole headline of a closed fold is highlighted, which makes them
more visible than when you have only a little ellipsis at the end of
the line. foldingo.el implements something like this in Emacs.

Peter



------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/2U_rlB/TM
--------------------------------------------------------------------~->


Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/emacs-nxml-mode/

<*> To unsubscribe from this group, send an email to:
emacs-nxml-mode-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe