[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 70514c6: Clean up obsolete comment
From: |
Lars Ingebrigtsen |
Subject: |
master 70514c6: Clean up obsolete comment |
Date: |
Mon, 1 Mar 2021 08:30:10 -0500 (EST) |
branch: master
commit 70514c6374f8432c34d345216b4df6cf37151d9a
Author: Matt Armstrong <matt@rfc20.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Clean up obsolete comment
* src/marker.c (unchain_marker): Clean up obsolete comment
(bug#46836).
Commit cf3164523b (* src/alloc.c: Avoid O(N²) complexity when
unchaining markers (bug#24548)., 2018-03-23) removed the call from GC
into unchain_marker, so there is no need to warn about it.
---
src/marker.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/marker.c b/src/marker.c
index 5979151..2b137b1 100644
--- a/src/marker.c
+++ b/src/marker.c
@@ -634,16 +634,15 @@ set_marker_restricted_both (Lisp_Object marker,
Lisp_Object buffer,
/* Detach a marker so that it no longer points anywhere and no longer
slows down editing. Do not free the marker, though, as a change
function could have inserted it into an undo list (Bug#30931). */
+
void
detach_marker (Lisp_Object marker)
{
Fset_marker (marker, Qnil, Qnil);
}
-/* Remove MARKER from the chain of whatever buffer it is in,
- leaving it points to nowhere. This is called during garbage
- collection, so we must be careful to ignore and preserve
- mark bits, including those in chain fields of markers. */
+/* Remove MARKER from the chain of whatever buffer it is in. Set its
+ buffer NULL. */
void
unchain_marker (register struct Lisp_Marker *marker)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 70514c6: Clean up obsolete comment,
Lars Ingebrigtsen <=