diff options
author | Kenichi Handa <handa@m17n.org> | 1997-02-26 11:53:15 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 1997-02-26 11:53:15 +0000 |
commit | c5536f37a6f05293d291df4c380a350cfaaa9ce8 (patch) | |
tree | d6b09c16b73e5be230f791aad76324aea72ac6da /lisp/bookmark.el | |
parent | db61442bbf25d951e0e673582a8abb4da0297205 (diff) | |
download | emacs-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.el | 4 |
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))) |