From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: header-line-format vs. window fringes Date: Mon, 1 Aug 2005 15:37:25 +0200 Message-ID: Reply-To: Juanma Barranquero NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1122905700 1577 80.91.229.2 (1 Aug 2005 14:15:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Aug 2005 14:15:00 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 01 16:14:58 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dzb2i-0005p1-Ml for ged-emacs-devel@m.gmane.org; Mon, 01 Aug 2005 16:13:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dzb5M-0001B4-Pc for ged-emacs-devel@m.gmane.org; Mon, 01 Aug 2005 10:16:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dzay9-0005qh-OL for emacs-devel@gnu.org; Mon, 01 Aug 2005 10:08:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dzay8-0005oy-16 for emacs-devel@gnu.org; Mon, 01 Aug 2005 10:08:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DzauX-0003ji-TJ for emacs-devel@gnu.org; Mon, 01 Aug 2005 10:04:58 -0400 Original-Received: from [64.233.182.205] (helo=nproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dzag1-0003LN-NF for emacs-devel@gnu.org; Mon, 01 Aug 2005 09:49:57 -0400 Original-Received: by nproxy.gmail.com with SMTP id b2so256746nfe for ; Mon, 01 Aug 2005 06:37:25 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=m35nlYAZ7fi+0x0kQdRG1/IJpGfIi+pb2bSWBVoPsZT7aTLlJn+gZLBbFj/HDJzxcDjiv+HbdmgPhsXsBjKxI0FU8igsJs/xuP0MxevvK9/n1EojsRGYBTSs7ct93NeRx4llxZ2a7wzE9lw5WlL43/HjbBbdjzQZkngDq4KcpTc= Original-Received: by 10.48.144.1 with SMTP id r1mr175035nfd; Mon, 01 Aug 2005 06:37:25 -0700 (PDT) Original-Received: by 10.48.250.5 with HTTP; Mon, 1 Aug 2005 06:37:25 -0700 (PDT) Original-To: Emacs Devel Content-Disposition: inline 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:41402 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41402 I'm trying to use `header-line-format' to create a header line for a buffer which contains several columns of fixed width. The intent, obviously, is for the header line to contain titles that should be aligned right over each corresponding column (assuming the face used on the buffer and the one for the header line use the same, or equivalent, monospaced font). 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. Am I missing something? --=20 /L/e/k/t/u