diff options
| author | Stefan Monnier | 2002-04-12 03:05:04 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-04-12 03:05:04 +0000 |
| commit | 2f85befdd53c467df20fc9894bb9ac612e69709e (patch) | |
| tree | 46bbbf0c4a79eb5d01de5d6846668071731ef964 | |
| parent | a1906d512b4ba2b323e93dbe9fea218b587d9a92 (diff) | |
| download | emacs-2f85befdd53c467df20fc9894bb9ac612e69709e.tar.gz emacs-2f85befdd53c467df20fc9894bb9ac612e69709e.zip | |
(c-backward-to-start-of-if): Don't assume point-min == 1.
| -rw-r--r-- | lisp/progmodes/cc-engine.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 0a9053f04d0..4f21f083fe5 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el | |||
| @@ -963,7 +963,7 @@ brace." | |||
| 963 | (c-beginning-of-statement-1) | 963 | (c-beginning-of-statement-1) |
| 964 | (setq c-parsing-error | 964 | (setq c-parsing-error |
| 965 | (format "No matching `if' found for `else' on line %d" | 965 | (format "No matching `if' found for `else' on line %d" |
| 966 | (1+ (count-lines 1 here)))) | 966 | (1+ (count-lines (point-min) here)))) |
| 967 | (throw 'orphan-if nil)))) | 967 | (throw 'orphan-if nil)))) |
| 968 | (cond | 968 | (cond |
| 969 | ((looking-at "else\\b[^_]") | 969 | ((looking-at "else\\b[^_]") |