GNU bug report logs - #21710
25.0.50; self-insert-command before a folded outline inserts after the outline

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Oleh Krehel <ohwoeowho@HIDDEN>; dated Mon, 19 Oct 2015 15:16:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 21710 <at> debbugs.gnu.org:


Received: (at 21710) by debbugs.gnu.org; 21 Oct 2015 17:02:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 21 13:02:39 2015
Received: from localhost ([127.0.0.1]:59623 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Zowmd-0006ZE-5G
	for submit <at> debbugs.gnu.org; Wed, 21 Oct 2015 13:02:39 -0400
Received: from mtaout23.012.net.il ([80.179.55.175]:53524)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1Zowma-0006Z4-3m
 for 21710 <at> debbugs.gnu.org; Wed, 21 Oct 2015 13:02:37 -0400
Received: from conversion-daemon.a-mtaout23.012.net.il by
 a-mtaout23.012.net.il (HyperSendmail v2007.08) id
 <0NWK00500XG8DE00@HIDDEN> for 21710 <at> debbugs.gnu.org;
 Wed, 21 Oct 2015 20:02:34 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout23.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0NWK005KQY098290@HIDDEN>;
 Wed, 21 Oct 2015 20:02:34 +0300 (IDT)
Date: Wed, 21 Oct 2015 20:02:33 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#21710: 25.0.50;
 self-insert-command before a folded outline inserts after the outline
In-reply-to: <87a8rcs777.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Oleh Krehel <ohwoeowho@HIDDEN>
Message-id: <83r3koupcm.fsf@HIDDEN>
References: <87a8resxc4.fsf@HIDDEN> <83twpmg75m.fsf@HIDDEN>
 <87a8rcs777.fsf@HIDDEN>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 21710
Cc: 21710 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> From: Oleh Krehel <ohwoeowho@HIDDEN>
> Cc: 21710 <at> debbugs.gnu.org
> Date: Wed, 21 Oct 2015 15:05:16 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > The reason for this is that on all header lines but the last inserting
> > the first 't' makes it invisible.
> 
> This isn't a good behavior. `self-insert-command' should not put text
> into an invisible region.

It doesn't.  It inserts the character at point.  The problem is that
the inserted character becomes invisible because the overlay becomes
applicable to it.

> "C-e" should complement this behavior, starting from:
> 
> * |foo...
> * bar...
> 
> pressing "C-e" should result in:
> 
> * foo|...
> * bar...

If that's what you want, you need to program that into the mode.  The
default effect of C-e is to put point one character before the newline
on the same visible line, which is _after_ the invisible text.  IOW,
this is not a bug, but perhaps a missing feature.

> And from the state above, pressing "C-d" should result in:
> (user-error "Overlay read-only"), instead of deleting hidden characters.

Once again, you need to program that.  By default, C-d just deletes
the character at point.

> > 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.
> 
> Can you point me to a place where I can read up on this point
> adjustment?

Some minimal Lisp-level documentation is in "(elisp) Adjusting Point.
For the gory details, see the function adjust_point_for_property in
keyboard.c.

> I'd like to help in fixing this bug, if it's not too complicated.

It's not a bug in point adjustment, strictly speaking: that part does
its job as intended.  The problem is with the fact that the inserted
character becomes invisible.

> So far, I'm looking at this code:
> 
> (defun outline-flag-region (from to flag)
>   "Hide or show lines from FROM to TO, according to FLAG.
> 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
>     ;; 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 'evaporate t)
>       (overlay-put o 'invisible 'outline)
>       (overlay-put o 'isearch-open-invisible
> 		   (or outline-isearch-open-invisible-function
> 		       'outline-isearch-open-invisible))))
>   ;; Seems only used by lazy-lock.  I.e. obsolete.
>   (run-hooks 'outline-view-change-hook))
> 
> The comment about `front-advance' implies that what I proposed above was
> the intended behavior, which is broken currently.

Then why does it work correctly on the last heading?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21710; Package emacs. Full text available.

Message received at 21710 <at> debbugs.gnu.org:


Received: (at 21710) by debbugs.gnu.org; 21 Oct 2015 13:04:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 21 09:04:50 2015
Received: from localhost ([127.0.0.1]:58866 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Zot4T-0007c6-JA
	for submit <at> debbugs.gnu.org; Wed, 21 Oct 2015 09:04:49 -0400
Received: from mail-wi0-f173.google.com ([209.85.212.173]:33503)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ohwoeowho@HIDDEN>) id 1Zot4Q-0007bu-GU
 for 21710 <at> debbugs.gnu.org; Wed, 21 Oct 2015 09:04:47 -0400
Received: by wijp11 with SMTP id p11so94030407wij.0
 for <21710 <at> debbugs.gnu.org>; Wed, 21 Oct 2015 06:04:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-type;
 bh=ba9GUHUrxOuqlFwJoP52sm2C+A3HkncBu+894mjCLVY=;
 b=he7/ROX0raM4E7y2zQpt27fdbwnFBTkHTHcaUnt1ssQpgvyTeB6n5SxihKhB9hbuzC
 MzIiCCcEMeKt1yRTyz0dv9bqkZ/H56D0QnrI/At9EfJcdo5VuYlkP61h+s46OVEsNqgX
 ycouaMHGalSM6L8rLkFz+SDhHO9JfqwjABpVRD3T8n7MYQDUohMTd/bT3tPXyjZ0mczk
 WU6F+4H2UxYQufJqQQQnbEFjxAtXfRVwmLYldeuLA9kHBHnaDenN+oIsGsaxSkj0wsro
 AD2B6fiZ8l/I/2IUubceEpEMh54C9y/W6I5nTelrb4S8JhwDwrb6GXyI7mE71rO1KB40
 jybg==
X-Received: by 10.180.89.67 with SMTP id bm3mr11482642wib.56.1445432685729;
 Wed, 21 Oct 2015 06:04:45 -0700 (PDT)
Received: from firefly (dyn069045.nbw.tue.nl. [131.155.69.45])
 by smtp.gmail.com with ESMTPSA id q1sm10314302wje.39.2015.10.21.06.04.44
 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
 Wed, 21 Oct 2015 06:04:44 -0700 (PDT)
From: Oleh Krehel <ohwoeowho@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#21710: 25.0.50;
 self-insert-command before a folded outline inserts after the outline
References: <87a8resxc4.fsf@HIDDEN> <83twpmg75m.fsf@HIDDEN>
Date: Wed, 21 Oct 2015 15:05:16 +0200
In-Reply-To: <83twpmg75m.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 19 Oct
 2015 19:22:29 +0300")
Message-ID: <87a8rcs777.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 21710
Cc: 21710 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Eli Zaretskii <eliz@HIDDEN> writes:

> The reason for this is that on all header lines but the last inserting
> the first 't' makes it invisible.

This isn't a good behavior. `self-insert-command' should not put text
into an invisible region. Instead it should put it ahead of it.

"C-e" should complement this behavior, starting from:

* |foo...
* bar...

pressing "C-e" should result in:

* foo|...
* bar...

And from the state above, pressing "C-d" should result in:
(user-error "Overlay read-only"), instead of deleting hidden characters.

Actually, the points above are often a source of confusion and
frustration. I wouldn't be surprised that this bug was reported before.
Currently, I work around this problem either by unfolding all outlines
while I'm editing, or transforming "foo|" into "foot|" with "C-b ot C-d"
instead of a simple "t".

> 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.

Can you point me to a place where I can read up on this point
adjustment? I'd like to help in fixing this bug, if it's not too
complicated. So far, I'm looking at this code:

(defun outline-flag-region (from to flag)
  "Hide or show lines from FROM to TO, according to FLAG.
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
    ;; 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 'evaporate t)
      (overlay-put o 'invisible 'outline)
      (overlay-put o 'isearch-open-invisible
		   (or outline-isearch-open-invisible-function
		       'outline-isearch-open-invisible))))
  ;; Seems only used by lazy-lock.  I.e. obsolete.
  (run-hooks 'outline-view-change-hook))

The comment about `front-advance' implies that what I proposed above was
the intended behavior, which is broken currently.






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21710; Package emacs. Full text available.

Message received at 21710 <at> debbugs.gnu.org:


Received: (at 21710) by debbugs.gnu.org; 19 Oct 2015 16:22:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 19 12:22:32 2015
Received: from localhost ([127.0.0.1]:56939 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZoDCh-0004o4-3E
	for submit <at> debbugs.gnu.org; Mon, 19 Oct 2015 12:22:31 -0400
Received: from mtaout23.012.net.il ([80.179.55.175]:57837)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1ZoDCe-0004nv-Em
 for 21710 <at> debbugs.gnu.org; Mon, 19 Oct 2015 12:22:29 -0400
Received: from conversion-daemon.a-mtaout23.012.net.il by
 a-mtaout23.012.net.il (HyperSendmail v2007.08) id
 <0NWH00J006RVS500@HIDDEN> for 21710 <at> debbugs.gnu.org;
 Mon, 19 Oct 2015 19:22:27 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout23.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0NWH00JWO6TEOG50@HIDDEN>;
 Mon, 19 Oct 2015 19:22:27 +0300 (IDT)
Date: Mon, 19 Oct 2015 19:22:29 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#21710: 25.0.50;
 self-insert-command before a folded outline inserts after the outline
In-reply-to: <87a8resxc4.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Oleh Krehel <ohwoeowho@HIDDEN>
Message-id: <83twpmg75m.fsf@HIDDEN>
References: <87a8resxc4.fsf@HIDDEN>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 21710
Cc: 21710 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> From: Oleh Krehel <ohwoeowho@HIDDEN>
> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21710; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Oct 2015 15:15:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 19 11:15:46 2015
Received: from localhost ([127.0.0.1]:56882 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZoCA5-0001fc-O8
	for submit <at> debbugs.gnu.org; Mon, 19 Oct 2015 11:15:45 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33591)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ohwoeowho@HIDDEN>) id 1ZoCA3-0001fS-Tw
 for submit <at> debbugs.gnu.org; Mon, 19 Oct 2015 11:15:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ohwoeowho@HIDDEN>) id 1ZoCA2-0003vr-W1
 for submit <at> debbugs.gnu.org; Mon, 19 Oct 2015 11:15:43 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:36739)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ohwoeowho@HIDDEN>) id 1ZoCA2-0003vd-RM
 for submit <at> debbugs.gnu.org; Mon, 19 Oct 2015 11:15:42 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43549)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ohwoeowho@HIDDEN>) id 1ZoCA1-0005Hr-Io
 for bug-gnu-emacs@HIDDEN; Mon, 19 Oct 2015 11:15:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ohwoeowho@HIDDEN>) id 1ZoC9y-0003tC-R6
 for bug-gnu-emacs@HIDDEN; Mon, 19 Oct 2015 11:15:41 -0400
Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:33878)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ohwoeowho@HIDDEN>) id 1ZoC9y-0003ss-JR
 for bug-gnu-emacs@HIDDEN; Mon, 19 Oct 2015 11:15:38 -0400
Received: by wikq8 with SMTP id q8so10607033wik.1
 for <bug-gnu-emacs@HIDDEN>; Mon, 19 Oct 2015 08:15:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:subject:date:message-id:mime-version:content-type;
 bh=zag42U6mmxm7kNL0sSQljlzYlTqJxGh4FngD5ZY5OPw=;
 b=IBTBLoINgECZePl42GDbwVoja9HXkRPtSNJJaPmsTk5bjRDuFKzygREZsD5oq6oGJO
 rxlo98KB/pKDF1DR3nfvHwL5XXA6Zf+jPRvFh+UkcNhtGKGNkqjT1GGtd0d9hxxM64Z0
 Yk+FhtF9INVhpvFt5q2BNJuOqdN4aisu5LE+tJZn2OYqwbXY8tgkbQmjRZsjcm9ubgy+
 kWb7H3tjuAaowsLm8tNr1aohh/sBF5Hi2olWaMucaigrnhoz7miPJYuZ6/t/K1mxhBU9
 Lg4akgum/c1QQPh4/suu1hKy0CzDc1Ojta0pwTv/0oH8do1tczuJsYIdLMiNC6mLNnxu
 NAjQ==
X-Received: by 10.180.34.38 with SMTP id w6mr19437128wii.78.1445267737171;
 Mon, 19 Oct 2015 08:15:37 -0700 (PDT)
Received: from firefly (dyn069045.nbw.tue.nl. [131.155.69.45])
 by smtp.gmail.com with ESMTPSA id jh4sm8686385wjb.33.2015.10.19.08.15.36
 for <bug-gnu-emacs@HIDDEN>
 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
 Mon, 19 Oct 2015 08:15:36 -0700 (PDT)
From: Oleh Krehel <ohwoeowho@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 25.0.50;
 self-insert-command before a folded outline inserts after the outline
Date: Mon, 19 Oct 2015 17:16:11 +0200
Message-ID: <87a8resxc4.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

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.
Since Org mode uses outlines, this bug also appears there.




Acknowledgement sent to Oleh Krehel <ohwoeowho@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#21710; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.