summaryrefslogtreecommitdiff
path: root/lisp/progmodes/make-mode.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-08-24 20:16:31 +0000
committerRichard M. Stallman <rms@gnu.org>1995-08-24 20:16:31 +0000
commit6728a649bd6d7c9325ec8d868a179fa114358158 (patch)
tree486a113942254a52717895231886450bce83e284 /lisp/progmodes/make-mode.el
parentbd0e4eb1cce72dab45a765f82b844b7acde91d16 (diff)
downloademacs-6728a649bd6d7c9325ec8d868a179fa114358158.tar.gz
(makefile-add-log-defun): Avoid error at eob.
Diffstat (limited to 'lisp/progmodes/make-mode.el')
-rw-r--r--lisp/progmodes/make-mode.el2
1 files changed, 1 insertions, 1 deletions
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)))