mirror of
				https://github.com/m00natic/vlfi.git
				synced 2025-11-04 00:51:37 +00:00 
			
		
		
		
	Fix search for GNU Emacs 23 (no assert).
This commit is contained in:
		
							
								
								
									
										3
									
								
								vlf.el
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								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))))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user