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:
parent
e3a6246eff
commit
7760f32c1f
@ -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)))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user