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

Previous Next

Package: emacs;

Reported by: Kevin Ryde <user42_kevin <at> yahoo.com.au>

Date: Thu, 13 Nov 2014 11:43:02 UTC

Severity: minor

Tags: patch

Found in version 24.3

Fixed in version 27.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19039 in the body.
You can then email your comments to 19039 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#19039; Package emacs. (Thu, 13 Nov 2014 11:43:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kevin Ryde <user42_kevin <at> yahoo.com.au>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 13 Nov 2014 11:43:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Kevin Ryde <user42_kevin <at> yahoo.com.au>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; latex-mode paragraph-separate of \pagebreak[0]
Date: Thu, 13 Nov 2014 22:40:33 +1100
[Message part 1 (text/plain, inline)]
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 <at> yahoo.com.au>

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

[tex-mode.el.diff (text/x-diff, attachment)]
[Message part 3 (text/plain, inline)]



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

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19039; Package emacs. (Wed, 09 Mar 2016 06:08:02 GMT) Full text and rfc822 format available.

Message #8 received at 19039 <at> debbugs.gnu.org (full text, mbox):

From: Marcin Borkowski <mbork <at> mbork.pl>
To: Kevin Ryde <user42_kevin <at> yahoo.com.au>
Cc: 19039 <at> debbugs.gnu.org
Subject: Re: bug#19039: 24.3; latex-mode paragraph-separate of \pagebreak[0]
Date: Wed, 09 Mar 2016 07:06:57 +0100
On 2014-11-13, at 22:40, Kevin Ryde <user42_kevin <at> yahoo.com.au> 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 <at> yahoo.com.au>
>
> 	* 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




Added tag(s) patch. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Mon, 30 Sep 2019 01:26:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19039; Package emacs. (Mon, 30 Sep 2019 01:34:02 GMT) Full text and rfc822 format available.

Message #13 received at 19039 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Kevin Ryde <user42_kevin <at> yahoo.com.au>
Cc: 19039 <at> debbugs.gnu.org
Subject: Re: bug#19039: 24.3; latex-mode paragraph-separate of \pagebreak[0]
Date: Mon, 30 Sep 2019 03:33:13 +0200
Kevin Ryde <user42_kevin <at> yahoo.com.au> writes:

> 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.

I think this patch looks reasonable, and it seems to be working from my
testing.  Are there any objections to installing it?

Best regards,
Stefan Kangas




Severity set to 'minor' from 'normal' Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Mon, 30 Sep 2019 01:35:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19039; Package emacs. (Wed, 30 Oct 2019 21:39:02 GMT) Full text and rfc822 format available.

Message #18 received at 19039 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Kevin Ryde <user42_kevin <at> yahoo.com.au>
Cc: 19039 <at> debbugs.gnu.org
Subject: Re: bug#19039: 24.3; latex-mode paragraph-separate of \pagebreak[0]
Date: Wed, 30 Oct 2019 22:37:27 +0100
close 19039 27.1
thanks

Stefan Kangas <stefan <at> marxist.se> writes:

> Kevin Ryde <user42_kevin <at> yahoo.com.au> writes:
>
>> 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.
>
> I think this patch looks reasonable, and it seems to be working from my
> testing.  Are there any objections to installing it?

No objections within a couple of weeks.  Now pushed to master as commit
94b8153eaa.

Best regards,
Stefan Kangas




bug marked as fixed in version 27.1, send any further explanations to 19039 <at> debbugs.gnu.org and Kevin Ryde <user42_kevin <at> yahoo.com.au> Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Wed, 30 Oct 2019 21:39:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 28 Nov 2019 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 206 days ago.

Previous Next


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