mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 03:40:56 -08:00
* syntax.c (find_defun_start): Call scan_buffer with new args.
This commit is contained in:
parent
9169c321e5
commit
be5357e28e
1 changed files with 2 additions and 2 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue