comparison lisp/bookmark.el @ 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 a9ced5af8a15
children ddbe17ae5280
comparison
equal deleted inserted replaced
17075:229cc62c6aa3 17076:d436e2536685
1112 ;; Rationale is that if text was inserted between the two in the 1112 ;; Rationale is that if text was inserted between the two in the
1113 ;; file, it's better to be put before it so you can read it, 1113 ;; file, it's better to be put before it so you can read it,
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)))
1124 (progn 1124 (progn
1125 (ding) 1125 (ding)