aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoam Postavsky2017-08-17 07:06:47 -0400
committerJoão Távora2017-08-18 23:42:12 +0100
commit39e6692efe6797c4462a9b0cd0177c289fa9989b (patch)
treec92dfe3fc715a0dc80391590ea4505ab33d3ba5d
parent44b06ac657e124d8f48002396bace6813b30de69 (diff)
downloademacs-39e6692efe6797c4462a9b0cd0177c289fa9989b.tar.gz
emacs-39e6692efe6797c4462a9b0cd0177c289fa9989b.zip
* lisp/elec-pair.el (electric-pair-text-pairs): Don't autoload (Bug#24901).
* lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Require `elec-pair' explicitly in the interactive case.
-rw-r--r--lisp/elec-pair.el1
-rw-r--r--lisp/progmodes/elisp-mode.el9
2 files changed, 6 insertions, 4 deletions
diff --git a/lisp/elec-pair.el b/lisp/elec-pair.el
index 87e82e24fb1..f990851185b 100644
--- a/lisp/elec-pair.el
+++ b/lisp/elec-pair.el
@@ -42,7 +42,6 @@ See also the variable `electric-pair-text-pairs'."
42 :group 'electricity 42 :group 'electricity
43 :type '(repeat (cons character character))) 43 :type '(repeat (cons character character)))
44 44
45;;;###autoload
46(defcustom electric-pair-text-pairs 45(defcustom electric-pair-text-pairs
47 '((?\" . ?\" ) 46 '((?\" . ?\" )
48 ((nth 0 electric-quote-chars) . (nth 1 electric-quote-chars)) 47 ((nth 0 electric-quote-chars) . (nth 1 electric-quote-chars))
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index 47739f59572..0bf88579601 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -231,9 +231,12 @@ Blank lines separate paragraphs. Semicolons start comments.
231 (defvar project-vc-external-roots-function) 231 (defvar project-vc-external-roots-function)
232 (lisp-mode-variables nil nil 'elisp) 232 (lisp-mode-variables nil nil 'elisp)
233 (add-hook 'after-load-functions #'elisp--font-lock-flush-elisp-buffers) 233 (add-hook 'after-load-functions #'elisp--font-lock-flush-elisp-buffers)
234 (setq-local electric-pair-text-pairs 234 (unless noninteractive
235 (append '((?\` . ?\') (?‘ . ?’)) electric-pair-text-pairs)) 235 (require 'elec-pair)
236 (setq-local electric-quote-string t) 236 (defvar electric-pair-text-pairs)
237 (setq-local electric-pair-text-pairs
238 (append '((?\` . ?\') (?‘ . ?’)) electric-pair-text-pairs))
239 (setq-local electric-quote-string t))
237 (setq imenu-case-fold-search nil) 240 (setq imenu-case-fold-search nil)
238 (add-function :before-until (local 'eldoc-documentation-function) 241 (add-function :before-until (local 'eldoc-documentation-function)
239 #'elisp-eldoc-documentation-function) 242 #'elisp-eldoc-documentation-function)