From 2f85befdd53c467df20fc9894bb9ac612e69709e Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 12 Apr 2002 03:05:04 +0000 Subject: [PATCH] (c-backward-to-start-of-if): Don't assume point-min == 1. --- lisp/progmodes/cc-engine.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[^_]") -- 2.39.2