Function: todo-adjusted-category-label-length

todo-adjusted-category-label-length is a byte-compiled function defined in todo-mode.el.gz.

Signature

(todo-adjusted-category-label-length)

Documentation

Return adjusted length of category label button.

The adjustment ensures proper tabular alignment in Todo Categories mode.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/todo-mode.el.gz
(defun todo-adjusted-category-label-length ()
  "Return adjusted length of category label button.
The adjustment ensures proper tabular alignment in Todo
Categories mode."
  (let* ((categories (mapcar #'car todo-categories))
	 (longest (todo-longest-category-name-length categories))
	 (catlablen (length todo-categories-category-label))
	 (lc-diff (- longest catlablen)))
    (if (and (natnump lc-diff) (cl-oddp lc-diff))
	(1+ longest)
      (max longest catlablen))))