Function: gnus-tilde-cut-form
gnus-tilde-cut-form is a byte-compiled function defined in
gnus-spec.el.gz.
Signature
(gnus-tilde-cut-form EL CUT-WIDTH)
Documentation
Return a form that cuts CUT-WIDTH off of EL.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-spec.el.gz
(defun gnus-tilde-cut-form (el cut-width)
"Return a form that cuts CUT-WIDTH off of EL."
(let ((cut (abs cut-width)))
(if (symbolp el)
`(if (> (string-width ,el) ,cut)
,(if (< cut-width 0)
`(gnus-correct-substring ,el 0 (- (string-width ,el) ,cut))
`(gnus-correct-substring ,el ,cut))
,el)
`(let ((val (eval ,el)))
(if (> (string-width val) ,cut)
,(if (< cut-width 0)
`(gnus-correct-substring val 0 (- (string-width val) ,cut))
`(gnus-correct-substring val ,cut))
val)))))