changeset 12937:9911dbdf1e2e

(makefile-add-log-defun): Avoid error at eob.
author Richard M. Stallman <rms@gnu.org>
date Thu, 24 Aug 1995 20:16:31 +0000
parents 1548eeb34926
children 123200a483ae
files lisp/progmodes/make-mode.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/make-mode.el	Wed Aug 23 23:51:38 1995 +0000
+++ b/lisp/progmodes/make-mode.el	Thu Aug 24 20:16:31 1995 +0000
@@ -1332,7 +1332,7 @@
       (buffer-substring (match-beginning 1)
 			(match-end 1)))
      ((progn
-	(forward-char)
+	(or (eobp) (forward-char))
 	(re-search-backward makefile-dependency-regex nil t))
       (buffer-substring (match-beginning 1)
 			(match-end 1)))