all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: hide-show mode: unbalanced parentheses
Date: Fri, 05 Jan 2007 00:10:37 -0500	[thread overview]
Message-ID: <jwvk6022hbc.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: 1167965857.446927.38250@42g2000cwt.googlegroups.com

> hs-hide-all (in hs-minor-mode, a "hide-show" mode) gets stuck
> with "unbalanced parentheses" in my latex source.

Try M-x report-emacs-bug.  Maybe this can fail more gracefully.

> Some unbalanced
> parens and brackets are necessary.  For example,
>    \@ifnextchar [{\@tauZero}{\tau_{\!\!o}}
> Notice the unmatched "[" .  Or, you sometimes write
> "1) blah blah; 2) blah blah; . . . ."
> Is there any fix?

You can probably try and fool hs-minor-mode by adding dummy matching chars
(typically wrapped in some ad-hoc command, such as \ignore{[} where \ignore
is defined as a nop that takes an arg and throws it away).
Kind of ugly, tho.  Sadly, LaTeX is inherently non-structured, although it
happens to be properly structured in 99% of the cases.

> Or is there any alternative to hs-minor-mode?  I could imagine that
> folding is possible on the basis of sectioning commands like "\section".

You may want to try outline-minor-mode for that.


        Stefan

  reply	other threads:[~2007-01-05  5:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-05  2:57 hide-show mode: unbalanced parentheses Ryo
2007-01-05  5:10 ` Stefan Monnier [this message]
2007-01-05 13:55 ` Tassilo Horn
2007-01-16  0:43   ` furue

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=jwvk6022hbc.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    /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.