all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: fill-paragraph: multi-level indentations / enumerations?
Date: Thu, 5 Feb 2009 18:25:35 -0800 (PST)	[thread overview]
Message-ID: <bb865350-5c27-4c9f-9e9a-e554fbf3cfcf@f40g2000pri.googlegroups.com> (raw)
In-Reply-To: 8990a4ca-9688-43b8-9b51-cfc09ab9ff46@k9g2000vbl.googlegroups.com

On Feb 5, 8:32 am, Markus Dehmann <markus.dehm...@gmail.com> wrote:
> The fill-paragraph function in my emacs 21.4.1 (on linux) is missing
> some basic understanding of multi-level indentations or enumerations.
>
> If I am in text-mode and I type
> (1) blah blah blah blah blah blah blah blah blah blah blah blah blah
>     blah blah blah
>     (1.1) blah blah blah blah blah blah blah blah blah blah blah blah
> blah blah
>
> and fill-paragraph will change it to this:
> (1) blah blah blah blah blah blah blah blah blah blah blah blah blah
>     blah blah blah (1.1) blah blah blah blah blah blah blah blah blah
>     blah blah blah blah blah
>
> But of course I want the correct indentation instead:
> (1) blah blah blah blah blah blah blah blah blah blah blah blah blah
>     blah blah blah
>     (1.1) blah blah blah blah blah blah blah blah blah blah blah blah
> blah
>           blah
>
> How can I do that? Can I modify the fill-paragraph function so that it
> understands hierarchical indentations?

Basically no, you'll have to write your own, which should be very
easy. Prob 30 min to 1h for me.

> My emacs version on the Mac
> does it

aquaemacs or carbon emacs? what version? I can't reproduce it.

  Xah
∑ http://xahlee.org/

  reply	other threads:[~2009-02-06  2:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-05 16:32 fill-paragraph: multi-level indentations / enumerations? Markus Dehmann
2009-02-06  2:25 ` Xah Lee [this message]
2009-02-06  3:02   ` Markus Dehmann
2009-02-06  4:06     ` Xah Lee
2009-02-06  5:07     ` Andreas Politz
2009-02-07 16:56 ` Phil Hudson

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bb865350-5c27-4c9f-9e9a-e554fbf3cfcf@f40g2000pri.googlegroups.com \
    --to=xahlee@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.