diff options
| author | Richard M. Stallman | 1993-05-25 18:49:54 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-25 18:49:54 +0000 |
| commit | be720845208cc20af4536d57b936da8b9549e669 (patch) | |
| tree | 9a29bb0bd2b9ca350d5cf8090b99a71a6ff850da /src/syntax.c | |
| parent | 5d3bffd4599fc4e6ebb76c9ae8e413d02fcbeec0 (diff) | |
| download | emacs-be720845208cc20af4536d57b936da8b9549e669.tar.gz emacs-be720845208cc20af4536d57b936da8b9549e669.zip | |
(Fforward_comment): Fix last change.
Diffstat (limited to 'src/syntax.c')
| -rw-r--r-- | src/syntax.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/syntax.c b/src/syntax.c index fb584021485..2ade690b274 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -577,14 +577,17 @@ between them, return t; otherwise return nil.") | |||
| 577 | register int c; | 577 | register int c; |
| 578 | register enum syntaxcode code; | 578 | register enum syntaxcode code; |
| 579 | int comstyle = 0; /* style of comment encountered */ | 579 | int comstyle = 0; /* style of comment encountered */ |
| 580 | int found; | ||
| 580 | 581 | ||
| 581 | immediate_quit = 1; | 582 | immediate_quit = 1; |
| 582 | QUIT; | 583 | QUIT; |
| 583 | 584 | ||
| 584 | from = PT; | 585 | from = PT; |
| 586 | found = from; | ||
| 585 | 587 | ||
| 586 | while (count > 0) | 588 | while (count > 0) |
| 587 | { | 589 | { |
| 590 | found = from; | ||
| 588 | stop = ZV; | 591 | stop = ZV; |
| 589 | while (from < stop) | 592 | while (from < stop) |
| 590 | { | 593 | { |
| @@ -612,7 +615,7 @@ between them, return t; otherwise return nil.") | |||
| 612 | if (from == stop) | 615 | if (from == stop) |
| 613 | { | 616 | { |
| 614 | immediate_quit = 0; | 617 | immediate_quit = 0; |
| 615 | SET_PT (from); | 618 | SET_PT (found); |
| 616 | return Qnil; | 619 | return Qnil; |
| 617 | } | 620 | } |
| 618 | c = FETCH_CHAR (from); | 621 | c = FETCH_CHAR (from); |
| @@ -637,7 +640,7 @@ between them, return t; otherwise return nil.") | |||
| 637 | else if (code != Swhitespace) | 640 | else if (code != Swhitespace) |
| 638 | { | 641 | { |
| 639 | immediate_quit = 0; | 642 | immediate_quit = 0; |
| 640 | SET_PT (from); | 643 | SET_PT (found); |
| 641 | return Qnil; | 644 | return Qnil; |
| 642 | } | 645 | } |
| 643 | } | 646 | } |
| @@ -648,6 +651,8 @@ between them, return t; otherwise return nil.") | |||
| 648 | 651 | ||
| 649 | while (count < 0) | 652 | while (count < 0) |
| 650 | { | 653 | { |
| 654 | found = from; | ||
| 655 | |||
| 651 | stop = BEGV; | 656 | stop = BEGV; |
| 652 | while (from > stop) | 657 | while (from > stop) |
| 653 | { | 658 | { |
| @@ -687,7 +692,7 @@ between them, return t; otherwise return nil.") | |||
| 687 | if (from == stop) | 692 | if (from == stop) |
| 688 | { | 693 | { |
| 689 | immediate_quit = 0; | 694 | immediate_quit = 0; |
| 690 | SET_PT (from); | 695 | SET_PT (found); |
| 691 | return Qnil; | 696 | return Qnil; |
| 692 | } | 697 | } |
| 693 | from--; | 698 | from--; |
| @@ -811,7 +816,7 @@ between them, return t; otherwise return nil.") | |||
| 811 | else if (code != Swhitespace || quoted) | 816 | else if (code != Swhitespace || quoted) |
| 812 | { | 817 | { |
| 813 | immediate_quit = 0; | 818 | immediate_quit = 0; |
| 814 | SET_PT (from); | 819 | SET_PT (found); |
| 815 | return Qnil; | 820 | return Qnil; |
| 816 | } | 821 | } |
| 817 | } | 822 | } |