From: Reiner Steib <reinersteib+gmane@imap.cc>
To: emacs-devel@gnu.org
Subject: forward-paragraph and fill-paragraph (outline mode)
Date: Sun, 30 Sep 2007 21:01:05 +0200 [thread overview]
Message-ID: <v9zlz42d1q.fsf@marauder.physik.uni-ulm.de> (raw)
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/
next reply other threads:[~2007-09-30 19:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-30 19:01 Reiner Steib [this message]
2007-10-01 17:41 ` forward-paragraph and fill-paragraph (outline mode) Richard Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=v9zlz42d1q.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
--cc=emacs-devel@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 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).