Function: gdb-locals-table-columns-list

gdb-locals-table-columns-list is a byte-compiled function defined in gdb-mi.el.gz.

Signature

(gdb-locals-table-columns-list ALIST)

Documentation

Format and arrange the columns in locals display based on ALIST.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defun gdb-locals-table-columns-list (alist)
  "Format and arrange the columns in locals display based on ALIST."
  (let (columns)
    (dolist (config gdb-locals-table-row-config columns)
      (let* ((key  (car config))
             (max  (cdr config))
             (prop (alist-get key alist)))
        (when prop
          (if (and (> max 0) (length> prop max))
              (push (propertize (string-truncate-left prop max) 'help-echo prop)
                    columns)
            (push prop columns)))))
    (nreverse columns)))