feature/igc3 e8202536392 3/3: * src/marker.c (Fmarkers_in): Use DO_MARKERS for consistency.

Helmut Eller <[email protected]>
Newsgroups gmane.emacs.diffs
Message-ID <[email protected]>
branch: feature/igc3
commit e8202536392d6c1691a833d6046f31ed9b7b1abf
Author: Helmut Eller <[email protected]>
Commit: Helmut Eller <[email protected]>

    * src/marker.c (Fmarkers_in): Use DO_MARKERS for consistency.
---
 src/marker.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/marker.c b/src/marker.c
index 0a5951c7c23..7761d84bdbe 100644
--- a/src/marker.c
+++ b/src/marker.c
@@ -825,7 +825,6 @@ The list includes markers at BEG and at END.  */)
   (Lisp_Object beg, Lisp_Object end)
 {
   Lisp_Object res = Qnil;
-  struct Lisp_Marker *tail;
   ptrdiff_t ibeg, iend;
   if (NILP (beg))
     ibeg = BEGV;
@@ -842,14 +841,12 @@ The list includes markers at BEG and at END.  */)
       iend = clip_to_bounds (BEGV, XFIXNUM (end), ZV);
     }
 
-  struct marker_it it = marker_it_init (current_buffer);
-  while (marker_it_valid (&it))
+  DO_MARKERS (current_buffer, tail)
     {
-      tail = marker_it_marker (&it);
       if (ibeg <= tail->charpos && tail->charpos <= iend)
 	res = Fcons (make_lisp_ptr (tail, Lisp_Vectorlike), res);
-      marker_it_next (&it);
     }
+  END_DO_MARKERS;
 
   return res;
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.