]> git.eshelyaron.com Git - emacs.git/commit
Avoid assertion violations when using marker positions
authorEli Zaretskii <eliz@gnu.org>
Tue, 6 Sep 2016 16:46:06 +0000 (19:46 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 6 Sep 2016 16:46:06 +0000 (19:46 +0300)
commit644f77b517180c5f75a9eaac4d76b12a1f334ce6
treeecdbd5a36616cbc954ccd4e3de2e2ae8e039bb0e
parentdcfcc595339f8bd503dedf95976b8a3633382f4f
Avoid assertion violations when using marker positions

* src/intervals.c (set_point_from_marker): If MARKER comes from
another buffer, recalculate its byte position before using it to
set point.
* src/marker.c (set_marker_internal): If POSITION is a marker from
another buffer, recalculate its byte position before using it.
(Bug#24368)
src/intervals.c
src/marker.c