Function: treemacs--delete-line

treemacs--delete-line is a byte-compiled function defined in treemacs-core-utils.el.

Signature

(treemacs--delete-line)

Documentation

Delete the current line.

Unlike the function kill-whole-line(var)/kill-whole-line(fun) this won't pollute the kill ring.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
(define-inline treemacs--delete-line ()
  "Delete the current line.
Unlike the function `kill-whole-line' this won't pollute the kill ring."
  (inline-quote
    (delete-region (line-beginning-position) (min (point-max) (1+ (line-end-position))))))