From: Stefan Monnier Date: Fri, 12 Apr 2002 03:05:04 +0000 (+0000) Subject: (c-backward-to-start-of-if): Don't assume point-min == 1. X-Git-Tag: ttn-vms-21-2-B4~15682 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2f85befdd53c467df20fc9894bb9ac612e69709e;p=emacs.git (c-backward-to-start-of-if): Don't assume point-min == 1. --- 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." (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[^_]")