# HG changeset patch # User Stefan Monnier # Date 1018580704 0 # Node ID 4733cde26cbb0c23889639c9e9291f01db1647ba # Parent 92316652b4404212d501031ac821b6e862d7ce27 (c-backward-to-start-of-if): Don't assume point-min == 1. diff -r 92316652b440 -r 4733cde26cbb lisp/progmodes/cc-engine.el --- a/lisp/progmodes/cc-engine.el Fri Apr 12 03:03:26 2002 +0000 +++ b/lisp/progmodes/cc-engine.el Fri Apr 12 03:05:04 2002 +0000 @@ -963,7 +963,7 @@ (c-beginning-of-statement-1) (setq c-parsing-error (format "No matching `if' found for `else' on line %d" - (1+ (count-lines 1 here)))) + (1+ (count-lines (point-min) here)))) (throw 'orphan-if nil)))) (cond ((looking-at "else\\b[^_]")