mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Fix default value of electric-pair-pairs and electric-pair-text-pairs
Fixes: debbugs:24901 A previous change, titled "Add support for curly quotation marks to electric-pair-mode", attempted to add these characters to the default value of these variables. But it did so in a quoted list, preventing evaluation of the relevant expressions and resulting in an invalid format. * lisp/elec-pair.el (electric-pair-pairs, electric-pair-text-pairs): Use backquote and comma.
This commit is contained in:
parent
39e6692efe
commit
7098823b42
1 changed files with 6 additions and 6 deletions
|
|
@ -28,9 +28,9 @@
|
|||
;;; Electric pairing.
|
||||
|
||||
(defcustom electric-pair-pairs
|
||||
'((?\" . ?\")
|
||||
((nth 0 electric-quote-chars) . (nth 1 electric-quote-chars))
|
||||
((nth 2 electric-quote-chars) . (nth 3 electric-quote-chars)))
|
||||
`((?\" . ?\")
|
||||
(,(nth 0 electric-quote-chars) . ,(nth 1 electric-quote-chars))
|
||||
(,(nth 2 electric-quote-chars) . ,(nth 3 electric-quote-chars)))
|
||||
"Alist of pairs that should be used regardless of major mode.
|
||||
|
||||
Pairs of delimiters in this list are a fallback in case they have
|
||||
|
|
@ -43,9 +43,9 @@ See also the variable `electric-pair-text-pairs'."
|
|||
:type '(repeat (cons character character)))
|
||||
|
||||
(defcustom electric-pair-text-pairs
|
||||
'((?\" . ?\" )
|
||||
((nth 0 electric-quote-chars) . (nth 1 electric-quote-chars))
|
||||
((nth 2 electric-quote-chars) . (nth 3 electric-quote-chars)))
|
||||
`((?\" . ?\")
|
||||
(,(nth 0 electric-quote-chars) . ,(nth 1 electric-quote-chars))
|
||||
(,(nth 2 electric-quote-chars) . ,(nth 3 electric-quote-chars)))
|
||||
"Alist of pairs that should always be used in comments and strings.
|
||||
|
||||
Pairs of delimiters in this list are a fallback in case they have
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue