emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug with inserting a heading in narrowed buffer ?
@ 2008-07-17  2:06 Jeff Li
  2008-07-17 16:58 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Li @ 2008-07-17  2:06 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 589 bytes --]

Hi, Carsten and list,

It seems there is a bug with inserting a new heading in a narrowed org-mode
buffer. I am using version 6.05

The bug can be reproduced with the following 2 lines test file:

* heading A
* heading B

1. narrow to "heading A" subtree. (C-x n s)
2. goto the end of the buffer
3. insert a new heading.
4. widen the buffer again

Now one can see the "heading B" is folded into the newly created heading.

The problem seems to stem from the fact that "org-insert-heading" is unaware
it is at the beginning of a new heading, because the buffer is narrowed.

Thanks,

-Jeff

[-- Attachment #1.2: Type: text/html, Size: 706 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug with inserting a heading in narrowed buffer ?
  2008-07-17  2:06 Bug with inserting a heading in narrowed buffer ? Jeff Li
@ 2008-07-17 16:58 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2008-07-17 16:58 UTC (permalink / raw)
  To: Jeff Li; +Cc: emacs-orgmode

Fixed, thanks.

- Carsten

On Jul 16, 2008, at 7:06 PM, Jeff Li wrote:

> Hi, Carsten and list,
>
> It seems there is a bug with inserting a new heading in a narrowed  
> org-mode buffer. I am using version 6.05
>
> The bug can be reproduced with the following 2 lines test file:
>
> * heading A
> * heading B
>
> 1. narrow to "heading A" subtree. (C-x n s)
> 2. goto the end of the buffer
> 3. insert a new heading.
> 4. widen the buffer again
>
> Now one can see the "heading B" is folded into the newly created  
> heading.
>
> The problem seems to stem from the fact that "org-insert-heading" is  
> unaware it is at the beginning of a new heading, because the buffer  
> is narrowed.
>
> Thanks,
>
> -Jeff
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-17 16:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-17  2:06 Bug with inserting a heading in narrowed buffer ? Jeff Li
2008-07-17 16:58 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).