(add-log-current-defun): In texinfo-mode,
authorRichard M. Stallman <rms@gnu.org>
Sat, 8 Oct 1994 09:00:51 +0000 (09:00 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 8 Oct 1994 09:00:51 +0000 (09:00 +0000)
handle the case of no commas after @node.

lisp/add-log.el

index b2074ef..340ef08 100644 (file)
@@ -427,7 +427,7 @@ Has a preference of looking backwards."
                                           (end-of-line)
                                           (point))))))
                ((eq major-mode 'texinfo-mode)
-                (if (re-search-backward "^@node[ \t]+\\([^,]+\\)," nil t)
+                (if (re-search-backward "^@node[ \t]+\\([^,\n]+\\)" nil t)
                     (buffer-substring (match-beginning 1)
                                       (match-end 1))))
                ((eq major-mode 'perl-mode)