]> git.eshelyaron.com Git - emacs.git/commitdiff
(add-log-current-defun): Skip doc string
authorRichard M. Stallman <rms@gnu.org>
Sun, 24 Jul 1994 02:50:50 +0000 (02:50 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 24 Jul 1994 02:50:50 +0000 (02:50 +0000)
correctly even if it ends with line that starts space.

lisp/add-log.el

index fdc546c9a912df5ac29c4ead736f1f3f0b15e2ed..3c570fa17d5a0b4d71fc899c338e3c4a69d1d0ff 100644 (file)
@@ -358,7 +358,9 @@ Has a preference of looking backwards."
                         ;; or the DEFUN macro used by the C library.
                         (if (condition-case nil
                                 (and (save-excursion
-                                       (forward-line 1)
+                                       (end-of-line)
+                                       (while (= (preceding-char) ?\\)
+                                         (end-of-line 2))
                                        (backward-sexp 1)
                                        (beginning-of-line)
                                        (setq tem (point))