Skip to content

Commit

Permalink
Allow slurping while in a character.
Browse files Browse the repository at this point in the history
  • Loading branch information
Taylor R Campbell committed Jul 9, 2013
1 parent 6304b64 commit f8bf24c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions paredit.el
Original file line number Diff line number Diff line change
Expand Up @@ -2230,8 +2230,7 @@ If in a string, move the opening double-quote forward by one
without altering any indentation or formatting."
(interactive)
(save-excursion
(cond ((or (paredit-in-comment-p)
(paredit-in-char-p))
(cond ((paredit-in-comment-p)
(error "Invalid context for slurping S-expressions."))
((paredit-in-string-p)
(paredit-forward-slurp-into-string))
Expand Down Expand Up @@ -2316,8 +2315,7 @@ If in a string, move the opening double-quote backward by one
without altering any indentation or formatting."
(interactive)
(save-excursion
(cond ((or (paredit-in-comment-p)
(paredit-in-char-p))
(cond ((paredit-in-comment-p)
(error "Invalid context for slurping S-expressions."))
((paredit-in-string-p)
(paredit-backward-slurp-into-string))
Expand Down

0 comments on commit f8bf24c

Please sign in to comment.