Function: kotl-mode:delete-indentation
kotl-mode:delete-indentation is an interactive and byte-compiled
function defined in kotl-mode.el.
Signature
(kotl-mode:delete-indentation &optional ARG)
Documentation
Join this line to previous and fix up whitespace at join.
If there is a fill prefix, delete it from the beginning of this line. With prefix ARG non-nil, join this line to the following line.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kotl-mode.el
(defun kotl-mode:delete-indentation (&optional arg)
"Join this line to previous and fix up whitespace at join.
If there is a fill prefix, delete it from the beginning of this line.
With prefix ARG non-nil, join this line to the following line."
(interactive "*P")
(kcell-view:operate
(lambda ()
(let ((opoint (point)))
(beginning-of-line)
(when arg
(kfill:forward-line 1))
(if (eq (preceding-char) ?\n)
(progn
(delete-region (point) (1- (point)))
;; If the second line started with the fill prefix,
;; delete the prefix.
(if (and fill-prefix
(<= (+ (point) (length fill-prefix)) (point-max))
(string-equal fill-prefix
(buffer-substring
(point) (+ (point) (length fill-prefix)))))
(delete-region (point) (+ (point) (length fill-prefix))))
(fixup-whitespace))
(goto-char opoint))))))