all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: Rebel Neurofog <rebelneurofog@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Local subtree view (analysis of a fundamental issue with subtree narrowing)
Date: Sat, 2 Jun 2012 19:51:43 -0700	[thread overview]
Message-ID: <CAJcAo8s0kyvdsj7n1rc899Q=bNS9_ggzVcHD58b=6OLVQw69Tw@mail.gmail.com> (raw)

Hi Rebel,

On 6/2/12, Rebel Neurofog <rebelneurofog@gmail.com> wrote:
> The closest thing I'd like to have is (org-tree-to-indirect-buffer),
> but, first, there's a bug in it (I use Emacs 23.4.2 - latest official):
> - When I edit the last empty line in indirect buffer, the new text
> gets into next entry (inside original buffer) like this:

> ** TODO Go shoping
> Some new text** TODO Finish Line Edit widget

What version of Org are you running?  My version works.  That
apparently empty line is possibly the beginning of the next line.  It
might need a newline.  That is expected.

This is /related to/ a subtle issue in which Org calls an Outline mode
function that is arguably counterintuitive and dangerous.  That
function does not include the final newline, which has led to buffer
corruption bugs.  I reported one long ago with sorting in indirect
buffers.  IMO narrowing should always include the final newline, but
it is a potentially involved discussion.

However, having an empty line at the end of your narrowed region is
expected with what I believe the correct narrowing should be, and
actually unexpected with the default way.  So your bug /should/ be
that it adds a spurious extra empty line, not that it corrupts the
next line.  :)

Maybe you added the empty line yourself, and then added text to it
without  adding a newline.

I hope that helps.

I am interested off-list in the origin of your name, if it has meaning.

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

             reply	other threads:[~2012-06-03  2:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-03  2:51 Samuel Wales [this message]
2012-06-03  6:18 ` Local subtree view (analysis of a fundamental issue with subtree narrowing) Rebel Neurofog

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

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

  git send-email \
    --in-reply-to='CAJcAo8s0kyvdsj7n1rc899Q=bNS9_ggzVcHD58b=6OLVQw69Tw@mail.gmail.com' \
    --to=samologist@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rebelneurofog@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.