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: Lute Kamstra
Subject: Re: ruler-mode is broken
Date: Tue, 14 Oct 2003 16:17:09 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

address@hidden (Kim F. Storm) writes:

> I have patches to CVS emacs that allows you to write something like
>
> (setq header-line-format
>       (concat 
>         (propertize "s" 'display (space :width scroll-bar))
>         (propertize "f" 'display (space :width left-fringe))
>         (propertize "m" 'display (space :width left-margin))
>         "hello world"))
>
> as well as recognizing :pixel-width NUM and a :pixel-height NUM 
> properties.

[I assume that you intended "(space ...)" to be quoted and that
scroll-bar and friends are symbols.]

I think this is nice feature, regardless of the problem you describe
below.  If/when you document it, could you reference it from the
Mode-Line Format section in the Lisp manual?  It's probably only
useful when used in the mode and header line.

> This still isn't completely perfect as the minimum width of any
> stretch glyph is 1 pixel so if there is, say, no left scroll-bar and
> no left margin, the above will be off by 2 pixels.

That's a pity.  Would it be much work to allow stretch glyphs to have
zero width?


  Lute.




reply via email to

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