]> git.eshelyaron.com Git - emacs.git/commitdiff
(show-paren-function): Change calls to syntax-after
authorRichard M. Stallman <rms@gnu.org>
Mon, 8 Nov 2004 16:45:17 +0000 (16:45 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 8 Nov 2004 16:45:17 +0000 (16:45 +0000)
for new way of returning the value.

lisp/paren.el

index 6c5f9dece99a6a37c0b2746046dae9ed801b8310..10695a4109888036cbc026c2538508a36ff5a6a1 100644 (file)
@@ -139,8 +139,8 @@ in `show-paren-style' after `show-paren-delay' seconds of Emacs idle time."
 (defun show-paren-function ()
   (if show-paren-mode
       (let ((oldpos (point))
-           (dir (cond ((eq (car (syntax-after (1- (point)))) 5) -1)
-                      ((eq (car (syntax-after (point))) 4) 1)))
+           (dir (cond ((eq (car (syntax-after (1- (point)))) ?\)) -1)
+                      ((eq (car (syntax-after (point))) ?\() 1)))
            pos mismatch face)
        ;;
        ;; Find the other end of the sexp.