Function: treemacs--remove-trailing-newline--inliner
treemacs--remove-trailing-newline--inliner is a function defined in
treemacs-core-utils.el.
Signature
(treemacs--remove-trailing-newline--inliner INLINE--FORM STR)
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
;; Closure converted to defun by helpful.
(defun treemacs--remove-trailing-newline--inliner
(inline--form str)
(ignore inline--form)
(catch 'inline--just-use
(let*
((exp str)
(str
(if
(macroexp-copyable-p exp)
exp
(make-symbol "str")))
(body
(list 'let
(list
(list 'len
(list '1-
(list 'length str))))
(list 'if
(list '= 10
(list 'aref str 'len))
(list 'substring str 0 'len)
str))))
(if
(eq str exp)
body
(macroexp-let*
(list
(list str exp))
body)))))