mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 05:47:36 +00:00
(add-log-current-defun): Handle private', public' in C++ class definitions.
This commit is contained in:
parent
7badea3036
commit
6dfa1d83fd
1 changed files with 8 additions and 0 deletions
|
|
@ -444,6 +444,14 @@ Has a preference of looking backwards."
|
|||
;; precede the name.
|
||||
(setq middle (point))
|
||||
(forward-word -1)
|
||||
;; Ignore these subparts of a class decl
|
||||
;; and move back to the class name itself.
|
||||
(while (looking-at "public \\|private ")
|
||||
(skip-chars-backward " \t:")
|
||||
(setq end (point))
|
||||
(backward-sexp 1)
|
||||
(setq middle (point))
|
||||
(forward-word -1))
|
||||
(and (bolp)
|
||||
(looking-at "struct \\|union \\|class ")
|
||||
(setq middle (point)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue