Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions smartparens.el
Original file line number Diff line number Diff line change
Expand Up @@ -6851,6 +6851,19 @@ Examples:
(when (> need-indent 0)
(insert (make-string need-indent ?\ ))))))))))

(defun sp-delete-hybrid-sexp (&optional arg)
"Delete a line as if with `kill-line', but respecting delimiters.

This is exactly like calling `sp-kill-hybrid-sexp'
except deleted sexp does not go to the clipboard or kill ring.

With ARG numeric prefix 0 (zero) just call `kill-line'.

See also `sp-kill-hybrid-sexp' examples."
(interactive "*p")
(sp-save-kill-ring
(sp-kill-hybrid-sexp arg)))

(defun sp-kill-whole-line ()
"Kill current line in sexp-aware manner.

Expand Down