]> git.eshelyaron.com Git - emacs.git/commitdiff
(add-log-current-defun): Remove trailing -=' in C modes.
authorRichard M. Stallman <rms@gnu.org>
Fri, 9 Jul 1999 18:37:55 +0000 (18:37 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 9 Jul 1999 18:37:55 +0000 (18:37 +0000)
lisp/add-log.el

index 0c8c36dc51c75da8735908b889019fcfb0aec006..24ff059c3a58c92477f15c0d69f10fa360ac0a17 100644 (file)
@@ -634,6 +634,11 @@ Has a preference of looking backwards."
                                   (and (bolp)
                                        (looking-at "struct \\|union \\|class ")
                                        (setq middle (point)))
+                                  (goto-char end)
+                                  (when (eq (preceding-char) ?=)
+                                    (forward-char -1)
+                                    (skip-chars-backward " \t")
+                                    (setq end (point)))
                                   (buffer-substring middle end)))))))))
                ((memq major-mode add-log-tex-like-modes)
                 (if (re-search-backward