emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ruler-mode is broken


From: Miles Bader
Subject: Re: ruler-mode is broken
Date: 10 Oct 2003 18:33:40 +0900

Lute Kamstra <address@hidden> writes:
> (2) use a character with the exact same width as the fringe in the
> mode line.  If memory serves me, you can make a space of any length
> using the display text property.

Yup:

  (setq header-line-format
        (concat (propertize "|" 'display '(space :width 1)) "hello world"))

That makes the first character of the header-line exactly one `default'
character wide -- even if the header-line is displayed in a different
font....

You can use a floating-point number (> 0 < 1) instead of `1' to make it
smaller, but annoyingly there's no way to specify exact pixel widths
(which is what I gather would be needed to work well with fringes).

-Miles
-- 
Run away!  Run away!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]