1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-03 11:33:37 +00:00

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

This commit is contained in:
Richard M. Stallman 1999-07-09 18:37:55 +00:00
parent f165ac6642
commit a0bcdd7f58

View File

@ -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