On Mon, 06 Dec 2010 00:30:17 +0100 Stephen Berman wrote: > On Sun, 04 Jan 2009 03:23:53 -0500 Chong Yidong wrote: > >>> Proced does not align the attribute names in the header line with the >>> corresponding columns when header-line face has variable pitch. >>> >>> I know of two approaches to dealing with this situation in Emacs, namely >>> that of buff-menu.el and that of ibuffer.el. The latter imposes a >>> fixed-pitch face in the header line, overriding the >>> user customization. The former uses the display property with an >>> :align-to specification to get proper alignment. Maybe one of these >>> will work with proced.el too. >> >> We can't use :align-to because proced justifies some headers to the >> right hand side of the column. > > I (finally) took a look at this again and it appears that :align-to as > used in buff-menu.el with some additional tweaking pretty much DTRT > after all. With my variable-pitch font (Dejavu Sans) I find the spacing > between "%CPU" and "%Mem" too crowded; using fixed-pitch looks better, > and that's what the attached patch does. Alternatively, I think it > looks fine to let the header line font be variable-pitch as long as the > let-bound variable whitespace is set to two spaces. I actually think > this makes the proced listings also more legible, though it does leave > less space for the process invocation listing and is also a departure > from the Dired display that Proced is modelled on. Anyway, I'd be happy > with either approach; both are better than the current display when the > header-line face is variable-pitch. There was an oversight in my patch; the corrected version is below. Also, I attach three screenshots: the first shows what the Proced display generated by the current code looks like when the header line face is variable-pitch, the second show the display using the below patch (with the header line stretched and set to fixed-pitch), the third shows the alternative mentioned above (with stretched variable-pitch header line and added space). Steve Berman