Skip to content

Commit

Permalink
fixup! fixup! add LaTeX tests with delete-selection on
Browse files Browse the repository at this point in the history
  • Loading branch information
temyurchenko committed Jun 11, 2024
1 parent a2310fd commit c6308cf
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions smartparens.el
Original file line number Diff line number Diff line change
Expand Up @@ -2127,22 +2127,20 @@ handle insertion and reinsertion of pairs and wraps.

The `sp--post-self-insert-hook-handler' is called in the
`post-command-hook' for these commands."
(let ((special-self-insert-commands
`(
,@(when (and (boundp 'AUCTeX-version)
(version<= AUCTeX-version "14.0.5"))
'(TeX-insert-dollar))
tex-insert-quote
TeX-insert-quote
quack-insert-opening-paren
quack-insert-closing-paren
quack-insert-opening-bracket
quack-insert-closing-bracket
racket-insert-closing-paren
racket-insert-closing-bracket
racket-insert-closing-brace
)))
(memq this-command special-self-insert-commands)))
(memq this-command
`(
,@(and (boundp 'AUCTeX-version) (version<= AUCTeX-version "14.0.5")
'(TeX-insert-dollar))
tex-insert-quote
TeX-insert-quote
quack-insert-opening-paren
quack-insert-closing-paren
quack-insert-opening-bracket
quack-insert-closing-bracket
racket-insert-closing-paren
racket-insert-closing-bracket
racket-insert-closing-brace
)))

(defun sp--signum (x)
"Return 1 if X is positive, -1 if negative, 0 if zero."
Expand Down

0 comments on commit c6308cf

Please sign in to comment.