]> git.eshelyaron.com Git - emacs.git/commitdiff
(blink-matching-open): Do blink if an even number of
authorRichard M. Stallman <rms@gnu.org>
Sun, 30 Oct 1994 02:19:14 +0000 (02:19 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 30 Oct 1994 02:19:14 +0000 (02:19 +0000)
quoting characters precede the close.

lisp/simple.el

index abf1020d21ab1fcc45217acaadf70f4e26335bbc..c824d364f8c28fa91a680fb1edc93b1b2b178351 100644 (file)
@@ -2396,8 +2396,13 @@ in the mode line."
   "Move cursor momentarily to the beginning of the sexp before point."
   (interactive)
   (and (> (point) (1+ (point-min)))
-       (not (memq (char-syntax (char-after (- (point) 2))) '(?/ ?\\ )))
        blink-matching-paren
+       ;; Verify an even number of quoting characters precede the close.
+       (= 1 (logand 1 (- (point)
+                        (save-excursion
+                          (forward-char -1)
+                          (skip-syntax-backward "/\\")
+                          (point)))))
        (let* ((oldpos (point))
              (blinkpos)
              (mismatch))