From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: forward-paragraph and fill-paragraph (outline mode) Date: Sun, 30 Sep 2007 21:01:05 +0200 Message-ID: Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1191178991 14906 80.91.229.12 (30 Sep 2007 19:03:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Sep 2007 19:03:11 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 30 21:03:06 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ic44G-0001Q2-Ss for ged-emacs-devel@m.gmane.org; Sun, 30 Sep 2007 21:03:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ic44D-00073l-9V for ged-emacs-devel@m.gmane.org; Sun, 30 Sep 2007 15:03:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ic449-00073F-KW for emacs-devel@gnu.org; Sun, 30 Sep 2007 15:02:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ic447-00072r-KK for emacs-devel@gnu.org; Sun, 30 Sep 2007 15:02:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ic447-00072o-EA for emacs-devel@gnu.org; Sun, 30 Sep 2007 15:02:55 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ic446-00036H-R4 for emacs-devel@gnu.org; Sun, 30 Sep 2007 15:02:55 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Ic43u-0004yq-CF for emacs-devel@gnu.org; Sun, 30 Sep 2007 19:02:42 +0000 Original-Received: from p54a95ffc.dip.t-dialin.net ([84.169.95.252]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 Sep 2007 19:02:42 +0000 Original-Received: from Reiner.Steib by p54a95ffc.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 Sep 2007 19:02:42 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 94 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p54a95ffc.dip.t-dialin.net X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML; )7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+; CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf, d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm Mail-Copies-To: nobody User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:a4s5ZCM8IJYdHt5eUGrtfi/eOUA= X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80059 Archived-At: 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/