emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: Local subtree view (analysis of a fundamental issue with subtree narrowing)
@ 2012-06-03  2:51 Samuel Wales
  2012-06-03  6:18 ` Rebel Neurofog
  0 siblings, 1 reply; 2+ messages in thread
From: Samuel Wales @ 2012-06-03  2:51 UTC (permalink / raw)
  To: Rebel Neurofog; +Cc: emacs-orgmode

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

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

* Re: Local subtree view (analysis of a fundamental issue with subtree narrowing)
  2012-06-03  2:51 Local subtree view (analysis of a fundamental issue with subtree narrowing) Samuel Wales
@ 2012-06-03  6:18 ` Rebel Neurofog
  0 siblings, 0 replies; 2+ messages in thread
From: Rebel Neurofog @ 2012-06-03  6:18 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

On Sun, Jun 3, 2012 at 6:51 AM, Samuel Wales <samologist@gmail.com> wrote:
> 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.

I've installed org-7.8.11
Now there's no flooding up of next line.
But original buffer is still edited incorrectly.

I even found org-indirect-buffer-display variable.
But still when I kill indirect buffer I have to press Tab several times
to make Org-mode specific things look fine.

I believe the problem is about indirect buffer editing:
modified part is inserted into view-precomposed data incorrectly.

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

end of thread, other threads:[~2012-06-03  6:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-03  2:51 Local subtree view (analysis of a fundamental issue with subtree narrowing) Samuel Wales
2012-06-03  6:18 ` Rebel Neurofog

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).