From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: info invisible changes Date: 14 Nov 2002 01:39:02 +0100 Sender: emacs-devel-admin@gnu.org Message-ID: <5xy97xast5.fsf@kfs2.cua.dk> References: <200211011623.gA1GNAL03601@rum.cs.yale.edu> <5xznsnvabl.fsf@kfs2.cua.dk> <200211061511.gA6FBfL02691@rum.cs.yale.edu> <5xfzu79jxp.fsf@kfs2.cua.dk> <200211121849.gACInHA08073@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037232909 7282 80.91.224.249 (14 Nov 2002 00:15:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 14 Nov 2002 00:15:09 +0000 (UTC) Cc: rms@gnu.org, miles@lsi.nec.co.jp, monnier+gnu/emacs@rum.cs.yale.edu, emacs-devel@gnu.org, emacs-pretest-bug@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18C7Hm-00011J-00 for ; Thu, 14 Nov 2002 00:51:06 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18C7Tu-0002kS-00 for ; Thu, 14 Nov 2002 01:03:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18C7Hh-00063Y-00; Wed, 13 Nov 2002 18:51:01 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18C76J-0000Nk-00 for emacs-devel@gnu.org; Wed, 13 Nov 2002 18:39:15 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18C76G-0000EE-00 for emacs-devel@gnu.org; Wed, 13 Nov 2002 18:39:14 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18C76F-0000Df-00; Wed, 13 Nov 2002 18:39:12 -0500 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id 8689F7C017; Wed, 13 Nov 2002 23:39:09 +0000 (GMT) Original-To: "Stefan Monnier" In-Reply-To: <200211121849.gACInHA08073@rum.cs.yale.edu> Original-Lines: 24 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9401 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9401 "Stefan Monnier" writes: > > > 3) when the fill code inserts a newline to wrap the text, it may > > insert that newline in an invisible part of the buffer, so it has > > no visible effect (i.e. displaying one very long line rather than > > two normal width lines). > > You can fix this easily. See fill-nobreak-predicate. I tried using this, but it is only checked if not at (bolp) -- which may happen inside invisible text. I have added an explicit fill-nobreak-invisible variable which causes fill-nobreak-p to return t for invisible text, and explicitly causes fill-newline to remove any invisible property on the newline it inserts. I then modified info to set fill-nobreak-invisible to t and run fill-paragraph on the paragraphs with mangled *note references. I think the result is quite pleasant! -- Kim F. Storm http://www.cua.dk