From a0bcdd7f58bee1e0a29866e60e2af7b9ca26f7c6 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 9 Jul 1999 18:37:55 +0000 Subject: [PATCH] (add-log-current-defun): Remove trailing -=' in C modes. --- lisp/add-log.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lisp/add-log.el b/lisp/add-log.el index 0c8c36dc51c..24ff059c3a5 100644 --- a/lisp/add-log.el +++ b/lisp/add-log.el @@ -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 -- 2.39.2