emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: "Jan Böcker" <jan.boecker@jboecker.de>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] org-narrow-to-subtree: prevent prepending text to the next headline while narrowed
Date: Fri, 22 Jan 2010 11:30:10 +0100	[thread overview]
Message-ID: <DF20B357-A15F-49F1-89E2-BCDD40A9A303@gmail.com> (raw)
In-Reply-To: <4B544258.4040305@jboecker.de>

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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

  reply	other threads:[~2010-01-22 10:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-18 11:13 [PATCH] org-narrow-to-subtree: prevent prepending text to the next headline while narrowed Jan Böcker
2010-01-22 10:30 ` Carsten Dominik [this message]
2010-01-22 16:50   ` Samuel Wales
2010-02-01  8:11     ` Carsten Dominik
2010-02-01 17:26       ` Samuel Wales
2010-02-02  6:17         ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DF20B357-A15F-49F1-89E2-BCDD40A9A303@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jan.boecker@jboecker.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).