emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Lawrence Mitchell <wence@gmx.li>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG/PATCH] Set fill-indent-according-to-mode to nil in	Org buffers
Date: Fri, 21 Jan 2011 14:34:47 +0100	[thread overview]
Message-ID: <871v46tm6g.wl%n.goaziou@gmail.com> (raw)
In-Reply-To: <1295606863-16627-1-git-send-email-wence@gmx.li>

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

  reply	other threads:[~2011-01-21 13:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-21 10:47 [BUG/PATCH] Set fill-indent-according-to-mode to nil in Org buffers Lawrence Mitchell
2011-01-21 13:34 ` Nicolas Goaziou [this message]
2011-01-21 14:21   ` Lawrence Mitchell
2011-01-21 16:00     ` Nicolas Goaziou
2011-01-21 16:09       ` Lawrence Mitchell

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=871v46tm6g.wl%n.goaziou@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=wence@gmx.li \
    /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).