emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] [PATCH] org-narrow-to-subtree: prevent prepending text to


From: Carsten Dominik
Subject: Re: [Orgmode] [PATCH] org-narrow-to-subtree: prevent prepending text to the next headline while narrowed
Date: Fri, 22 Jan 2010 11:30:10 +0100

Applied (but not yet pushed because of hardware upgrade at repo.or.cz), thanks.

I had implemented it the other way round because that would avoid making new empty lines by accident, but I do agree that swallowing a headline is by fare the more severe problem.

Thanks.

- Carsten

On Jan 18, 2010, at 12:13 PM, Jan Böcker wrote:

Consider the following situation:

* A
 Some text.
* B

- Place the cursor on A, press C-x n w (org-narrow-to-subtree).
- Go to the very end of the buffer and insert "xyz".
- C-x n w (widen).

You end up with:

* A
 Some Text
xyz* B


The attached one-line patch fixes this by passing `nil' for the
`to-heading' parameter of `org-end-of-subtree'.
<0001-org-narrow-to-subtree-prevent-prepending-text-to- the.patch>_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten







reply via email to

[Prev in Thread] Current Thread [Next in Thread]