Function: semantic-idle-breadcrumbs--format-tag-list

semantic-idle-breadcrumbs--format-tag-list is a byte-compiled function defined in idle.el.gz.

Signature

(semantic-idle-breadcrumbs--format-tag-list TAG-LIST MAX-LENGTH)

Documentation

Format TAG-LIST using configured functions respecting MAX-LENGTH.

If the initial formatting result is longer than MAX-LENGTH, it is shortened at the beginning.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/idle.el.gz
(defun semantic-idle-breadcrumbs--format-tag-list (tag-list max-length)
  "Format TAG-LIST using configured functions respecting MAX-LENGTH.
If the initial formatting result is longer than MAX-LENGTH, it is
shortened at the beginning."
  ;; Format TAG-LIST using the configured formatting function.
  (let* ((complete-format (funcall
			   semantic-idle-breadcrumbs-format-tag-list-function
			   tag-list max-length))
	 ;; Determine length of complete format.
	 (complete-length (length complete-format)))
    ;; Shorten string if necessary.
    (if (<= complete-length max-length)
	complete-format
      (concat "... "
	      (substring
	       complete-format
	       (- complete-length (- max-length 4))))))
  )