all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matthias Meulien <meulien@club.lemonde.fr>
Subject: Bug in elide-head
Date: 07 Dec 2002 00:59:12 +0100	[thread overview]
Message-ID: <m2adjik8bz.fsf@clarinde.localdomain> (raw)

Hi,

I think there is a bug in `elide-head'. 

Look at the way the header is made invisible:

(overlay-put elide-head-overlay 'invisible t)

Now suppose you call `elide-head' in a new buffer in `outline-mode';
`outline-mode' had add (outline . t) to `buffer-invisibility-spec', which
made `buffer-invisibility-spec' into a list. But

,----[ C-h v buffer-invisibility-spec RET ]
| (...)
| This variable is always local in all buffers.
| The default is t, which means that text is invisible
| if it has a non-nil `invisible' property.
| If the value is a list, a text character is invisible if its `invisible'
| property is an element in that list.
| If an element is a cons cell of the form (PROP . ELLIPSIS),
| then characters with property value PROP are invisible,
| and they have an ellipsis as well if ELLIPSIS is non-nil.
`----

The header will not disappear because the `invisible' property of the
elide-head-overlay isn't an element of `buffer-invisibility-spec' !
-- 
Matthias

             reply	other threads:[~2002-12-06 23:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-06 23:59 Matthias Meulien [this message]
2002-12-07  0:09 ` Bug in elide-head Matthias Meulien

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=m2adjik8bz.fsf@clarinde.localdomain \
    --to=meulien@club.lemonde.fr \
    /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.