Function: dape--info-locals-table-columns-list
dape--info-locals-table-columns-list is a natively compiled function
defined in dape.el.
Signature
(dape--info-locals-table-columns-list ALIST)
Documentation
Format and arrange the columns in locals display based on ALIST.
Source Code
;; Defined in /nix/store/1fiaif8pifqj2jh65rbg3fkhg3i56q42-emacs-packages-deps/share/emacs/site-lisp/elpa/dape-0.27.1/dape.el
(defun dape--info-locals-table-columns-list (alist)
"Format and arrange the columns in locals display based on ALIST."
;; Stolen from gdb-mi but reimpleted due to usage of dape customs
;; org function `gdb-locals-table-columns-list'.
(let (columns)
(dolist (config dape-info-variable-table-row-config columns)
(let* ((key (car config))
(max (cdr config))
(prop-org (alist-get key alist))
(prop prop-org))
(when prop-org
(setq prop (substring prop 0 (string-match-p "\n" prop)))
(if (and (> max 0) (length> prop max))
(push (propertize (string-truncate-left prop max) 'help-echo prop-org)
columns)
(push prop columns)))))
(nreverse columns)))