From 7760f32c1f5678bda97376d7bcb1153b9570320f Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 21 Sep 2015 16:22:17 -0400 Subject: [PATCH] * lisp/progmodes/prolog.el: Fix nested electric if-then-else * lisp/progmodes/prolog.el (prolog-find-unmatched-paren): Use innermost rather than outermost paren (bug#21526). --- lisp/progmodes/prolog.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/prolog.el b/lisp/progmodes/prolog.el index 24ac8d75960..8c02e5402a2 100644 --- a/lisp/progmodes/prolog.el +++ b/lisp/progmodes/prolog.el @@ -2081,7 +2081,7 @@ Argument BOUND is a buffer position limiting searching." (defun prolog-find-unmatched-paren () "Return the column of the last unmatched left parenthesis." (save-excursion - (goto-char (or (car (nth 9 (syntax-ppss))) (point-min))) + (goto-char (or (nth 1 (syntax-ppss)) (point-min))) (current-column))) -- 2.39.2