all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: header-line-format vs. window fringes
Date: Mon, 01 Aug 2005 16:05:33 -0400	[thread overview]
Message-ID: <87u0i9zao7.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <f7ccd24b05080106377b50d02d@mail.gmail.com> (Juanma Barranquero's message of "Mon, 1 Aug 2005 15:37:25 +0200")

> 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

      parent reply	other threads:[~2005-08-01 20:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-01 13:37 header-line-format vs. window fringes Juanma Barranquero
2005-08-01 14:23 ` Juanma Barranquero
2005-08-01 20:05 ` Stefan Monnier [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87u0i9zao7.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.