GNU bug report logs - #19039
24.3; latex-mode paragraph-separate of \pagebreak[0]

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Kevin Ryde <user42_kevin@HIDDEN>; dated Thu, 13 Nov 2014 11:43:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 19039 <at> debbugs.gnu.org:


Received: (at 19039) by debbugs.gnu.org; 9 Mar 2016 06:07:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 09 01:07:02 2016
Received: from localhost ([127.0.0.1]:40404 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1adXGv-00089q-Qm
	for submit <at> debbugs.gnu.org; Wed, 09 Mar 2016 01:07:01 -0500
Received: from mail.mojserwer.eu ([195.110.48.8]:46464)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <mbork@HIDDEN>) id 1adXGu-00089h-9c
 for 19039 <at> debbugs.gnu.org; Wed, 09 Mar 2016 01:07:00 -0500
Received: from localhost (localhost [127.0.0.1])
 by mail.mojserwer.eu (Postfix) with ESMTP id B9F909EC6EB;
 Wed,  9 Mar 2016 07:06:59 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu
Received: from mail.mojserwer.eu ([127.0.0.1])
 by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id AlfwkSc3udMI; Wed,  9 Mar 2016 07:06:57 +0100 (CET)
Received: from localhost (unknown [109.232.24.28])
 by mail.mojserwer.eu (Postfix) with ESMTPSA id 982219EC6E9;
 Wed,  9 Mar 2016 07:06:57 +0100 (CET)
From: Marcin Borkowski <mbork@HIDDEN>
To: Kevin Ryde <user42_kevin@HIDDEN>
Subject: Re: bug#19039: 24.3; latex-mode paragraph-separate of \pagebreak[0]
References: <87a93vqqfi.fsf@HIDDEN>
Date: Wed, 09 Mar 2016 07:06:57 +0100
In-Reply-To: <87a93vqqfi.fsf@HIDDEN> (Kevin Ryde's message of "Thu, 13 Nov
 2014 22:40:33 +1100")
Message-ID: <87egbkxjzy.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 19039
Cc: 19039 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

On 2014-11-13, at 22:40, Kevin Ryde <user42_kevin@HIDDEN> wrote:

> In latex-mode it'd be good if \pagebreak[0] was a paragraph separator,
> as for example
>
> Blah blah         \ pagagraph
> blah blah.        /
> \pagebreak[0]
> \begin{align}
> ...
>
> An unconditional \pagebreak is already a separator, but not when an
> optional arg [0] or [3] etc.
>
> Perhaps digits and brackets like below.  Only some of the "space" "skip"
> and "page" commands matched take optional args like this, but allowing
> for all shouldn't hurt.
>
> 2014-11-12  Kevin Ryde  <user42_kevin@HIDDEN>
>
> 	* textmodes/tex-mode.el (latex-mode): In paragraph-separate allow
> 	optional argument [0] etc for \pagebreak[0]

This simple patch looks reasonable to me.  Could someone either install
it or tell the OP if he should do something more with it?

Best,

-- 
Marcin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#19039; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Nov 2014 11:42:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 13 06:42:52 2014
Received: from localhost ([127.0.0.1]:59128 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Xosnb-0005Qq-Rc
	for submit <at> debbugs.gnu.org; Thu, 13 Nov 2014 06:42:52 -0500
Received: from eggs.gnu.org ([208.118.235.92]:59740)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <user42_kevin@HIDDEN>) id 1XosnY-0005Qd-MJ
 for submit <at> debbugs.gnu.org; Thu, 13 Nov 2014 06:42:49 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <user42_kevin@HIDDEN>) id 1XosnR-0006wp-TG
 for submit <at> debbugs.gnu.org; Thu, 13 Nov 2014 06:42:48 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:46476)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <user42_kevin@HIDDEN>) id 1XosnR-0006wl-QU
 for submit <at> debbugs.gnu.org; Thu, 13 Nov 2014 06:42:41 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33161)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <user42_kevin@HIDDEN>) id 1XosnL-0006iW-MG
 for bug-gnu-emacs@HIDDEN; Thu, 13 Nov 2014 06:42:41 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <user42_kevin@HIDDEN>) id 1XosnF-0006uf-1z
 for bug-gnu-emacs@HIDDEN; Thu, 13 Nov 2014 06:42:35 -0500
