Mercurial > emacs
changeset 13255:9e94f911f00c
(add-log-current-defun): Handle `private', `public' in C++ class definitions.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 20 Oct 1995 15:22:56 +0000 |
parents | 7ed0775e99af |
children | d9c469af1ee0 |
files | lisp/add-log.el |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/add-log.el Thu Oct 19 22:23:57 1995 +0000 +++ b/lisp/add-log.el Fri Oct 20 15:22:56 1995 +0000 @@ -444,6 +444,14 @@ ;; 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)))