emacs-devel
[Top][All Lists]
Advanced

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

forward-paragraph and fill-paragraph (outline mode)


From: Reiner Steib
Subject: forward-paragraph and fill-paragraph (outline mode)
Date: Sun, 30 Sep 2007 21:01:05 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

Hi,

in GNU Emacs 23.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.10.6) of
2007-09-29; Started with -Q.

(1) Consider the following file (^L should be a page break -> C-q C-l):

--8<---------------cut here---------------start------------->8---
* A a

* B b

^L
Local variables:
mode: outline
End:
--8<---------------cut here---------------end--------------->8---

When, point is on "A", press `M-}' (forward-paragraph).

Expected behavior: Point is somewhere near "B".  I wouldn't expect
forward-paragraph to move beyond the page separator.  I wouldn't
expect forward-paragraph to move beyond the next outline heading
line.

Actual behavior: Point is at point-max.

With the following file, fill-paragraph behaves as I'd expect:

--8<---------------cut here---------------start------------->8---
* A a

  a1
  a2

* B b

^L
Local variables:
mode: outline
End:
--8<---------------cut here---------------end--------------->8---

(2)  `M-q' (fill-paragraph).

(2a) Consider this file:

--8<---------------cut here---------------start------------->8---
* A a

  B
  b


Local variables:
mode: outline
End:
--8<---------------cut here---------------end--------------->8---

With point behind "A a", press `M-q'.

Result: "B b" on the body line.  Good.

(2b) Now take this file:

--8<---------------cut here---------------start------------->8---
* A a


Local variables:
mode: outline
End:
--8<---------------cut here---------------end--------------->8---

With point behind "A a", press `M-q'.

Result: The local variables section is destroyed.

--8<---------------cut here---------------start------------->8---
* A a


Local variables: mode: outline End:
--8<---------------cut here---------------end--------------->8---

I'd expect that nothing happens because the page break should stop
`M-q' from filling the text below it.  I'd even expect that Emacs
modes never fill local variables section.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/





reply via email to

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