"Joel E. Denny" <[EMAIL PROTECTED]> wrote:
> announce-gen doesn't like Bison's NEWS format.  The following patch fixes
> it.  Or should we consider reformatting Bison's NEWS file?  Thanks.
>
>>From f289ed88ea6513e18709b6b65ea3875bbd375998 Mon Sep 17 00:00:00 2001
> From: Joel E. Denny <[EMAIL PROTECTED]>
> Date: Sun, 2 Nov 2008 17:58:01 -0500
> Subject: [PATCH] Accept Bison's NEWS format.
>
> * build-aux/announce-gen (print_news_deltas): Here.
>
> diff --git a/build-aux/announce-gen b/build-aux/announce-gen
> index 6775665..fc852d1 100755
> --- a/build-aux/announce-gen
> +++ b/build-aux/announce-gen
> @@ -207,7 +207,7 @@ sub print_news_deltas ($$$)
>    # the first occurrence of $prev_version.
>    my $in_items;
>
> -  my $re_prefix = qr/\* (?:Noteworthy|Major) change/;
> +  my $re_prefix = qr/\* (?:Noteworthy|Major) change|Changes/;

Hi Joel,

In addition to this, you might want to adjust Bison's NEWS format.
Adding one more level of "*" will make it so that it can be navigated
via emacs' outline mode.  I.e., you can make it so that each "* Changes
..." line is a major heading, and where currently there are bullet
items per release, you'd use two asterisks instead of one.  And finally,
add the -*- outline -*- mode setting on the first line:

Bison News                                    -*- outline -*-


Reply via email to