From: Richard M. Stallman Date: Fri, 9 Jul 1999 18:37:55 +0000 (+0000) Subject: (add-log-current-defun): Remove trailing -=' in C modes. X-Git-Tag: emacs-20.4~9 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a0bcdd7f58bee1e0a29866e60e2af7b9ca26f7c6;p=emacs.git (add-log-current-defun): Remove trailing -=' in C modes. --- 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