From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21710: 25.0.50; self-insert-command before a folded outline inserts after the outline Date: Mon, 19 Oct 2015 19:22:29 +0300 Message-ID: <83twpmg75m.fsf@gnu.org> References: <87a8resxc4.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1445271821 25470 80.91.229.3 (19 Oct 2015 16:23:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Oct 2015 16:23:41 +0000 (UTC) Cc: 21710@debbugs.gnu.org To: Oleh Krehel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 19 18:23:33 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZoDDg-00063E-56 for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Oct 2015 18:23:32 +0200 Original-Received: from localhost ([::1]:40855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoDDf-0005fQ-Gb for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Oct 2015 12:23:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoDDG-00059i-Ox for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2015 12:23:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoDDC-0007XJ-PC for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2015 12:23:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoDDC-0007X5-Mc for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2015 12:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZoDDC-0004p4-DM for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2015 12:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Oct 2015 16:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21710 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21710-submit@debbugs.gnu.org id=B21710.144527175218485 (code B ref 21710); Mon, 19 Oct 2015 16:23:02 +0000 Original-Received: (at 21710) by debbugs.gnu.org; 19 Oct 2015 16:22:32 +0000 Original-Received: from localhost ([127.0.0.1]:56939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZoDCh-0004o4-3E for submit@debbugs.gnu.org; Mon, 19 Oct 2015 12:22:31 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:57837) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZoDCe-0004nv-Em for 21710@debbugs.gnu.org; Mon, 19 Oct 2015 12:22:29 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NWH00J006RVS500@a-mtaout23.012.net.il> for 21710@debbugs.gnu.org; Mon, 19 Oct 2015 19:22:27 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWH00JWO6TEOG50@a-mtaout23.012.net.il>; Mon, 19 Oct 2015 19:22:27 +0300 (IDT) In-reply-to: <87a8resxc4.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107764 Archived-At: > From: Oleh Krehel > Date: Mon, 19 Oct 2015 17:16:11 +0200 > > To reproduce with "emacs -Q", create a file ~/outline-test with the > following contents: > > * foo > some text > * bar > some text > > Open the file, move to start, "M-x" `outline-minor-mode', > "M-x" `outline-hide-sublevels'. > > Move to the end of bar and insert "tt" - it works correctly. > > But move to the end of foo and insert "tt": here's what it looks like > ("|" is the point): > > * foo...t| > * bartt... > > Here's the full text after "M-x" `outline-show-all': > > * foot > some textt > * bartt > some text > > As you see, the second "t" was inserted after the outline. The reason for this is that on all header lines but the last inserting the first 't' makes it invisible. On the last line, 't' stays visible. Then point adjustment kicks in, and moves point out of the invisible region, so the second 't' is inserted at the end of the sub-level text. This hints at stickiness, but I cannot find anything in the documentation about stickiness of overlays.