From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: header-line-format vs. window fringes Date: Mon, 01 Aug 2005 16:05:33 -0400 Message-ID: <87u0i9zao7.fsf-monnier+emacs@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1122976319 18945 80.91.229.2 (2 Aug 2005 09:51:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Aug 2005 09:51:59 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 02 11:49:54 2005 Return-path: Original-Received: from mail-relay.eunet.no ([193.71.71.242]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DztAi-0003qi-PJ for ged-emacs-devel@gmane.org; Tue, 02 Aug 2005 11:34:53 +0200 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by mail-relay.eunet.no (8.13.1/8.13.1/GN) with ESMTP id j71KCuBh081549 for ; Mon, 1 Aug 2005 22:12:56 +0200 (CEST) (envelope-from emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org) Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DzghJ-00083j-C0 for ged-emacs-devel@m.gmane.org; Mon, 01 Aug 2005 16:15:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DzggS-0007le-UY for emacs-devel@gnu.org; Mon, 01 Aug 2005 16:14:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DzggO-0007jG-5G for emacs-devel@gnu.org; Mon, 01 Aug 2005 16:14:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DzggN-0007fD-NE for emacs-devel@gnu.org; Mon, 01 Aug 2005 16:14:43 -0400 Original-Received: from [209.226.175.34] (helo=tomts13-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dzgjh-00080S-9p for emacs-devel@gnu.org; Mon, 01 Aug 2005 16:18:09 -0400 Original-Received: from alfajor ([67.71.33.137]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050801200533.WGGH25800.tomts13-srv.bellnexxia.net@alfajor>; Mon, 1 Aug 2005 16:05:33 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id C58EBD73F8; Mon, 1 Aug 2005 16:05:33 -0400 (EDT) Original-To: Juanma Barranquero In-Reply-To: (Juanma Barranquero's message of "Mon, 1 Aug 2005 15:37:25 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:41416 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41416 > I don't know how to do that when the window has non-null fringes, > because I know the fringes' widths, but I don't see a way to know the > width of the monospaced font, in pixels. As the header doesn't take > into account the fringes, its content is not character-aligned with > the buffer's content. IIRC if you use a :align-to display property, the 0 position is at the beginning of the text, so you should just need to add a leading space with an (:align-to 0) text property. Take a look at the code for list-buffers which has to deal with the same issue. Stefan