]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/electric.el: Break recursive loading loop
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 1 Oct 2017 21:15:22 +0000 (17:15 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 1 Oct 2017 21:15:22 +0000 (17:15 -0400)
(electric-pair-text-pairs): Declare instead of requiring elec-pair.

lisp/electric.el

index 599b584c14621c409826845f09a327fd5363a7f3..5f4304462dd2eb2fe66798ccd676b91877ffc5bf 100644 (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."