Received: from nm41-vm10.bullet.mail.bf1.yahoo.com ([216.109.114.139]:35986)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <user42_kevin@HIDDEN>) id 1XosnE-0006uZ-UN
 for bug-gnu-emacs@HIDDEN; Thu, 13 Nov 2014 06:42:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048;
 t=1415878948; bh=UR4W8QFzGpfsffrJxz1+wIhmrMCv4YJXOt/Lfm83UUU=;
 h=From:To:Subject:Date:From:Subject;
 b=ftUXriZ7iLGwInu7U5Ay+ODmi3H9sq1VrwN5iM/Ls6C4yc+Yf4okPINbbiUkZHSGQ0p5RwG7U/KnRK5xrdHbzC4DVFcCD4d2N/AHv1oJRUkeATY+nR5T5kHptSCPFMW6qmZAEDUjTxLvsqHf94Ta2qzOxwkxkFPjWPsem5GYbUCfTW/8KDN7NeJPVo+KwR8WR53YZ2tWM0bgpDaeeERN+gvrdtFAJLgD6WGEFu5zOjDQq5X2XsvBo6pBYFVA9OE6GUXvmeMwITVU1D3vVrTY4fKS0wGeS9jAfd+cWfkbOIiFITU42KWFdLlzY2Fv69HaNR5R/RrF2L+LAOpAVg7E8g==
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.com.au;
 b=lh2ivv/k+dKQaFHh4mnILqz2IyWPGrlRBoSAZPB/wGIbZLPfW3n7S0Nl0Tdbg4+mb6jGmTI/MQ2yBQhUAoQe0ADakjCR2abyEktSwSBj1UGpuVIqmJdXU0rvie2YxsDP6tMP5le7+vagW41WYD/yw7OzWD1iM3NPfnXaNqJ9SK4YwVYnruk5vjQ892op30WgwxZHeT4YRtlTG8Bd+YWUtWXQkYUUfMnGPUmXnsEWFgPF5KPPbe2RyFjsIGnUw7Bt+zXPeoH8JU96W+TUBubWtJFLOcx7UaVhpe7oDeuodloYpLwnljAI3T2LhlV3rhprsaRJFfW842fA/p/YP414lg==;
Received: from [66.196.81.172] by nm41.bullet.mail.bf1.yahoo.com with NNFMP;
 13 Nov 2014 11:42:28 -0000
Received: from [98.139.211.195] by tm18.bullet.mail.bf1.yahoo.com with NNFMP;
 13 Nov 2014 11:42:28 -0000
Received: from [127.0.0.1] by smtp204.mail.bf1.yahoo.com with NNFMP;
 13 Nov 2014 11:42:28 -0000
X-Yahoo-Newman-Id: 546544.87130.bm@HIDDEN
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: c7wnmCEVM1nreGl1EN4lpjcgTrzKl6xJNKyOQa_IQWWH3h8
 73Hi8gqINnSOCF.8k_OyhThvxU1ETQyIuiFr1mcFE56p4Ay15eXiy4tThotX
 q_OfHTOaAR9XsfJ79lml.vZH971pi8ElawjsfGaapTE1xpxCZaxCgEd12ghX
 yC64cVmK1sJ1E4DcS.0uCSDPL5RwmbQ49WlAkQXEZ65TfUCiOygRqyhDMAp5
 5ssOZOcFM.gek_8jG1bz6fVi63llfg8Gc0iluqCWOjB7k8mFSHHJT748aHQK
 14gp8.X81Zat1O._Ux2HbNybQuNfNqq2emAdZ.W3jqeA1k1petXljQQKrORM
 X3T4IS1qzcZSbOyPLE7krujhrl2wo6fQnmja5F3c69OnFmwivMIwcY0yXcC9
 oG7qwWETt7qEkucGrwtKtk77_GqPhsLyHrE8PuZSxFyJpyqZu.6MuxXa50Nn
 5sF7LQdE2.jhVsuKhhdCahD.knejPQJI9RHwIBF5Fluo1wRVoPSyTtkouoTp
 imnsmiPjemkPG89afZrUUMejth29UwSNpnnve3p8JRqXHkQLAwreYuaFQCCQ
 5iT2Noy50jko-
