emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/vlf 7a14109 137/310: Fix search for GNU Emacs 23 (no as


From: Stefan Monnier
Subject: [elpa] externals/vlf 7a14109 137/310: Fix search for GNU Emacs 23 (no assert).
Date: Sat, 28 Nov 2020 00:33:02 -0500 (EST)

branch: externals/vlf
commit 7a141091c871f6446a68f9a5623dba2efb54873a
Author: Andrey Kotlarski <m00naticus@gmail.com>
Commit: Andrey Kotlarski <m00naticus@gmail.com>

    Fix search for GNU Emacs 23 (no assert).
---
 vlf.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vlf.el b/vlf.el
index 5a2ce16..b5c7f3e 100644
--- a/vlf.el
+++ b/vlf.el
@@ -439,7 +439,8 @@ bytes added to the end."
 (defun vlf-re-search (regexp count backward batch-step)
   "Search for REGEXP COUNT number of times forward or BACKWARD.
 BATCH-STEP is amount of overlap between successive chunks."
-  (assert (< 0 count))
+  (if (<= count 0)
+      (error "Count must be positive"))
   (let* ((match-chunk-start vlf-start-pos)
          (match-chunk-end vlf-end-pos)
          (match-start-pos (+ vlf-start-pos (position-bytes (point))))



reply via email to

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