emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 7760f32: * lisp/progmodes/prolog.el: Fix nested ele


From: Stefan Monnier
Subject: [Emacs-diffs] master 7760f32: * lisp/progmodes/prolog.el: Fix nested electric if-then-else
Date: Mon, 21 Sep 2015 20:22:23 +0000

branch: master
commit 7760f32c1f5678bda97376d7bcb1153b9570320f
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    * 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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/progmodes/prolog.el b/lisp/progmodes/prolog.el
index 24ac8d7..8c02e54 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)))
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]