From 5955df07cd9819456dff706cfa1f92fc0c5b88d0 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 12 Aug 2002 18:03:26 +0000 Subject: [PATCH] Fix bug: must not signal error if only one entry in changelog and no "local variables:" at end. --- v7/src/edwin/debian-changelog.scm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/v7/src/edwin/debian-changelog.scm b/v7/src/edwin/debian-changelog.scm index 86fb20e2c..56e873987 100644 --- a/v7/src/edwin/debian-changelog.scm +++ b/v7/src/edwin/debian-changelog.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: debian-changelog.scm,v 1.5 2001/03/11 05:15:20 cph Exp $ +;;; $Id: debian-changelog.scm,v 1.6 2002/08/12 18:03:26 cph Exp $ ;;; ;;; Copyright (c) 2001 Massachusetts Institute of Technology ;;; @@ -218,9 +218,10 @@ address and release date) so that new entries can be made." (define (trailer-line buffer) (let ((start (buffer-start buffer)) (end (buffer-end buffer))) - (if (not (re-search-forward "\n\\S " start end)) - (error "Unable to find version-end line.")) - (let ((m (mark1+ (re-match-start 0)))) + (let ((m + (if (re-search-forward "\n\\S " start end) + (mark1+ (re-match-start 0)) + end))) (if (re-search-backward "\n --" m) (re-match-end 0) (let ((m (mark-left-inserting-copy m))) -- 2.25.1