* lisp/electric.el: Break recursive loading loop

(electric-pair-text-pairs): Declare instead of requiring elec-pair.
This commit is contained in:
Stefan Monnier 2017-10-01 17:15:22 -04:00
parent 66d37175ec
commit ee3024c70d

View file

@ -39,8 +39,6 @@
;;; Code:
(eval-when-compile (require 'elec-pair))
;; This loop is the guts for non-standard modes which retain control
;; until some event occurs. It is a `do-forever', the only way out is
;; to throw. It assumes that you have set up the keymap, window, and
@ -471,6 +469,8 @@ substitution is inhibited. The functions are called after the
after the inserted character. The functions in this hook should
not move point or change the current buffer.")
(defvar electric-pair-text-pairs)
(defun electric-quote-post-self-insert-function ()
"Function that `electric-quote-mode' adds to `post-self-insert-hook'.
This requotes when a quoting key is typed."