From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [BUG/PATCH] Set fill-indent-according-to-mode to nil in Org buffers Date: Fri, 21 Jan 2011 14:34:47 +0100 Message-ID: <871v46tm6g.wl%n.goaziou@gmail.com> References: <1295606863-16627-1-git-send-email-wence@gmx.li> 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=41834 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgH8f-00049A-Pa for emacs-orgmode@gnu.org; Fri, 21 Jan 2011 08:34:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PgH8e-0007JZ-GU for emacs-orgmode@gnu.org; Fri, 21 Jan 2011 08:34:53 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:43964) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PgH8e-0007JH-7g for emacs-orgmode@gnu.org; Fri, 21 Jan 2011 08:34:52 -0500 Received: by bwz16 with SMTP id 16so1512749bwz.0 for ; Fri, 21 Jan 2011 05:34:51 -0800 (PST) In-Reply-To: <1295606863-16627-1-git-send-email-wence@gmx.li> 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: Lawrence Mitchell Cc: emacs-orgmode@gnu.org Hello, > This is defeated by the indentation code, which does not recognise > sublists correctly and gets the indentation wrong. Would you mind elaborating? I fail to see where the indentation code has some problem recognizing lists. > By setting `fill-indent-according-to-mode' to nil, we tell Emacs' > filling code to pay attention to `adaptive-fill-prefix' rather than > using `indent-line-function'. Not using `org-indent-line-function' sounds like a very bad idea to me. Before ignoring this function, perhaps we could try to see what is wrong with it. > This is not a perfect solution, since refilling a list entry still > does not work correctly unless the entire item is on a single line. Huh? Again, could you provide an example, please? > --- The filling code is a maze of twisty passages all alike, so I > don't really understand what's going on. The problem is demonstrated > with auto-fill-mode on when typing sublist entries that wrap over > more than a single line > #+begin_src org > * Header - List > + Sublist entry with lots and lots and lots and lots of text is > wrapped > like this > #+end_src org > And "like this" is incorrectly considered to be be part of the > "List" entry, rather than the "Sublist" entry. If "like this" is like this (!), then it _isn't_ part of the list. So it is correctly considered outside of the list. Or am I missing the point? Regards, -- Nicolas