changeset 22744:79ca732d9740

(Fcopy_marker): Make return from wrong_type_argument fall thru into normal case.
author Karl Heuer <kwzh@gnu.org>
date Sun, 12 Jul 1998 19:13:45 +0000
parents ea36144e7977
children ef9607e709bc
files src/marker.c
diffstat 1 files changed, 7 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/marker.c	Sun Jul 12 15:20:27 1998 +0000
+++ b/src/marker.c	Sun Jul 12 19:13:45 1998 +0000
@@ -828,16 +828,14 @@
 {
   register Lisp_Object new;
 
-  if (INTEGERP (marker) || MARKERP (marker))
-    {
-      new = Fmake_marker ();
-      Fset_marker (new, marker,
-		   (MARKERP (marker) ? Fmarker_buffer (marker) : Qnil));
-      XMARKER (new)->insertion_type = !NILP (type);
-      return new;
-    }
-  else
+  if (! (INTEGERP (marker) || MARKERP (marker)))
     marker = wrong_type_argument (Qinteger_or_marker_p, marker);
+
+  new = Fmake_marker ();
+  Fset_marker (new, marker,
+	       (MARKERP (marker) ? Fmarker_buffer (marker) : Qnil));
+  XMARKER (new)->insertion_type = !NILP (type);
+  return new;
 }
 
 DEFUN ("marker-insertion-type", Fmarker_insertion_type,