]> git.eshelyaron.com Git - emacs.git/commitdiff
(bookmark-jump-noselect): Use goto-char instead of
authorKenichi Handa <handa@m17n.org>
Wed, 26 Feb 1997 11:53:15 +0000 (11:53 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 26 Feb 1997 11:53:15 +0000 (11:53 +0000)
  forward-char/backward-char to pay attention to multibyte
  characters..

lisp/bookmark.el

index 36bb94464bbee40b84c2640038bbdcf5375b5c0a..5d4b86ca388266e0dc9a60df4e2d849f25b323b7 100644 (file)
@@ -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)))