help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fill-paragraph: multi-level indentations / enumerations?


From: Markus Dehmann
Subject: Re: fill-paragraph: multi-level indentations / enumerations?
Date: Thu, 5 Feb 2009 19:02:02 -0800 (PST)
User-agent: G2/1.0

On Feb 5, 9:25 pm, Xah Lee <address@hidden> wrote:
> On Feb 5, 8:32 am, Markus Dehmann <address@hidden> 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.

Emacs, 22.2.50.1, Carbon Version 1.6.0

Well actually, it *almost* works on the Mac version: It works fine
with stars, or with (1), (2), etc:

(1) blah blah blah blah blah blah blah blah
    blah blah blah blah blah blah blah
    (2) foo foo foo foo foo foo foo foo foo
        foo foo foo foo foo foo foo

The indentation is correct here on my Mac. But my linux emacs does the
stupid thing instead.

With things like (1.1), which I used in my original post, my Mac Emacs
version fails as well.

So, if I like the fill-paragraph behavior on my Mac Emacs better, can
I just try to locate a fill-paragraph.el file and copy it over to my
linux emacs? Or how should I proceed?

Thanks
Markus


reply via email to

[Prev in Thread] Current Thread [Next in Thread]