From: Richard M. Stallman Date: Thu, 24 Aug 1995 20:16:31 +0000 (+0000) Subject: (makefile-add-log-defun): Avoid error at eob. X-Git-Tag: emacs-19.34~2923 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6728a649bd6d7c9325ec8d868a179fa114358158;p=emacs.git (makefile-add-log-defun): Avoid error at eob. --- 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)))