]> git.eshelyaron.com Git - emacs.git/commitdiff
(makefile-add-log-defun): Avoid error at eob.
authorRichard M. Stallman <rms@gnu.org>
Thu, 24 Aug 1995 20:16:31 +0000 (20:16 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 24 Aug 1995 20:16:31 +0000 (20:16 +0000)
lisp/progmodes/make-mode.el

index c31bffcba4ca858336628c639b0a078bdbfb5c9a..172a25f6c3b5fd5f20be2ace5723d31d21fc632e 100644 (file)
@@ -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)))