summaryrefslogtreecommitdiff
path: root/lisp/bookmark.el
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>1997-02-26 11:53:15 +0000
committerKenichi Handa <handa@m17n.org>1997-02-26 11:53:15 +0000
commitc5536f37a6f05293d291df4c380a350cfaaa9ce8 (patch)
treed6b09c16b73e5be230f791aad76324aea72ac6da /lisp/bookmark.el
parentdb61442bbf25d951e0e673582a8abb4da0297205 (diff)
downloademacs-c5536f37a6f05293d291df4c380a350cfaaa9ce8.tar.gz
(bookmark-jump-noselect): Use goto-char instead of
forward-char/backward-char to pay attention to multibyte characters..
Diffstat (limited to 'lisp/bookmark.el')
-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."
;; rather than after and remain perhaps unaware of the changes.
(if forward-str
(if (search-forward forward-str (point-max) t)
- (backward-char (length forward-str))))
+ (goto-char (match-beginning 0))))
(if behind-str
(if (search-backward behind-str (point-min) t)
- (forward-char (length behind-str))))
+ (goto-char (match-end 0))))
;; added by db
(setq bookmark-current-bookmark str)
(cons (current-buffer) (point)))