X-Yahoo-SMTP: U8NKAo6swBAxDIMUovTitGGHebxdYQBZ5A--
From: Kevin Ryde <user42_kevin@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3; latex-mode paragraph-separate of \pagebreak[0]
Date: Thu, 13 Nov 2014 22:40:33 +1100
Message-ID: <87a93vqqfi.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

--=-=-=
Content-Type: text/plain

In latex-mode it'd be good if \pagebreak[0] was a paragraph separator,
as for example

Blah blah         \ pagagraph
blah blah.        /
\pagebreak[0]
\begin{align}
...

An unconditional \pagebreak is already a separator, but not when an
optional arg [0] or [3] etc.

Perhaps digits and brackets like below.  Only some of the "space" "skip"
and "page" commands matched take optional args like this, but allowing
for all shouldn't hurt.

2014-11-12  Kevin Ryde  <user42_kevin@HIDDEN>

	* textmodes/tex-mode.el (latex-mode): In paragraph-separate allow
	optional argument [0] etc for \pagebreak[0]


--=-=-=
Content-Type: text/x-diff
Content-Disposition: attachment; filename=tex-mode.el.diff

--- tex-mode.el.orig	2014-05-06 10:44:16.000000000 +1000
+++ tex-mode.el	2014-11-13 07:41:23.523888672 +1100
@@ -1116,6 +1116,7 @@
   ;; A line containing just $$ is treated as a paragraph separator.
   ;; A line starting with $$ starts a paragraph,
   ;; but does not separate paragraphs if it has more stuff on it.
+  ;; For \pagebreak allow latex optional arg like \pagebreak[2]
   (setq paragraph-start
 	(concat "[ \t]*\\(\\$\\$\\|"
 		"\\\\[][]\\|"
@@ -1137,7 +1138,7 @@
 					      "noindent" "newpage" "footnote"
 					      "marginpar" "parbox" "caption"))
 		"\\|\\$\\$\\|[a-z]*\\(space\\|skip\\|page[a-z]*\\)"
-		"\\>\\)[ \t]*\\($\\|%\\)\\)"))
+		"\\>\\)[][0-9 \t]*\\($\\|%\\)\\)"))
   (set (make-local-variable 'imenu-create-index-function)
        'latex-imenu-create-index)
   (set (make-local-variable 'tex-face-alist) tex-latex-face-alist)

--=-=-=
Content-Type: text/plain





In GNU Emacs 24.3.1 (i586-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2014-10-17 on x86-csail-01, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11601000
Configured using:
 `configure '--build' 'i586-linux-gnu' '--build' 'i586-linux-gnu'
 '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
 '--localstatedir=/var/lib' '--infodir=/usr/share/info'
 '--mandir=/usr/share/man' '--with-pop=yes'
 '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp'
 '--with-crt-dir=/usr/lib/i386-linux-gnu' '--with-x=yes'
 '--with-x-toolkit=lucid' '--with-toolkit-scroll-bars' '--without-gconf'
 '--without-gsettings' 'build_alias=i586-linux-gnu' 'CFLAGS=-g -O2
 -fstack-protector-strong -Wformat -Werror=format-security -Wall'
 'LDFLAGS=-Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2''

Important settings:
  value of $LANG: en_AU.utf8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

--=-=-=--




Acknowledgement sent to Kevin Ryde <user42_kevin@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#19039; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 9 Mar 2016 06:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.