all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* fill-paragraph: multi-level indentations / enumerations?
@ 2009-02-05 16:32 Markus Dehmann
  2009-02-06  2:25 ` Xah Lee
  2009-02-07 16:56 ` Phil Hudson
  0 siblings, 2 replies; 6+ messages in thread
From: Markus Dehmann @ 2009-02-05 16:32 UTC (permalink / raw)
  To: help-gnu-emacs

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? My emacs version on the Mac
does it, so there obviously is a way to get it.

Thanks,
Markus


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: fill-paragraph: multi-level indentations / enumerations?
  2009-02-05 16:32 fill-paragraph: multi-level indentations / enumerations? Markus Dehmann
@ 2009-02-06  2:25 ` Xah Lee
  2009-02-06  3:02   ` Markus Dehmann
  2009-02-07 16:56 ` Phil Hudson
  1 sibling, 1 reply; 6+ messages in thread
From: Xah Lee @ 2009-02-06  2:25 UTC (permalink / raw)
  To: help-gnu-emacs

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/^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: fill-paragraph: multi-level indentations / enumerations?
  2009-02-06  2:25 ` Xah Lee
@ 2009-02-06  3:02   ` Markus Dehmann
  2009-02-06  4:06     ` Xah Lee
  2009-02-06  5:07     ` Andreas Politz
  0 siblings, 2 replies; 6+ messages in thread
From: Markus Dehmann @ 2009-02-06  3:02 UTC (permalink / raw)
  To: help-gnu-emacs

On Feb 5, 9:25 pm, Xah Lee <xah...@gmail.com> wrote:
> 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.

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: fill-paragraph: multi-level indentations / enumerations?
  2009-02-06  3:02   ` Markus Dehmann
@ 2009-02-06  4:06     ` Xah Lee
  2009-02-06  5:07     ` Andreas Politz
  1 sibling, 0 replies; 6+ messages in thread
From: Xah Lee @ 2009-02-06  4:06 UTC (permalink / raw)
  To: help-gnu-emacs

On Feb 5, 7:02 pm, Markus Dehmann <markus.dehm...@gmail.com> wrote:

> > 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.

i cannot reproduce the behavior on the mac. I'm on
GNU Emacs 22.2.1 (powerpc-apple-darwin8.11.0, Carbon Version 1.6.0) of
2008-04-05 on g5.tokyo.stp.isas.jaxa.jp

though, newsgroup reformat things so maybe we don't have the same
input...

> 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?

yes, that'll probably work, or copy the whole file fill-paragraph.el
is in. Be sure to byte-compile it or delete the .elc file.

  Xah
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: fill-paragraph: multi-level indentations / enumerations?
  2009-02-06  3:02   ` Markus Dehmann
  2009-02-06  4:06     ` Xah Lee
@ 2009-02-06  5:07     ` Andreas Politz
  1 sibling, 0 replies; 6+ messages in thread
From: Andreas Politz @ 2009-02-06  5:07 UTC (permalink / raw)
  To: help-gnu-emacs

Markus Dehmann wrote:
> On Feb 5, 9:25 pm, Xah Lee <xah...@gmail.com> wrote:
>> 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.
> 
> 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.
> 
Your Mac Emacs has probably filladapt-mode installed and activated.

-ap
> 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: fill-paragraph: multi-level indentations / enumerations?
  2009-02-05 16:32 fill-paragraph: multi-level indentations / enumerations? Markus Dehmann
  2009-02-06  2:25 ` Xah Lee
@ 2009-02-07 16:56 ` Phil Hudson
  1 sibling, 0 replies; 6+ messages in thread
From: Phil Hudson @ 2009-02-07 16:56 UTC (permalink / raw)
  To: help-gnu-emacs

Markus Dehmann <markus.dehmann <at> gmail.com> writes:

> The fill-paragraph function in my emacs 21.4.1 (on linux) is missing
> some basic understanding of multi-level indentations or enumerations.

Is it possible/convenient for you to use org mode, not text mode? That will give
you everything you need for structured outline writing, plus lots more, with no
programming and minimal configuration.






^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-02-07 16:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-05 16:32 fill-paragraph: multi-level indentations / enumerations? Markus Dehmann
2009-02-06  2:25 ` Xah Lee
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

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.