*** /data/steve/bzr/emacs/trunk/lisp/proced.el 2010-09-08 10:12:09.000000000 +0200 --- /data/steve/bzr/emacs/quickfixes/lisp/proced.el 2010-12-07 11:15:38.000000000 +0100 *************** *** 400,406 **** :group 'proced-faces) (defface proced-sort-header ! '((t (:inherit font-lock-keyword-face))) "Face used for header of attribute used for sorting." :group 'proced-faces) --- 400,406 ---- :group 'proced-faces) (defface proced-sort-header ! '((t (:family "Monospace" :inherit font-lock-keyword-face))) "Face used for header of attribute used for sorting." :group 'proced-faces) *************** *** 1427,1433 **** (hprops (if (nth 4 grammar) (let ((descend (if (eq key sort-key) proced-descend (nth 5 grammar)))) ! `(proced-key ,key mouse-face highlight help-echo ,(format proced-header-help-echo (if descend "-" "+") (nth 1 grammar) --- 1427,1433 ---- (hprops (if (nth 4 grammar) (let ((descend (if (eq key sort-key) proced-descend (nth 5 grammar)))) ! `(proced-key ,key face fixed-pitch mouse-face highlight help-echo ,(format proced-header-help-echo (if descend "-" "+") (nth 1 grammar) *************** *** 1509,1514 **** --- 1509,1525 ---- (if (string-match "[ \t]+$" proced-header-line) (setq proced-header-line (substring proced-header-line 0 (match-beginning 0)))) + (setq proced-header-line (concat " " proced-header-line)) + ;; From buff-menu.el: Turn whitespace chars in the header into stretch + ;; specs so they work regardless of the header-line face. + (let ((pos 0) + (header proced-header-line)) + (while (string-match "[ \t\n]+" header pos) + (setq pos (match-end 0)) + (put-text-property (match-beginning 0) pos 'display + ;; Assume fixed-size chars in the buffer. + (list 'space :align-to pos) + header))) ;; (delete-trailing-whitespace) (goto-char (point-min)) (while (re-search-forward "[ \t\r]+$" nil t) *************** *** 1602,1608 **** (while (not (eobp)) (insert " ") (forward-line)) - (setq proced-header-line (concat " " proced-header-line)) (if revert (set-buffer-modified-p nil)) ;; set `goal-column' --- 1613,1618 ----