emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org, Rainer Stengele <rainer.stengele@diplan.de>
Subject: Re: Re: struggling with simple indentation
Date: Tue, 26 Oct 2010 15:12:58 +0200	[thread overview]
Message-ID: <87pquxqeqt.wl%n.goaziou@gmail.com> (raw)
In-Reply-To: <E1B1AAFA-B981-442E-B54B-F0982F294052@gmail.com>

>>>>> Carsten Dominik writes:

> I think it would be OK to modify the indentation code to do the most
> useful thing in this case, which is indenting to under the list.  Is
> is OK to put the burden for terminating list by indentation on the
> user.  

I fear that by doing this modification, we're letting in again a
dreadful bug. Let me explain it.

This is not the most useful thing in this case, but the most
conservative one. This is needed when you want to correct indentation
of a region (or the whole buffer). If we turn the behavior the other
way, indenting the buffer will ruin parts of it, like before, as any
text beyond a list would go inside its last item, regardless of text
position.

And this is worse than having to cope with some rectangle selection,
because it would modify parts of buffer outside user's view. With the
current behavior, what's in stays in, and what's out stays out.

Another idea would be to slightly modify `org-paste-special' and
`org-yank' so anything yanked inside a list is automatically put
inside the item at point. The exact behavior of this has yet to be
defined, though.

Regards,

-- Nicolas

  reply	other threads:[~2010-10-26 13:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-25 12:35 struggling with simple indentation Rainer Stengele
2010-10-25 17:06 ` Nicolas Goaziou
2010-10-26  8:45   ` Rainer Stengele
2010-10-26  9:05     ` Nicolas Goaziou
2010-10-26  9:06     ` Nicolas Goaziou
2010-10-26 10:09       ` Rainer Stengele
2010-10-26 10:58         ` Nicolas Goaziou
2010-10-26 12:25           ` Carsten Dominik
2010-10-26 13:12             ` Nicolas Goaziou [this message]
2010-10-26 15:10           ` Re: struggling with simple indentation (possible bug) Anthony Lander
2010-10-26 21:43             ` [patch] struggling with simple indentation Nicolas Goaziou

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=87pquxqeqt.wl%n.goaziou@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rainer.stengele@diplan.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).