From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthias Meulien Newsgroups: gmane.emacs.help Subject: Bug in elide-head Date: 07 Dec 2002 00:59:12 +0100 Organization: ...!#$@~? Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039219228 24604 80.91.224.249 (7 Dec 2002 00:00:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 7 Dec 2002 00:00:28 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18KSOK-0006O2-00 for ; Sat, 07 Dec 2002 01:00:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18KSFO-0003Ve-00; Fri, 06 Dec 2002 18:51:06 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!proxad.net!feeder2-1.proxad.net!news2-1.free.fr!not-for-mail Mail-Copies-To: never Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Lines: 28 Original-NNTP-Posting-Date: 07 Dec 2002 00:49:05 MET Original-NNTP-Posting-Host: 62.147.142.245 Original-X-Trace: 1039218545 news2-1.free.fr 2152 62.147.142.245 Original-X-Complaints-To: abuse@proxad.net Original-Xref: shelby.stanford.edu gnu.emacs.help:107821 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:4369 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4369 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