aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa1997-02-26 11:53:15 +0000
committerKenichi Handa1997-02-26 11:53:15 +0000
commitc5536f37a6f05293d291df4c380a350cfaaa9ce8 (patch)
treed6b09c16b73e5be230f791aad76324aea72ac6da
parentdb61442bbf25d951e0e673582a8abb4da0297205 (diff)
downloademacs-c5536f37a6f05293d291df4c380a350cfaaa9ce8.tar.gz
emacs-c5536f37a6f05293d291df4c380a350cfaaa9ce8.zip
(bookmark-jump-noselect): Use goto-char instead of
forward-char/backward-char to pay attention to multibyte characters..
-rw-r--r--lisp/bookmark.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index 36bb94464bb..5d4b86ca388 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -1114,10 +1114,10 @@ of the old one in the permanent bookmark record."
1114 ;; rather than after and remain perhaps unaware of the changes. 1114 ;; rather than after and remain perhaps unaware of the changes.
1115 (if forward-str 1115 (if forward-str
1116 (if (search-forward forward-str (point-max) t) 1116 (if (search-forward forward-str (point-max) t)
1117 (backward-char (length forward-str)))) 1117 (goto-char (match-beginning 0))))
1118 (if behind-str 1118 (if behind-str
1119 (if (search-backward behind-str (point-min) t) 1119 (if (search-backward behind-str (point-min) t)
1120 (forward-char (length behind-str)))) 1120 (goto-char (match-end 0))))
1121 ;; added by db 1121 ;; added by db
1122 (setq bookmark-current-bookmark str) 1122 (setq bookmark-current-bookmark str)
1123 (cons (current-buffer) (point))) 1123 (cons (current-buffer) (point)))