1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-14 03:37:38 -08:00

(c-backward-to-start-of-if): Don't assume point-min == 1.

This commit is contained in:
Stefan Monnier 2002-04-12 03:05:04 +00:00
parent a1906d512b
commit 2f85befdd5

View file

@ -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[^_]")