Commit a0bcdd7f authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(add-log-current-defun): Remove trailing -=' in C modes.

parent f165ac66
...@@ -634,6 +634,11 @@ Has a preference of looking backwards." ...@@ -634,6 +634,11 @@ Has a preference of looking backwards."
(and (bolp) (and (bolp)
(looking-at "struct \\|union \\|class ") (looking-at "struct \\|union \\|class ")
(setq middle (point))) (setq middle (point)))
(goto-char end)
(when (eq (preceding-char) ?=)
(forward-char -1)
(skip-chars-backward " \t")
(setq end (point)))
(buffer-substring middle end))))))))) (buffer-substring middle end)))))))))
((memq major-mode add-log-tex-like-modes) ((memq major-mode add-log-tex-like-modes)
(if (re-search-backward (if (re-search-backward
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment