From 6728a649bd6d7c9325ec8d868a179fa114358158 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 24 Aug 1995 20:16:31 +0000 Subject: [PATCH] (makefile-add-log-defun): Avoid error at eob. --- lisp/progmodes/make-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index c31bffcba4c..172a25f6c3b 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el @@ -1332,7 +1332,7 @@ Uses `makefile-use-curly-braces-for-macros-p'." (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))) -- 2.39.2