Function: majutsu-row-entry-field-candidate-preview

majutsu-row-entry-field-candidate-preview is a natively compiled function defined in majutsu-row.el.

Signature

(majutsu-row-entry-field-candidate-preview ENTRY FIELD)

Documentation

Return one-line preview string for FIELD on ENTRY.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-row.el
(defun majutsu-row-entry-field-candidate-preview (entry field)
  "Return one-line preview string for FIELD on ENTRY."
  (let* ((text (majutsu-row-field-copy-string
                (majutsu-row-column entry field)))
         (text (replace-regexp-in-string "[\n\r\t ]+" " " text nil t)))
    (if (> (length text) 48)
        (concat (substring text 0 48) "…")
      text)))