Skip to content
This repository has been archived by the owner on Apr 11, 2021. It is now read-only.

Commit

Permalink
closes #2: don't bind autopair-* commands to parens if syntax table…
Browse files Browse the repository at this point in the history
… appears broken
  • Loading branch information
joaotavora committed Jul 22, 2012
1 parent 71a72d3 commit bc9bb4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autopair.el
Expand Up @@ -409,7 +409,8 @@ syntax table and the local value of `autopair-extra-pairs'."
(syntax-class syntax-entry)))
(pair (and syntax-entry
(cdr syntax-entry))))
(cond ((eq class (car (string-to-syntax "(")))
(cond ((and (eq class (car (string-to-syntax "(")))
pair)
;; syntax classes "opening parens" and "close parens"
(define-key map (string char) 'autopair-insert-opening)
(define-key map (string pair) 'autopair-skip-close-maybe))
Expand Down

0 comments on commit bc9bb4b

Please sign in to comment.