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: Tue, 04 Sep 2007 15:45:17 -0400 Message-ID: References: <87odgnbr9q.fsf@earthlink.net> <87fy1zb77e.fsf@earthlink.net> <871wdicmx9.fsf@earthlink.net> <87vear6u8v.fsf@earthlink.net> <87wsv6ifrs.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 1188935158 6598 80.91.229.12 (4 Sep 2007 19:45:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Sep 2007 19:45:58 +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 Tue Sep 04 21:45:56 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 1ISeLT-0001GL-Ch for ged-emacs-devel@m.gmane.org; Tue, 04 Sep 2007 21:45:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISeLR-0006o5-QP for ged-emacs-devel@m.gmane.org; Tue, 04 Sep 2007 15:45:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISeL1-0006B0-1O for emacs-devel@gnu.org; Tue, 04 Sep 2007 15:45:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISeKz-00067t-Ah for emacs-devel@gnu.org; Tue, 04 Sep 2007 15:45:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISeKz-00067d-4y for emacs-devel@gnu.org; Tue, 04 Sep 2007 15:45:25 -0400 Original-Received: from x-132-204-254-144.xtpr.umontreal.ca ([132.204.254.144] helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ISeKy-0008W5-Nr for emacs-devel@gnu.org; Tue, 04 Sep 2007 15:45:24 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 8C721B40B5; Tue, 4 Sep 2007 15:45:16 -0400 (EDT) In-Reply-To: <87wsv6ifrs.fsf@earthlink.net> (John J. Foerch's message of "Tue\, 04 Sep 2007 11\:58\:31 -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:77761 Archived-At: > Sure. I want the heading line of a collapsed entry to be editable > independent of the entry. The newline at the end of the header should Does the patch do what you want? Stefan --- orig/lisp/outline.el +++ mod/lisp/outline.el @@ -708,7 +708,10 @@ If FLAG is nil then text is shown, while if FLAG is t the text is hidden." (remove-overlays from to 'invisible 'outline) (when flag - (let ((o (make-overlay from to))) + ;; We use `front-advance' here because the invisible text begins at the + ;; very end of the heading, before the newline, so text inserted at FROM + ;; belongs to the heading rather than to the entry. + (let ((o (make-overlay from to nil 'front-advance))) (overlay-put o 'invisible 'outline) (overlay-put o 'isearch-open-invisible (or outline-isearch-open-invisible-function