diff options
| -rw-r--r-- | lisp/emacs-lisp/lisp.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el index d10d5f0d101..f73dbb269d8 100644 --- a/lisp/emacs-lisp/lisp.el +++ b/lisp/emacs-lisp/lisp.el | |||
| @@ -646,7 +646,13 @@ Interactively, the behavior depends on `narrow-to-defun-include-comments'." | |||
| 646 | (narrow-to-region beg end)))) | 646 | (narrow-to-region beg end)))) |
| 647 | 647 | ||
| 648 | (defvar insert-pair-alist | 648 | (defvar insert-pair-alist |
| 649 | '((?\( ?\)) (?\[ ?\]) (?\{ ?\}) (?\< ?\>) (?\" ?\") (?\' ?\') (?\` ?\')) | 649 | (append '((?\< ?\>) (?\" ?\") (?\' ?\') (?\` ?\')) |
| 650 | (let (alist) | ||
| 651 | (map-char-table | ||
| 652 | (lambda (open close) | ||
| 653 | (when (< open close) (push (list open close) alist))) | ||
| 654 | (unicode-property-table-internal 'paired-bracket)) | ||
| 655 | (nreverse alist))) | ||
| 650 | "Alist of paired characters inserted by `insert-pair'. | 656 | "Alist of paired characters inserted by `insert-pair'. |
| 651 | Each element looks like (OPEN-CHAR CLOSE-CHAR) or (COMMAND-CHAR | 657 | Each element looks like (OPEN-CHAR CLOSE-CHAR) or (COMMAND-CHAR |
| 652 | OPEN-CHAR CLOSE-CHAR). The characters OPEN-CHAR and CLOSE-CHAR | 658 | OPEN-CHAR CLOSE-CHAR). The characters OPEN-CHAR and CLOSE-CHAR |