Mercurial > emacs
changeset 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 | db6ed843d5e8 |
children | 1edc68c613d8 |
files | lisp/add-log.el |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
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