Commit d226f0a6 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(add-log-current-defun):

Remove spurious quote on c++-mode.  Recognize c++-c-mode.
parent 4c980cfa
......@@ -316,7 +316,7 @@ Has a preference of looking backwards."
(skip-chars-forward " ")
(buffer-substring (point)
(progn (forward-sexp 1) (point))))))
((and (memq major-mode '(c-mode 'c++-mode))
((and (memq major-mode '(c-mode c++-mode c++-c-mode))
(save-excursion (beginning-of-line)
;; Use eq instead of = here to avoid
;; error when at bob and char-after
......@@ -332,7 +332,7 @@ Has a preference of looking backwards."
(skip-chars-forward " \t")
(buffer-substring (point)
(progn (forward-sexp 1) (point))))
((memq major-mode '(c-mode 'c++-mode))
((memq major-mode '(c-mode c++-mode c++-c-mode))
(beginning-of-line)
;; See if we are in the beginning part of a function,
;; before the open brace. If so, advance forward.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment