From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Outline mode Date: Fri, 31 Aug 2007 16:22:22 -0400 Message-ID: References: <87odgnbr9q.fsf@earthlink.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188591758 16377 80.91.229.12 (31 Aug 2007 20:22:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 31 Aug 2007 20:22:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: John J Foerch Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 31 22:22:37 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IRD0n-0003QW-Fq for ged-emacs-devel@m.gmane.org; Fri, 31 Aug 2007 22:22:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRD0m-0005XX-Lx for ged-emacs-devel@m.gmane.org; Fri, 31 Aug 2007 16:22:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IRD0j-0005Wi-Po for emacs-devel@gnu.org; Fri, 31 Aug 2007 16:22:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IRD0i-0005WV-7b for emacs-devel@gnu.org; Fri, 31 Aug 2007 16:22:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRD0i-0005WS-2k for emacs-devel@gnu.org; Fri, 31 Aug 2007 16:22:32 -0400 Original-Received: from x-132-204-254-24.xtpr.umontreal.ca ([132.204.254.24] helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IRD0h-0007Rb-QX for emacs-devel@gnu.org; Fri, 31 Aug 2007 16:22:31 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 60816B462C; Fri, 31 Aug 2007 16:22:22 -0400 (EDT) In-Reply-To: <87odgnbr9q.fsf@earthlink.net> (John J. Foerch's message of "Fri\, 31 Aug 2007 12\:30\:41 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Detected-Kernel: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:77508 Archived-At: > Outline-mode has a problem that I would like to fix. To see the > problem, hide an entry (C-c C-c) in an outline-mode buffer, and put > point at the end of the heading with C-e. Point will then be located > to the right of the ellipsis, and as far as emacs knows, point is on > the last line of the hidden entry. Typing characters or hitting > backspace, and many other commands will affect the last line of the > entry. Yes. That's a known shortcoming in the redisplay engine: the cursor should be drawn to the left of the ellipsis to better reflect the position of point. > When an entry is collapsed in outline-mode, what actually gets marked > invisible is everything from the newline of the heading to the > character before the final newline of the entry. It would make more > sense, if the newline of the heading were left visible, and the final > newline of the entry were hidden. The ellipsis can be placed in the > buffer by using the 'display property on the newline of the heading. I don't think that's a good idea in general: it forces every entry to span at least two display lines: one for the heading and another for the ellipsis. In some contexts it might be accpetable, but definitely not always. > However, there is a large problem with fixing outline-mode. The > problem is that many of the modes that derive their behavior from > outline-mode probably depend on the current way that entries are > hidden. I am hoping that I can get advice from more experienced emacs > developers on how to go about this project. I am also hoping to get > help from the maintainers of as many of the derived modes as possible. Maybe you could make it an option. Stefan