[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r114117: * buffer.c (drop_overlay):
From: |
Dmitry Antipov |
Subject: |
[Emacs-diffs] trunk r114117: * buffer.c (drop_overlay): |
Date: |
Tue, 03 Sep 2013 14:40:46 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 114117
revision-id: address@hidden
parent: address@hidden
committer: Dmitry Antipov <address@hidden>
branch nick: trunk
timestamp: Tue 2013-09-03 18:40:09 +0400
message:
* buffer.c (drop_overlay):
* fileio.c (restore_point_unwind): Prefer unchain_marker to
Fset_marker (X, Qnil, ...) (which is the same but a bit slower).
modified:
src/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1438
src/buffer.c buffer.c-20091113204419-o5vbwnq5f7feedwu-264
src/fileio.c fileio.c-20091113204419-o5vbwnq5f7feedwu-210
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2013-09-03 13:29:38 +0000
+++ b/src/ChangeLog 2013-09-03 14:40:09 +0000
@@ -1,5 +1,11 @@
2013-09-03 Dmitry Antipov <address@hidden>
+ * buffer.c (drop_overlay):
+ * fileio.c (restore_point_unwind): Prefer unchain_marker to
+ Fset_marker (X, Qnil, ...) (which is the same but a bit slower).
+
+2013-09-03 Dmitry Antipov <address@hidden>
+
* buffer.c (Fmake_overlay, Fmove_overlay):
* intervals.c (set_point_from_marker):
* print.c (PRINTPREPARE): Prefer signal_error
=== modified file 'src/buffer.c'
--- a/src/buffer.c 2013-09-03 13:29:38 +0000
+++ b/src/buffer.c 2013-09-03 14:40:09 +0000
@@ -888,8 +888,8 @@
eassert (b == XBUFFER (Fmarker_buffer (ov->start)));
modify_overlay (b, marker_position (ov->start),
marker_position (ov->end));
- Fset_marker (ov->start, Qnil, Qnil);
- Fset_marker (ov->end, Qnil, Qnil);
+ unchain_marker (XMARKER (ov->start));
+ unchain_marker (XMARKER (ov->end));
}
=== modified file 'src/fileio.c'
--- a/src/fileio.c 2013-08-27 18:47:55 +0000
+++ b/src/fileio.c 2013-09-03 14:40:09 +0000
@@ -233,7 +233,7 @@
restore_point_unwind (Lisp_Object location)
{
Fgoto_char (location);
- Fset_marker (location, Qnil, Qnil);
+ unchain_marker (XMARKER (location));
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r114117: * buffer.c (drop_overlay):,
Dmitry Antipov <=