From: Stephen Berman <stephen.berman@gmx.net>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: 1779@emacsbugs.donarmstrong.com
Subject: bug#1779: 23.0.60; proced with variable-pitch header line
Date: Sun, 04 Jan 2009 16:01:00 +0100 [thread overview]
Message-ID: <87prj3i09f.fsf@escher.local.home> (raw)
In-Reply-To: <873afzcwdi.fsf@cyd.mit.edu> (Chong Yidong's message of "Sun, 04 Jan 2009 03:23:53 -0500")
On Sun, 04 Jan 2009 03:23:53 -0500 Chong Yidong <cyd@stupidchicken.com> 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.
The justification is customizable in proced-grammar-alist. I set it to
`left' for all headers and modified proced-format by adapting the
:align-to code from buff-menu.el, but the headers still failed to align
with the columns with a variable-pitch header-line face. But shouldn't
it be possible in principle? Maybe someone who knows the code better
can make it work.
> I don't see where ibuffer.el imposes a fixed-pitch face on the header
> line, though. Can you point out where it does this?
I made two mistakes here, sorry. First, I shouldn't have said
fixed-pitch but the same face as is used in the buffer (which has to be
fixed-pitch in order for the columns to be aligned). But in addition,
what I assumed to be the header line in the ibuffer window is in fact
just the first line of the buffer (although I looked at the ibuffer code
and saw ibuffer-header-line-format, I overlooked that this was only for
filters, and unthinkingly took the first line to be a header line, as
with buff-menu). It's too bad the ibuffer "header" line isn't fixed
with respect to the rest of the buffer when scrolling, like a real
header line. Could this effect be achieved with an overlay?
Steve Berman
next prev parent reply other threads:[~2009-01-04 15:01 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-04 8:23 bug#1779: 23.0.60; proced with variable-pitch header line Chong Yidong
2009-01-04 15:01 ` Stephen Berman [this message]
2009-01-04 15:46 ` Stefan Monnier
2010-12-05 23:30 ` Stephen Berman
2010-12-07 10:40 ` Stephen Berman
2011-07-10 14:47 ` Lars Magne Ingebrigtsen
2011-07-11 3:36 ` Stefan Monnier
2011-07-15 17:54 ` Lars Magne Ingebrigtsen
2011-07-15 21:05 ` Stephen Berman
2011-07-19 21:24 ` Stephen Berman
2009-01-03 22:02 ` Stephen Berman
2011-07-20 1:18 ` Roland Winkler
2011-07-20 8:28 ` Stephen Berman
2011-07-20 9:54 ` Lars Magne Ingebrigtsen
2020-10-11 22:22 ` Stefan Monnier
2020-10-11 22:50 ` Stephen Berman
2021-11-22 17:40 ` Juri Linkov
2021-11-24 6:53 ` Lars Ingebrigtsen
2021-11-24 9:15 ` Juri Linkov
2021-11-24 16:51 ` Lars Ingebrigtsen
2021-11-24 18:51 ` bug#1779: [External] : " Drew Adams
2021-11-29 17:16 ` Juri Linkov
2021-11-29 18:05 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-29 18:47 ` Lars Ingebrigtsen
2021-11-29 18:55 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2011-07-20 11:56 ` Roland Winkler
2011-07-21 16:41 ` Chong Yidong
2011-07-22 3:03 ` Roland Winkler
2011-07-22 5:15 ` Chong Yidong
2022-04-24 14:00 ` Lars Ingebrigtsen
2011-07-19 21:31 ` Lars Magne Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87prj3i09f.fsf@escher.local.home \
--to=stephen.berman@gmx.net \
--cc=1779@emacsbugs.donarmstrong.com \
--cc=cyd@stupidchicken.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).