* syntax.c (find_defun_start): Call scan_buffer with new args.
authorJim Blandy <jimb@redhat.com>
Sat, 8 Oct 1994 22:15:36 +0000 (22:15 +0000)
committerJim Blandy <jimb@redhat.com>
Sat, 8 Oct 1994 22:15:36 +0000 (22:15 +0000)
src/syntax.c

index dfb743f..41a236e 100644 (file)
@@ -84,7 +84,7 @@ find_defun_start (pos)
     return find_start_value;
 
   /* Back up to start of line.  */
-  tem = scan_buffer ('\n', pos, -1, &shortage, 1);
+  tem = scan_buffer ('\n', pos, BEGV, -1, &shortage, 1);
 
   while (tem > BEGV)
     {
@@ -92,7 +92,7 @@ find_defun_start (pos)
       if (SYNTAX (FETCH_CHAR (tem)) == Sopen)
        break;
       /* Move to beg of previous line.  */
-      tem = scan_buffer ('\n', tem, -2, &shortage, 1);
+      tem = scan_buffer ('\n', tem, BEGV, -2, &shortage, 1);
     }
 
   /* Record what we found, for the next try.  */