changeset 17076:d436e2536685

(bookmark-jump-noselect): Use goto-char instead of forward-char/backward-char to pay attention to multibyte characters..
author Kenichi Handa <handa@m17n.org>
date Wed, 26 Feb 1997 11:53:15 +0000
parents 229cc62c6aa3
children 8f8c3d05b158
files lisp/bookmark.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/bookmark.el	Wed Feb 26 11:48:32 1997 +0000
+++ b/lisp/bookmark.el	Wed Feb 26 11:53:15 1997 +0000
@@ -1114,10 +1114,10 @@
           ;; 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)))