aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasatake YAMATO2006-09-22 14:27:13 +0000
committerMasatake YAMATO2006-09-22 14:27:13 +0000
commit1d8f4cb627aecfcb07a4ff8fcb4c8b83e3aeaf4b (patch)
tree2c3e3e4ed75972364b6d068af4cdcbf0ffc29df9
parent2e77924dcfd3fbfe4c56a36d49d83a0e8c7b3d98 (diff)
downloademacs-1d8f4cb627aecfcb07a4ff8fcb4c8b83e3aeaf4b.tar.gz
emacs-1d8f4cb627aecfcb07a4ff8fcb4c8b83e3aeaf4b.zip
(add-log-current-defun): Use `forward-sexp'
instead of `forward-word' to pick c++::symbol. Reported by Herbert Euler <herberteuler@hotmail.com>.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/add-log.el2
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f1e1f7615cb..241087e608e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12006-09-22 Masatake YAMATO <jet@gyve.org>
2
3 * add-log.el (add-log-current-defun): Use `forward-sexp'
4 instead of `forward-word' to pick c++::symbol.
5 Reported by Herbert Euler <herberteuler@hotmail.com>.
6
12006-09-22 Kenichi Handa <handa@m17n.org> 72006-09-22 Kenichi Handa <handa@m17n.org>
2 8
3 * bindings.el: Fix setting self-insert-command for multibyte 9 * bindings.el: Fix setting self-insert-command for multibyte
diff --git a/lisp/add-log.el b/lisp/add-log.el
index 393a696d3f1..d60f920244a 100644
--- a/lisp/add-log.el
+++ b/lisp/add-log.el
@@ -914,7 +914,7 @@ Has a preference of looking backwards."
914 ;; Include certain keywords if they 914 ;; Include certain keywords if they
915 ;; precede the name. 915 ;; precede the name.
916 (setq middle (point)) 916 (setq middle (point))
917 (forward-word -1) 917 (forward-sexp -1)
918 ;; Is this C++ method? 918 ;; Is this C++ method?
919 (when (and (< 2 middle) 919 (when (and (< 2 middle)
920 (string= (buffer-substring (- middle 2) 920 (string= (buffer-substring (- middle 2)