unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* forward-paragraph and fill-paragraph (outline mode)
@ 2007-09-30 19:01 Reiner Steib
  2007-10-01 17:41 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Reiner Steib @ 2007-09-30 19:01 UTC (permalink / raw)
  To: emacs-devel

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

\f
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

\f
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

\f
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/

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

* Re: forward-paragraph and fill-paragraph (outline mode)
  2007-09-30 19:01 forward-paragraph and fill-paragraph (outline mode) Reiner Steib
@ 2007-10-01 17:41 ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2007-10-01 17:41 UTC (permalink / raw)
  To: Reiner Steib; +Cc: emacs-devel

Header lines are treated as paragraph separators in Outline mode.
That was done intentionally.  I won't necessarily argue against
changing it, but designing the details of better behavior may be 
nontrivial.

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

end of thread, other threads:[~2007-10-01 17:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-30 19:01 forward-paragraph and fill-paragraph (outline mode) Reiner Steib
2007-10-01 17:41 ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).