Mercurial > emacs
diff lisp/add-log.el @ 24940:ca83292ec6f2
(add-log-current-defun): Remove trailing -=' in C modes.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 09 Jul 1999 18:37:55 +0000 |
parents | 7917ac967ee5 |
children | c8d2d5e80cc0 |
line wrap: on
line diff
--- a/lisp/add-log.el Fri Jul 09 18:00:24 1999 +0000 +++ b/lisp/add-log.el Fri Jul 09 18:37:55 1999 +0000 @@ -634,6 +634,11 @@ (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