emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Local subtree view (analysis of a fundamental issue with subtree


From: Samuel Wales
Subject: Re: [O] Local subtree view (analysis of a fundamental issue with subtree narrowing)
Date: Sat, 2 Jun 2012 19:51:43 -0700

Hi Rebel,

On 6/2/12, Rebel Neurofog <address@hidden> 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 via email to

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