emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ff2124d: Fix recent parse-partial-sexp argument validation


From: Basil L. Contovounesios
Subject: master ff2124d: Fix recent parse-partial-sexp argument validation
Date: Sun, 22 Aug 2021 18:52:42 -0400 (EDT)

branch: master
commit ff2124d2979ee9ba5b8e22147fa8ccaa00e2cc4f
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>

    Fix recent parse-partial-sexp argument validation
    
    * src/syntax.c (parse-partial-sexp): Also handle markers as
    arguments (bug#49944).  Tweak error message to follow conventions in
    "(elisp) Signaling Errors".
---
 src/syntax.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/syntax.c b/src/syntax.c
index adc0da7..057a4c3 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -3595,8 +3595,8 @@ Sixth arg COMMENTSTOP non-nil means stop after the start 
of a comment.
   else
     target = TYPE_MINIMUM (EMACS_INT); /* We won't reach this depth.  */
 
-  if (XFIXNUM (to) < XFIXNUM (from))
-    error ("End position should be larger than start position.");
+  if (fix_position (to) < fix_position (from))
+    error ("End position is smaller than start position");
 
   validate_region (&from, &to);
   internalize_parse_state (oldstate, &state);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]