aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-04-25 20:30:56 +0000
committerKarl Heuer1994-04-25 20:30:56 +0000
commit1387d54e38a905db73f8b8a17e4d6ae569d88113 (patch)
treef3b7cd195681fdf3a1212c19c536c7b73ccd0e1e /src
parentfbe58183e7e91da5ec819f205dfb53ece238335a (diff)
downloademacs-1387d54e38a905db73f8b8a17e4d6ae569d88113.tar.gz
emacs-1387d54e38a905db73f8b8a17e4d6ae569d88113.zip
(F*_property_change): Typecheck limit argument.
Diffstat (limited to 'src')
-rw-r--r--src/textprop.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/textprop.c b/src/textprop.c
index e293eeadb6e..5f78ab95cad 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -601,6 +601,9 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT.")
601 if (NILP (object)) 601 if (NILP (object))
602 XSET (object, Lisp_Buffer, current_buffer); 602 XSET (object, Lisp_Buffer, current_buffer);
603 603
604 if (!NILP (limit))
605 CHECK_NUMBER_COERCE_MARKER (limit, 0);
606
604 i = validate_interval_range (object, &pos, &pos, soft); 607 i = validate_interval_range (object, &pos, &pos, soft);
605 if (NULL_INTERVAL_P (i)) 608 if (NULL_INTERVAL_P (i))
606 return limit; 609 return limit;
@@ -670,6 +673,9 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT.")
670 if (NILP (object)) 673 if (NILP (object))
671 XSET (object, Lisp_Buffer, current_buffer); 674 XSET (object, Lisp_Buffer, current_buffer);
672 675
676 if (!NILP (limit))
677 CHECK_NUMBER_COERCE_MARKER (limit, 0);
678
673 i = validate_interval_range (object, &pos, &pos, soft); 679 i = validate_interval_range (object, &pos, &pos, soft);
674 if (NULL_INTERVAL_P (i)) 680 if (NULL_INTERVAL_P (i))
675 return limit; 681 return limit;
@@ -707,6 +713,9 @@ back past position LIMIT; return LIMIT if nothing is found until LIMIT.")
707 if (NILP (object)) 713 if (NILP (object))
708 XSET (object, Lisp_Buffer, current_buffer); 714 XSET (object, Lisp_Buffer, current_buffer);
709 715
716 if (!NILP (limit))
717 CHECK_NUMBER_COERCE_MARKER (limit, 0);
718
710 i = validate_interval_range (object, &pos, &pos, soft); 719 i = validate_interval_range (object, &pos, &pos, soft);
711 if (NULL_INTERVAL_P (i)) 720 if (NULL_INTERVAL_P (i))
712 return limit; 721 return limit;
@@ -750,6 +759,9 @@ back past position LIMIT; return LIMIT if nothing is found until LIMIT.")
750 if (NILP (object)) 759 if (NILP (object))
751 XSET (object, Lisp_Buffer, current_buffer); 760 XSET (object, Lisp_Buffer, current_buffer);
752 761
762 if (!NILP (limit))
763 CHECK_NUMBER_COERCE_MARKER (limit, 0);
764
753 i = validate_interval_range (object, &pos, &pos, soft); 765 i = validate_interval_range (object, &pos, &pos, soft);
754 if (NULL_INTERVAL_P (i)) 766 if (NULL_INTERVAL_P (i))
755 return limit; 767 return limit;