From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Re: struggling with simple indentation Date: Tue, 26 Oct 2010 15:12:58 +0200 Message-ID: <87pquxqeqt.wl%n.goaziou@gmail.com> References: <87zku2qk1i.wl%n.goaziou@gmail.com> <4CC6953F.7060600@diplan.de> <87tyk9qq5i.wl%n.goaziou@gmail.com> <4CC6A8CE.2080804@diplan.de> <87r5fdqkyh.wl%n.goaziou@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from [140.186.70.92] (port=51109 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PAjVS-0005j8-3E for emacs-orgmode@gnu.org; Tue, 26 Oct 2010 09:24:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PAjKn-0003AM-N8 for emacs-orgmode@gnu.org; Tue, 26 Oct 2010 09:13:02 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:52576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PAjKn-0003AD-Id for emacs-orgmode@gnu.org; Tue, 26 Oct 2010 09:13:01 -0400 Received: by eydd26 with SMTP id d26so2099356eyd.0 for ; Tue, 26 Oct 2010 06:13:00 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org, Rainer Stengele >>>>> 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