1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-26 07:33:47 +00:00

* 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).
This commit is contained in:
Stefan Monnier 2015-09-21 16:22:17 -04:00
parent e3a6246eff
commit 7760f32c1f

View File

@ -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)))